Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo ignoring /etc/resolv.conf.head
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
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 705
Location: Billings, MT, USA

PostPosted: Mon Sep 12, 2011 4:58 pm    Post subject: Gentoo ignoring /etc/resolv.conf.head Reply with quote

I'm rebuilding the lab's router and for some reason Gentoo is ignoring /etc/resolv.conf.head. I entered the correct nameservers into it and it just ignores it.

Anyone know why?
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Mon Sep 12, 2011 5:03 pm    Post subject: Reply with quote

Are you using a dynamic or static ip for the server? /etc/resolv.conf is generated when the server gets an IP with dhcp.
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 705
Location: Billings, MT, USA

PostPosted: Mon Sep 12, 2011 5:09 pm    Post subject: Reply with quote

mikegpitt wrote:
Are you using a dynamic or static ip for the server? /etc/resolv.conf is generated when the server gets an IP with dhcp.

Static. I've got it setup like the old system, but for some reason it's wiping out resolv.conf and replacing it with our domain and completely ignoring resolv.conf.head.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Mon Sep 12, 2011 5:57 pm    Post subject: Reply with quote

Simba7 wrote:
Static. I've got it setup like the old system, but for some reason it's wiping out resolv.conf and replacing it with our domain and completely ignoring resolv.conf.head.
Can you post your /etc/conf.d/net? Something else must be causing /etc/resolv.conf to be overwritten on boot. If you have a static IP, all you should need to do is edit the /etc/resolv.conf itself, and leave it alone, since it won't automatically update.

Also, check to make sure there isn't anything suspect in your /etc/conf.d/local.start (/etc/local.d/* for baselayout-2), that might be wiping out the file.
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 705
Location: Billings, MT, USA

PostPosted: Mon Sep 12, 2011 8:17 pm    Post subject: Reply with quote

mikegpitt wrote:
Also, check to make sure there isn't anything suspect in your /etc/conf.d/local.start (/etc/local.d/* for baselayout-2), that might be wiping out the file.

Nothing in /etc/local.d/ except a README. Here's my /etc/conf.d/net config:
Code:
labrouter etc # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /usr/share/doc/openrc/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

dns_domain_lo="coblab.lan"
nis_domain_lo="coblab.lan"

# 3com 3c905 10/100mbps PCI Adapter #1
config_eth0=( "192.xxx.xxx.254 netmask 255.255.255.0 brd 192.xxx.xxx.255" )

# 3com 3c905 10/100mbps PCI Adapter #2
config_eth1=( "10.xxx.xxx.2 netmask 255.255.255.0 brd 10.xxx.xxx.255" )
routes_eth1=( "default gw 10.xxx.xxx.1" )

# 3com 3c515 10/100mbps ISA Adapter
config_eth2=( "null" )
Back to top
View user's profile Send private message
Trog Dog
Apprentice
Apprentice


Joined: 04 Aug 2007
Posts: 282

PostPosted: Mon Sep 12, 2011 10:01 pm    Post subject: Reply with quote

Simba7 wrote:


Code:

# 3com 3c905 10/100mbps PCI Adapter #1
config_eth0=( "192.xxx.xxx.254 netmask 255.255.255.0 brd 192.xxx.xxx.255" )

# 3com 3c905 10/100mbps PCI Adapter #2
config_eth1=( "10.xxx.xxx.2 netmask 255.255.255.0 brd 10.xxx.xxx.255" )
routes_eth1=( "default gw 10.xxx.xxx.1" )

# 3com 3c515 10/100mbps ISA Adapter
config_eth2=( "null" )


if you're using baselayout 2 this is wrong style of command - should be
Code:
config_eth0="192.xxx.xxx.254 netmask 255.255.255.0 brd 192.xxx.xxx.255"

you need to lose the brackets and spaces
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