[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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


Reply to: