Hello Arne, Larry, >> >> On a system that utilize dhcp to connect to the >> Internet via dhcpcd, and dnsmasq is configured to >> use /etc/dhcpc/resolv.conf, if dnsmasq is started before dhcpcd completes >> start-up operation, then dnsmasq will fail to find >> /etc/dhcpc/resolv.conf, and >> falls back to serving local network only. > >> Normal behaviour of dnsmasq is to poll >> /etc/dhcpc/resolv.conf for every request that it >> can not resolve locally. Why does it fail? >> > It fails because the /etc/dhcpc/resolv.conf file is created by dhcpcd, dnsmasq simply doesn't find that file if dhcp fails so won't poll it.
But dnsmasq won't start before dhcpcd completes, it will only do that if dhcpcd times out because no lease is given at all (after 1 minute or so). In that case an /etc/dhcpc/resolv.conf file isn't of any use anyway because there isn't any internet connection. I'm not sure if dnsmasq is smart enough to start polling the resolv.conf file after it's created (f.e. when you do an ifdown/ifup an a lease is granted) but I think it is. Are you sure you do have an Internet connection in the above situation you described? (or my statement is false :-)) Eric ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ------------------------------------------------------------------------ leaf-user mailing list: [email protected] https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/
