On Fri, 18 Dec 2009, Mike Connors wrote:

> Date: Fri, 18 Dec 2009 14:16:37 -0800
> From: Mike Connors <[email protected]>
> Reply-To: "General Linux/UNIX discussion and help;    civil and on-topic"
>     <[email protected]>
> To: "General Linux/UNIX discussion and help;  civil and on-topic"
>     <[email protected]>
> Subject: [PLUG] automate replacing resolv.conf file at startup
> 
> I manually copy a resolv.bak file to resolv.conf to overwrite Comcast's
> DNS servers and their bulls*&! domain search crap. However, it would be
> great to automate this.
>
> Any recommendations on where to put a script and how to initiate it?
> Could I just make it part of my run level 3 scripts? Sigh, my ignorance,
> it is profound...

The "right" way is to have your own subnet, complete with its own DNS
and DHCP services. resolv.conf is written by the DHCP client, using
DNS data that is supplied from the lease.

Get onto your router and see if there is a way to tell it which search
domain and DNS server IP(s) to hand out when it creats DHCP leases.

Carlos
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to