Page MenuHomeFreeBSD

resolver.5: document six previously undocumented options
ClosedPublic

Authored by chris.longros_gmail.com on Mar 15 2026, 10:40 AM.
Tags
None
Referenced Files
F155996338: D55864.id173711.diff
Sun, May 10, 4:12 AM
F155995549: D55864.id173711.diff
Sun, May 10, 4:08 AM
Unknown Object (File)
Tue, May 5, 4:38 AM
Unknown Object (File)
Tue, Apr 28, 8:17 PM
Unknown Object (File)
Tue, Apr 28, 8:10 PM
Unknown Object (File)
Mon, Apr 27, 9:26 PM
Unknown Object (File)
Tue, Apr 21, 4:30 AM
Unknown Object (File)
Tue, Apr 21, 4:23 AM
Subscribers

Details

Summary

Document the edns0, inet6, insecure1, insecure2, no-check-names,
and rotate options which are parsed by res_init(3) but were not
described in the resolver(5) man page.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des added inline comments.
share/man/man5/resolver.5
216

I wonder if we should make this the default, like GNU libc does.

This revision is now accepted and ready to land.Mar 15 2026, 12:08 PM

I wonder if we should make this the default, like GNU libc does.

Taking a look at glibc's resolv.h it appears that the default options do not include RES_ROTATE.

#define RES_DEFAULT	(RES_RECURSE|RES_DEFNAMES|RES_DNSRCH)

Taking a look at glibc's resolv.h it appears that the default options do not include RES_ROTATE.

#define RES_DEFAULT	(RES_RECURSE|RES_DEFNAMES|RES_DNSRCH)

I don't think they have RES_ROTATE at all, their resolver is hardcoded to always rotate between configured nameservers.