Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP not setting NAMSERVER vaules(fixed)
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
AAFA
n00b
n00b


Joined: 15 Feb 2013
Posts: 2

PostPosted: Fri Feb 15, 2013 9:03 pm    Post subject: DHCP not setting NAMSERVER vaules(fixed) Reply with quote

New install in VIRTUALBOX guest.
Install complete and after reboots the /etc/resolv.conf keeps resetting.

here is my net file
[code]
o10222@virt-gentoo ~ $ 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 :]!).
config_eth0="dhcp"
dns_servers_eth0="205.171.2.25 205.171.3.25"
[code/]

/etc/resolv.conf after reboot

[code]
o10222@virt-gentoo ~ $ cat /etc/resolv.conf
# Generated by dhcpcd from eth1, eth0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.0.1
# /etc/resolv.conf.tail can replace this line
o10222@virt-gentoo ~ $
[code/]

did I miss something in setup or syntax in net file?

Two adapters are configured in VBOX 1 NAT 1 Bridge this one get DHCP assigned to it.
:?:


Last edited by AAFA on Fri Feb 15, 2013 10:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
AAFA
n00b
n00b


Joined: 15 Feb 2013
Posts: 2

PostPosted: Fri Feb 15, 2013 10:10 pm    Post subject: resolv.conf settings Reply with quote

Ok so i figured I would setup static I.P. for eth1 and it all works now.

maybe DHCP client gets bad information from my router but windows systems and MAC's seem fine.

anyways it fixed.

here is the working file:
[/code]
# 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 :]!).
config_eth1="192.168.0.28 broadcast 192.0.0.255 netmask 255.255.255.0"
dns_servers="205.171.2.25 205.171.3.25"
[code/]
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