Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Empty resolv.conf
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
hexgrid
n00b
n00b


Joined: 19 Aug 2015
Posts: 5

PostPosted: Wed Aug 19, 2015 11:07 pm    Post subject: Empty resolv.conf Reply with quote

I updated my gentoo box a while back, and somehow resolv.conf is no longer populated; I can change it to whatever I like, but at boot time it gets reset to a zero-length file. If I stick an appropriate nameserver line in, everything works as it ought until the next boot.

My /etc/conf.d/net looks like:

Code:
config_eno1="dhcp"


Anyone have any ideas?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Thu Aug 20, 2015 3:18 am    Post subject: Reply with quote

Your dhcp server is returning nothing and your dhcp client is configured to trust it. Fix the latter.
Back to top
View user's profile Send private message
Gatsby
n00b
n00b


Joined: 18 Jan 2010
Posts: 54
Location: 127.0.0.1

PostPosted: Thu Aug 20, 2015 9:17 am    Post subject: Re: Empty resolv.conf Reply with quote

hexgrid wrote:
I updated my gentoo box a while back, and somehow resolv.conf is no longer populated; I can change it to whatever I like, but at boot time it gets reset to a zero-length file. If I stick an appropriate nameserver line in, everything works as it ought until the next boot.

My /etc/conf.d/net looks like:

Code:
config_eno1="dhcp"


Anyone have any ideas?


Hi,

I had the same problem some weeks ago.. using net-misc/dhcpcd-6.9.1 dhcp-client. After masking it and re-emerging net-misc/dhcpcd-6.9.0 all was working fine again.

Regards, Gatsby
_________________
Γνωθι σεαυτον.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Thu Aug 20, 2015 10:59 am    Post subject: Reply with quote

look at /usr/share/doc/netifrc-???/net.example.bz2
# GENERIC DHCP OPTIONS
# Set generic DHCP options like so
#dhcp_eth0="release nodns nontp nonis nogateway nosendhost"

# This tells the dhcp client to release its lease when it stops, not to
# overwrite dns
, ntp and nis settings, not to set a default route and not to
# send the current hostname to the dhcp server and when it starts.
# You can use any combination of the above options - the default is not to
# use any of them.
Back to top
View user's profile Send private message
hexgrid
n00b
n00b


Joined: 19 Aug 2015
Posts: 5

PostPosted: Thu Aug 20, 2015 1:32 pm    Post subject: Re: Empty resolv.conf Reply with quote

Gatsby wrote:
I had the same problem some weeks ago.. using net-misc/dhcpcd-6.9.1 dhcp-client. After masking it and re-emerging net-misc/dhcpcd-6.9.0 all was working fine again.


It does look like it's a problem specific to dhcpcd-6.9.1. Masking it made the problem go away. Thanks!

I was hoping I wasn't going to have to go the "nodns" route, and fortunately I don't.
Back to top
View user's profile Send private message
Gatsby
n00b
n00b


Joined: 18 Jan 2010
Posts: 54
Location: 127.0.0.1

PostPosted: Thu Aug 20, 2015 10:33 pm    Post subject: Re: Empty resolv.conf Reply with quote

hexgrid wrote:
Gatsby wrote:
I had the same problem some weeks ago.. using net-misc/dhcpcd-6.9.1 dhcp-client. After masking it and re-emerging net-misc/dhcpcd-6.9.0 all was working fine again.


It does look like it's a problem specific to dhcpcd-6.9.1. Masking it made the problem go away. Thanks!

I was hoping I wasn't going to have to go the "nodns" route, and fortunately I don't.

You are welcome.

Regards, Gatsby
_________________
Γνωθι σεαυτον.
Back to top
View user's profile Send private message
tclover
Guru
Guru


Joined: 10 Apr 2011
Posts: 516

PostPosted: Sat Aug 22, 2015 11:07 am    Post subject: Reply with quote

Yes @hexgrid, a known bug of v6.9.1 because of a race condition. Fixed now in v6.9.2 -- no idea if present in the main tree. Might mark the thread as fixed then.
_________________
home/:mkinitramfs-ll/:supervision/:e-gtk-theme/:overlay/
Back to top
View user's profile Send private message
hexgrid
n00b
n00b


Joined: 19 Aug 2015
Posts: 5

PostPosted: Wed Aug 26, 2015 9:52 pm    Post subject: Reply with quote

tclover wrote:
Yes @hexgrid, a known bug of v6.9.1 because of a race condition. Fixed now in v6.9.2 -- no idea if present in the main tree. Might mark the thread as fixed then.


My machine pulled down dhcpcd 6.9.2 (I only masked specifically 6.9.1) and yes, it too works for me. So, problem solved! Thanks, everyone.
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