[Wlug] DNS settings

Brian J. Conway bconway at alum.wpi.edu
Sun Apr 6 12:25:58 EDT 2008


On Sun, 6 Apr 2008 14:44:38 +0530
Deepan <codeshepherd at gmail.com> wrote:

> Hi All,
> I would like to configure my laptop to use
> 4.2.2.2/4.2.2.3 as DNS. The problems is everytime
> my machines requests for a dynamic IP via DHCP, my
> DNS settings get reset. Is it possible to override
> this? I am running Fedora 8.
> Regards 
> Deepan 
> Sudoku Solver: http://www.sudoku-solver.net/ 

It will depend on the DHCP client you use, of course, but all my OSes
have standardized on ISC's dhclient.  In that case, it's a matter of
editing /etc/dhclient.conf (or /etc/dhcp3/dhclient.conf) and making use
of the following or similar lines:

supersede domain-name "example.com";
prepend domain-name-servers 127.0.0.1;

I think you can use supersede, prepend, and append for any of the above,
but the documentation can tell you for sure.

Brian J. Conway


More information about the Wlug mailing list