Setting static DNS
Jamon Camisso
jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Fri May 1 13:11:31 UTC 2009
S P Arif Sahari Wibowo wrote:
> On Fri, 1 May 2009, Madison Kelly wrote:
>> What is the trick to statically set a list of DNS servers to use when
>> you otherwise get your IP address from a DHCP server?
>
> Beside manually modify /etc/resolv.conf every time after obtaining IP, I
> guess?
>
> I believe most DHCP clients have option to run an external scripts after
> getting the IP, the scripts can add your DNS addresses to
> /etc/resolv.conf preceding or replacing the ones received from DHCP server.
Why not just edit /etc/resolv.conf with the dns server(s) you want, and
remove resolvconf from your default runlevel(s)? That or chattr +i the
file and hope it doesn't break your dhcp scripts :)
Jamon
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list