Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcp based /etc/resolv.conf [solved]
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
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5452

PostPosted: Sat Jun 29, 2019 5:31 am    Post subject: dhcp based /etc/resolv.conf [solved] Reply with quote

Greetings,

I want my system to get it's dns from the router, I have a /etc/resolv.conf file with the router's ip, /etc/dhcpcd.conf has no resolve entry.
afaiu, that should cause the file to be auto regenerated every dhcp correct? note that I'm not using a systemd based init setup.
on my other systems (libreelec, alpine and debian), the file is auto regenerated.

any ideas what can be the issue?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Sat Jun 29, 2019 6:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15294

PostPosted: Sat Jun 29, 2019 4:24 pm    Post subject: Reply with quote

Compare the options passed to the DHCP client on the working and non-working systems. Check that /etc/conf.d/net does not disable taking DNS from the DHCP server.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5452

PostPosted: Sat Jun 29, 2019 4:45 pm    Post subject: Reply with quote

Hu wrote:
Compare the options passed to the DHCP client on the working and non-working systems. Check that /etc/conf.d/net does not disable taking DNS from the DHCP server.

my other systems are systemd based, hard to compare
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5452

PostPosted: Sat Jun 29, 2019 4:53 pm    Post subject: Reply with quote

I've checked /etc/conf.d/net, I have dhcp_br0="nodns" set, cant remember why...
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6777
Location: Blighty

PostPosted: Sat Jun 29, 2019 6:22 pm    Post subject: Reply with quote

dhcpcd.conf needs this for correct resolv.conf population:
Code:
option domain_name_servers, domain_name, domain_search


Other than, it's what command line options.
As you've noted, you've disabled resolv.conf population for br0 interface.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5452

PostPosted: Sat Jun 29, 2019 6:45 pm    Post subject: Reply with quote

UberLord wrote:
dhcpcd.conf needs this for correct resolv.conf population:
Code:
option domain_name_servers, domain_name, domain_search


Other than, it's what command line options.
As you've noted, you've disabled resolv.conf population for br0 interface.

I see, so I need to remove that entry, ok thanks!
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
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