PDA

View Full Version : resolv.conf


chrisb
04-06-2005, 05:58 PM
What's the right way to handle resolv.conf?

The default is good:

; generated by /sbin/dhclient-script
search tektonic.net
nameserver 69.93.28.254
nameserver 69.10.150.194

but I would like to change it to reflect my domain:

search mydomain.com
nameserver xx.xx.xx.x1
nameserver xx.xx.xx.x2

is there any drawback to this? Will reboots proceed successfully?

Thanks.

chrisb

hart
04-06-2005, 06:46 PM
[QUOTE=chrisb]What's the right way to handle resolv.conf?

The default is good:

; generated by /sbin/dhclient-script
search tektonic.net
nameserver 69.93.28.254
nameserver 69.10.150.194

but I would like to change it to reflect my domain:

search mydomain.com
nameserver xx.xx.xx.x1
nameserver xx.xx.xx.x2

is there any drawback to this? Will reboots proceed successfully?

Thanks.

chrisb[/QUOTE]

There's no "right" way to handle it; you can point resolv.conf at any nameservers that will let you use them.

I currently have mine pointing at named on 127.0.0.1 with unixshells nameservers as forwarders. I was going to run local dns but at the moment I'm still using other hosts for dns.

Reboots _might_ hang for a short while if dns can't resolve during boot - it depends on your setup - but it shouldn't stop it rebooting eventually.

chrisb
04-06-2005, 08:31 PM
Great!

resolv.conf is not overwritten after a shutdown -r

cmtech
04-30-2005, 05:33 PM
It would only be overwritten if something like virtuozzo VPS system or a dhcp client was overwriting it.