#19846: dnsmasq: wrong generated config / r45810
-----------------------+------------------------
 Reporter:  bittorf@…  |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  packages   |    Version:  Trunk
 Keywords:             |
-----------------------+------------------------
 i can see this problem since a long time, but till now was not able to
 reproduce is. i tracked down the prob to the 'ordering' of dnsmasq-options
 in uci.

 when 'server' comes after .local and .domain, the configfile has not
 'server=$IP' and dns-resolution is not working...

 {{{
 root@F36-stube:~ uci show dhcp.@dnsmasq[0]
 dhcp.cfg02411c=dnsmasq
 dhcp.cfg02411c.domainneeded='0'
 dhcp.cfg02411c.boguspriv='1'
 dhcp.cfg02411c.filterwin2k='0'
 dhcp.cfg02411c.localise_queries='1'
 dhcp.cfg02411c.rebind_protection='0'
 dhcp.cfg02411c.rebind_localhost='0'
 dhcp.cfg02411c.expandhosts='1'
 dhcp.cfg02411c.nonegcache='0'
 dhcp.cfg02411c.authoritative='1'
 dhcp.cfg02411c.readethers='1'
 dhcp.cfg02411c.leasefile='/tmp/dhcp.leases'
 dhcp.cfg02411c.resolvfile='/tmp/resolv.conf.auto'
 dhcp.cfg02411c.addnhosts='/var/run/hosts_olsr' '/etc/local.hosts'
 dhcp.cfg02411c.server='8.8.8.8'
 dhcp.cfg02411c.notinterface='wan' 'wlan' 'wlanRADIO1'
 dhcp.cfg02411c.dhcpscript='/etc/dhcp-script.d/10dhcpscript'
 dhcp.cfg02411c.cachesize='1000'
 dhcp.cfg02411c.local='/internet/'
 dhcp.cfg02411c.domain='internet'

 root@F36-stube:~ grep ^server= /var/etc/dnsmasq.conf
 server=/internet/
 server=8.8.8.8

 root@F36-stube:~ nslookup google.de
 Server:    127.0.0.1
 Address 1: 127.0.0.1 localhost

 Name:      google.de
 Address 1: 2a00:1450:4005:808::101f ham02s11-in-x1f.1e100.net
 Address 2: 173.194.113.152 ham02s11-in-f24.1e100.net
 Address 3: 173.194.113.151 ham02s11-in-f23.1e100.net
 Address 4: 173.194.113.143 ham02s11-in-f15.1e100.net
 Address 5: 173.194.113.159 ham02s11-in-f31.1e100.net

 root@F36-stube:~ uci delete dhcp.cfg02411c.server

 root@F36-stube:~ uci set dhcp.@dnsmasq[0].server=8.8.8.8

 root@F36-stube:~ uci show dhcp.@dnsmasq[0]
 dhcp.cfg02411c=dnsmasq
 dhcp.cfg02411c.domainneeded='0'
 dhcp.cfg02411c.boguspriv='1'
 dhcp.cfg02411c.filterwin2k='0'
 dhcp.cfg02411c.localise_queries='1'
 dhcp.cfg02411c.rebind_protection='0'
 dhcp.cfg02411c.rebind_localhost='0'
 dhcp.cfg02411c.expandhosts='1'
 dhcp.cfg02411c.nonegcache='0'
 dhcp.cfg02411c.authoritative='1'
 dhcp.cfg02411c.readethers='1'
 dhcp.cfg02411c.leasefile='/tmp/dhcp.leases'
 dhcp.cfg02411c.resolvfile='/tmp/resolv.conf.auto'
 dhcp.cfg02411c.addnhosts='/var/run/hosts_olsr' '/etc/local.hosts'
 dhcp.cfg02411c.notinterface='wan' 'wlan' 'wlanRADIO1'
 dhcp.cfg02411c.dhcpscript='/etc/dhcp-script.d/10dhcpscript'
 dhcp.cfg02411c.cachesize='1000'
 dhcp.cfg02411c.local='/internet/'
 dhcp.cfg02411c.domain='internet'
 dhcp.cfg02411c.server='8.8.8.8'

 root@F36-stube:~ /etc/init.d/dnsmasq restart

 root@F36-stube:~ grep ^server= /var/etc/dnsmasq.conf
 server=/internet/

 root@F36-stube:~ nslookup google.de
 Server:    127.0.0.1
 Address 1: 127.0.0.1 localhost

 nslookup: can't resolve 'google.de': Name or service not known
 root@F36-stube:~
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19846>
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