Unix administration - dnsmasq and dhclient on same machine

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > May 2007 > dnsmasq and dhclient on same machine





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author dnsmasq and dhclient on same machine
Troy Piggins

2007-05-29, 1:19 am

I'm running dnsmasq on the gateway of a small network of around
12 machines. The machine running dnsmasq also runs dhclient to
obtain it's dynamic IP address from our ISP.

For dnsmasq to work, from what I understand in the docs, I have
added 'nameserver 127.0.0.1' to /etc/resolv.conf

Trouble is, every so often dhclient seems to overwrite
/etc/resolv.conf with the ISP's nameservers and the localhost
entry gets wiped.

Any way to get it to stay permanently? Does the debian/ubuntu
package 'resolvconf' help this?

--
Troy Piggins ,-O (o- O All your sigs are belong to us.
http://piggo.com/~troy O ) //\ O
RLU#415538 `-O V_/_ OOO
Troy Piggins

2007-05-29, 1:19 am

* Troy Piggins is quoted & my replies are inline below :
> I'm running dnsmasq on the gateway of a small network of around
> 12 machines. The machine running dnsmasq also runs dhclient to
> obtain it's dynamic IP address from our ISP.
>
> For dnsmasq to work, from what I understand in the docs, I have
> added 'nameserver 127.0.0.1' to /etc/resolv.conf
>
> Trouble is, every so often dhclient seems to overwrite
> /etc/resolv.conf with the ISP's nameservers and the localhost
> entry gets wiped.
>
> Any way to get it to stay permanently? Does the debian/ubuntu
> package 'resolvconf' help this?


I've been advised that the solution is to add:

prepend domain-name-servers 127.0.0.1;

to /etc/dhcp3/dhclient.conf

--
Troy Piggins ,-O (o- O All your sigs are belong to us.
http://piggo.com/~troy O ) //\ O
RLU#415538 `-O V_/_ OOO
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com