On 26/12/16 13:24, Daniel Pocock wrote: > > > In LUCI, on my LAN interface -> Edit -> "DHCP Server" (at bottom) -> > "IPv6 Settings" tab -> "Announced DNS domains" > > I've added two domains there > > I also tried adding them both manually with option 119 > > Both of them appear to have been correctly added in /etc/config/dhcp: > > config dhcp 'lan' > option interface 'lan' > option ra 'server' > option dhcpv6 'server' > option ra_management '1' > option start '100' > option limit '28' > option leasetime '1h' > list dhcp_option '119,subdomain1.example.org,subdomain2.example.org' > list domain 'subdomain1.example.org' > list domain 'subdomain2.example.org' > > > I also tried swapping them in the opposite order. > > > The DHCP v4 clients receive the search domains from the option 119, even > if the "Announced DNS domains" is empty. > > The DCHP v6 clients are not receiving the search domains though. > Looking at /var/lib/dhcp/dhclient6.eth0.leases on a Debian client, it > shows only > > option dhcp6.domain-search "subdomain1.example.org."; > > > > The value subdomain1.example.org is also used in the global > > config dnsmasq > option domain 'subdomain1.example.org' > > > Are there known bugs in the way search domains are being advertised from > OpenWRT? Do I have to enable anything else on the router to make it work? >
I also tried using tcpdump to verify the problem is in the router: tcpdump -i any -n -s1500 -vvv -n udp and port dhcpv6-client It shows the replies from the server only have subdomain1.example.org - for example, the packet looks something like this: 14:12:22.849205 IP6 (hlim 64, next-header UDP (17) payload length: 186) fe80::......63ce.547 > fe80::....5a3b.546: [udp sum ok] dhcp6 reply (xid=455432 (server-ID hwaddr type 1 xxx) (client-ID hwaddr/time type 1 time 536071606 xxx) (opt_82) (DNS-server fe80::....:63ce) (DNS-search-list subdomain1.example.org.) (reconfigure-accept) (authentication proto: reconfigure, alg: HMAC-MD5, RDM: ....... _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
