Re: DHCP and search list for DNS domains
On Fri 21 Jan 2022 at 13:57:47 (+0100), Steve Keller wrote: > AFAIK, some of my client hosts have only resolvconf, others use some > systemd stuff, since the man page for resolvconf is actually the > man page for resolvectl which also refers to systemd-resolved. The man page for /package/ resolvconf is man 8 resolvconf, not man resolvconf. $ dpkg -L resolvconf or whatever the package is, can be useful here. Cheers, David.
Re: DHCP and search list for DNS domains
"Markus Schönhaber" wrote: > > AFAICS, there is no option in DHCP to provide the search list. > > From dhcp-options(5): > > >option domain-search domain-list; > > > > The domain-search option specifies a ´search list´ of Domain > > Names to be used by the client to locate not-fully-qualified do‐ > > main names. The difference between this option and historic use > > of the domain-name option for the same ends is that this option > > is encoded in RFC1035 compressed labels on the wire. For exam‐ > > ple: > > > >option domain-search "example.com", "sales.example.com", > > "eng.example.com"; Oops, I must have overseen it. I've read the man pages but probably I only read dhcpd(8) and dhcpd.conf(5), but missed dhcp-options(5). Thanks, Steve
Re: DHCP and search list for DNS domains
On Fri, 21 Jan 2022 13:57:47 +0100 Steve Keller wrote: > With DHCP I can tell a host the DNS server and the domain name of the > network, which is then stored to /etc/resolv.conf. But how can I add > a list a domain names that should be searched when resolving a host > name? root@chaffee:~# grep -i search /etc/dhcp/dhcpd.conf option domain-search "domain0", "domain1", "domain2"; root@chaffee:~# -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
Re: DHCP and search list for DNS domains
21.01.22, 13:57 +0100, Steve Keller: With DHCP I can tell a host the DNS server and the domain name of the network, which is then stored to /etc/resolv.conf. But how can I add a list a domain names that should be searched when resolving a host name? AFAICS, there is no option in DHCP to provide the search list. From dhcp-options(5): option domain-search domain-list; The domain-search option specifies a ´search list´ of Domain Names to be used by the client to locate not-fully-qualified do‐ main names. The difference between this option and historic use of the domain-name option for the same ends is that this option is encoded in RFC1035 compressed labels on the wire. For exam‐ ple: option domain-search "example.com", "sales.example.com", "eng.example.com"; -- Regards mks
DHCP and search list for DNS domains
With DHCP I can tell a host the DNS server and the domain name of the network, which is then stored to /etc/resolv.conf. But how can I add a list a domain names that should be searched when resolving a host name? AFAICS, there is no option in DHCP to provide the search list. So the questions is, is there a way to configure locally in the client host a search list that is added to /etc/resolv.conf? Say, for example, my domain domain is foo.bar.org and the DHCP server configuration has option domain-name "foo.bar.org"; option domain-name-servers ns.foo.bar.org; but I want bar.org also in the DNS domain search list, so I can ping host to get host.bar.org. That is, in /etc/resolv.conf there should be domain foo.bar.org search foo.bar.org bar.org nameserver AFAIK, some of my client hosts have only resolvconf, others use some systemd stuff, since the man page for resolvconf is actually the man page for resolvectl which also refers to systemd-resolved. Steve