|
|||||||||||
|
Re: /etc/resolv.conf, /etc/ppp/resolv.conf, dhcp3-server and dnsmasq
From: Douglas A. Tutty <dtutty(at)porchlight.ca>
Date: Sat Dec 29 2007 - 21:04:40 EST
> At Thu, 27 Dec 2007 20:28:21 -0500 dtutty@porchlight.ca wrote, The resolvconf package makes it a link. If it is not a link, the resolvconf package can't work. When ppp is active, are your nameservers present in /etc/resolvconf/run/resolv.conf? My setup is a little more complicated to follow, although the actual setup is right out of the box. I have pppconf to set up my ppp peer and pppd gets the nameservers when it connects. That info goes into /etc/ppp/resolv.conf I have the resolvconf package installed. Perhaps I don't need it for the current system where I have two boxes, one acting as a gateway with a modem, the other gets its internet (and name service) from the first. However, I can switch that around in about 30 seconds if the primary box fails (or its serial port to the modem fails). I also have the dnsmasq package installed which acts like a caching dns server. Therefore, my /etc/resolv.conf file points to /etc/resolvconf/run/resolv.conf which contains a pointer to 127.0.0.1, the localhost where it finds a dns service running (dnsmasq). Resolvconf runs a hook script provided by dnsmasq that updates dnsmasq's ideas on upstream nameservers. It is dnsmasq that then contacts these nameservers if a dnsrequest can't be fulfilled out of its own cache. The magic for all this is done by resolvconf. See the man page for all the gory details and try to follow all the hook scripts. > Yes, see the resolvconf man page. > Luckily a cable modem is also available. If connected to the 'net It is only simple if you only have one interface that comes up on boot and doesn't change. With eth? and ppp? interfaces coming up and going down, the resolvconf package does a good job of keeping things working. With dnsmasq being its own dns server, it makes finding out the IP numbers of the upstream nameservers different in that you find it in /var/run/dnsmasq/resolv.conf. If you have resolvconf installed, it will keep things straight. When you connect through an eth0, presumably either you are given the DNS name servers to put in /etc/network/interfaces or the system gets them with dhcp. Note that if you should try to connect to the internet with ppp at the same time, default routing and dns servers will not change and life gets interesting. Doug. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Sat Dec 29 21:14:31 2007 This archive was generated by hypermail 2.1.8 : Fri Feb 29 2008 - 11:04:32 EST |
||||||||||
|
|||||||||||