Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resolv.conf changes upon reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gentist
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 247

PostPosted: Wed Nov 22, 2006 6:59 pm    Post subject: resolv.conf changes upon reboot Reply with quote

I'm running my Gentoo box behind an OpenBSD box with NAT. Now, this is working rather fine, though I'm having a minor issue with it:

Each time I reboot my Gentoo box, I'm forced to manually update /etc/resolv.conf. Though I don't have to update it if I "restart" my network interface.

Now, something is obviously trying to update the /etc/resolv.conf file, though failing while doing so. The NAT box uses static addresses to the clients behind it, and DHCP for fetching the IP address from the ISP. Is there a way to make sure that Gentoo doesn't clean out the /etc/resolv.conf file, or (even better) a way to have Gentoo sync the nameserver list from the OpenBSD box?
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Nov 22, 2006 7:08 pm    Post subject: Reply with quote

With baselayout-1.12.x, if you have dns_domain_lo or dns_domain_eth0 in your /etc/conf.d/net, then, in setting the domain name into /etc/resolv.conf, the rest will be removed. You will be able to see the culprit, there will be a comment line at the top saying "Generated by net-scripts for interface lo".

To get your dns servers added to the new resolv.conf you will have to add
Code:
dns_servers_eth0="192.168.0.2 192.168.0.3"
(from /etc/conf.d/net) to your /etc/conf.d/net — change as necessary. It would probably be a good idea to change dns_domain_lo to dns_domain_eth0 as well.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum