View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Sat Jun 29, 2019 5:31 am Post subject: dhcp based /etc/resolv.conf [solved] |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sat Jun 29, 2019 4:24 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Sat Jun 29, 2019 4:45 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Sat Jun 29, 2019 4:53 pm Post subject: |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Sat Jun 29, 2019 6:45 pm Post subject: |
|
|
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 |
|
|
|