#16836: no way to add search domains to resolv.conf (without using dnsmasq)
--------------------------+-------------------------------------
  Reporter:  brian@…      |      Owner:  developers
      Type:  defect       |     Status:  closed
  Priority:  high         |  Milestone:  Barrier Breaker (trunk)
 Component:  base system  |    Version:  Trunk
Resolution:  worksforme   |   Keywords:
--------------------------+-------------------------------------

Comment (by Stefan Hellermann <stefan@…>):

 This doesn't work with more than one domain name.
 uclibc ignores the search domain completely, see bug #13685.
 When using eglibc it works with one search domain, but more than one
 domain fails.

 quote from resolv.conf(5):
 {{{
        The  domain  and  search keywords are mutually exclusive.  If more
 than
        one instance of these keywords is present, the last instance wins.
 }}}
 So there should only be one line with either search or domain.

 when specifying
 {{{
 option dns_search 'a.lan b.lan'
 }}}
 resolv.conf contains:
 {{{
 search a.lan
 search b.lan
 }}}
 in this case only b.lan is searched, like the man page states

 when specifying
 {{{
 list dns_search 'a.lan'
 list dns_search 'b.lan'
 }}}
 resolv.conf also contains:
 {{{
 search a.lan
 search b.lan
 }}}

 workaround:
 {{{
 list dns_search 'a.lan b.lan'
 }}}
 which is not the way "list" is meant to work, but it works. resolv.conf:
 {{{
 search a.lan b.lan
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/16836#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to