editing resolv.conf in fc 6

I'm trying to install a local caching nameserver but each time I can't seem to edit the resolv.conf file.

Below is how my resolv.conf looks like

; generated by /sbin/dhclient-script
search myhome.westell.com

However when I try to comment out the nameserver and restart the network services the text appears the same. I would like to ask my dhcp server for an IP but I need to override the nameserver. Does anyone have any advice?
Who is Participating?
omarfaridConnect With a Mentor Commented:
You may run a job to keep monitoring the /etc/resolv.conf file and if it does not include your caching DNS IP then add it.
Why don't you add the new IP address of the DNS cache server to the DHCP server?
ShadowColossusAuthor Commented:
this is my home network. the dhcp server is from my verizon dsl modem, i have two other computers that connect to the modem and i would like keep their current dns setting.
Daniel McAllisterConnect With a Mentor President, IT4SOHO, LLCCommented:
It has been a while since anyone updated this...

If memory serves, if you're using dhclient then there is an /etc/dhclient.conf file that can be modified. (in fact, if I remember correctly, there is an option in there to add (prepend or append), as well as to replace (supercede) settings you get back from the dhcp server.

Any good reason to have your linux box as an edge-device? Why not go behind a $40 residential gateway/router, setup its WAN interface to be DHCP configured, but turn OFF the LAN DHCP server function, instead letting your Linux system be the dhcp server -- and tell you clients anything you want to for name resolvers from there!

Take my advise... (I'm not using it!)

I hope this helps... someone!
Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.