Re: [Bug 1003842] Re: dnsmasq sometimes fails to resolve private names in networks with non-equivalent nameservers
On 04/02/2013 17:07, Simon Kelley wrote: > On 04/02/13 15:36, Sergio Callegari wrote: >> On 04/02/2013 15:40, Simon Kelley wrote: >>> On 03/02/13 07:48, Thomas Hood wrote: >>>>> there's still the unresolved question >>>>> of whether re-enabling --strict-order >>>>> will suffice as a workaround, since >>>>> 12.10 relies on DBus to populate the >>>>> nameservers. Is there any extra >>>>> information on this? >>>> Please try it and report back. :-) >>>> >>>> (Put "strict-order" in a file in /etc/NetworkManager/dnsmasq.d/; stop >>>> network-manager; make sure all dnsmasq processes are dead; start >>>> network-manager.) >>>> >>> It doesn't work: It will always use the same server first, but the order >>> of servers given to the DBus interface isn't preserved internally, and >>> actually changes each time the DBus interface is used. >>> >>> >>> Cheers, >>> >>> Simon. >> Isn't it possible to change dnsmasq behavior to query the servers in any >> order >> or in parallel and in the case the first server to reply says "I don't know" >> avoid relying on that information, rather wait and see if in a reasonable >> time >> some other server answers "I do"? > You're far from the first person to ask that question. The answer is > that there is no possible response in the DNS protocol which means "I > don't know". NXDOMAIN or NODATA answers _don't_ mean that; they mean "I > know that this domain doesn't exist". They also make up quite a large > proportion of the DNS results returned to the average host, so that all > of those queries would suddenly take much longer. Yes, I realize that the problem is with the setup of the intranet, that should not add names to a domain that is known on the internet or invent a subdomain of something that is on the internet. But as a workaround, having a switch to activate "wait for further answers if you get an 'it does not exist'" would be nice for those willing to pay the price of a longer wait (or possibly even auto-activate it if a dns is detected to be on an intranet). Best regards, Sergio -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/1003842 Title: dnsmasq sometimes fails to resolve private names in networks with non- equivalent nameservers To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1003842/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 1003842] Re: dnsmasq sometimes fails to resolve private names in networks with non-equivalent nameservers
On 04/02/2013 15:40, Simon Kelley wrote: > On 03/02/13 07:48, Thomas Hood wrote: >>> there's still the unresolved question >>> of whether re-enabling --strict-order >>> will suffice as a workaround, since >>> 12.10 relies on DBus to populate the >>> nameservers. Is there any extra >>> information on this? >> Please try it and report back. :-) >> >> (Put "strict-order" in a file in /etc/NetworkManager/dnsmasq.d/; stop >> network-manager; make sure all dnsmasq processes are dead; start >> network-manager.) >> > It doesn't work: It will always use the same server first, but the order > of servers given to the DBus interface isn't preserved internally, and > actually changes each time the DBus interface is used. > > > Cheers, > > Simon. Isn't it possible to change dnsmasq behavior to query the servers in any order or in parallel and in the case the first server to reply says "I don't know" avoid relying on that information, rather wait and see if in a reasonable time some other server answers "I do"? With the current behavior, whenever I need to access a captive portal, I basically have to press the "reload page" button 50 times until for some reasons the order in which the nameservers reply becomes the good one. Cheers, Sergio -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/1003842 Title: dnsmasq sometimes fails to resolve private names in networks with non- equivalent nameservers To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1003842/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 993794] Re: Precise resolvconf+dnsmasq setup breaks login in some wireless networks
No, unfortunately, I do not think it is that. If I start with my machine OFF, I switch it on and boot, then I already have the issue. The machine connects to the wifi, but when I open the browser I cannot reach the authentication screen because the name of the authentication host cannot be resolved. If I try to resolve it with 'host' or 'dig', it cannot be resolved. If I copy the nameserver entries from the dnsmasq configuration to /etc/resolv.conf then everything is fine. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/993794 Title: Precise resolvconf+dnsmasq setup breaks login in some wireless networks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/993794/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 993794] Re: Precise resolvconf+dnsmasq setup breaks login in some wireless networks
Let me add that the /var/run/nm-dns-dnsmasq.conf contains 3 servers set by nm on activation of the wireless interface and received via dhcp. The first one is internal. The other ones are external. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/993794 Title: Precise resolvconf+dnsmasq setup breaks login in some wireless networks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/993794/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 993794] Re: Precise resolvconf+dnsmasq setup breaks login in some wireless networks
Here is the required data: ls -l /run/resolvconf /run/resolvconf/interface /run/resolvconf: total 4 -rw-r--r-- 1 root root 0 mag 5 16:31 enable-updates drwxr-xr-x 2 root root 60 mag 7 12:27 interface -rw-r--r-- 1 root root 204 mag 7 12:27 resolv.conf /run/resolvconf/interface: total 4 -rw-r--r-- 1 root root 85 mag 7 12:27 NetworkManager cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1 search wifi.mars.arces.unibo.it for F in /run/resolvconf/interface/* ; do echo "=== $F ===" ; cat $F ; done === /run/resolvconf/interface/NetworkManager === domain wifi.mars.arces.unibo.it search wifi.mars.arces.unibo.it nameserver 127.0.0.1 ps -elf|grep dnsmasq 4 S nobody 25839 1652 0 80 0 - 7267 poll_s 12:27 ?00:00:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/993794 Title: Precise resolvconf+dnsmasq setup breaks login in some wireless networks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/993794/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 993794] Re: Precise resolvconf+dnsmasq setup breaks login in some wireless networks
** Summary changed: - Precise resolvconf+dnsmasq setup breaks logging in some wireless networks + Precise resolvconf+dnsmasq setup breaks login in some wireless networks -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/993794 Title: Precise resolvconf+dnsmasq setup breaks login in some wireless networks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/993794/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs