resolv.conf has no nameservers on boot, even though I can see it add them.
Also, any changes I make to resolv.conf get overwritten, even though in /etc/rc.d/rc.inet1.conf I specify DHCP_KEEPRESOLV[4]=“yes”.
On boot, I can see it add 192.168.0.1 when getting up the wifi. Killing dhcpcd and then starting a new one adds the proper nameservers. I use slackware 14.2, with no internet configurers like NetworkManager or wicd. I should probably specify this happened after a system update. |
As a work around, you can usually specify the name servers in your router, so if it just adds the router that's enough. If you can't reach the router, you won't get far!
|
I’m sure if I did that I’d be forever plagued with the thought that my machine would still be internally screwed. ocd, I guess.
|
Though it doesn't address the cause nor solution as to why the file clears and doesn't get repopulated on reboot, you could work around the issue by making resolv.conf immutable.
Hence, create resolv.conf with your desired nameservers, then: Code:
# chattr +i resolv.conf cheers, |
Quote:
|
Well, I found a thread that describes almost the exact problem I have, right down to the output of xxd /proc/`pgrep dhcpcd`/cmdline. I get /sbin/dhcpcd.-t.10.-C.resolv.conf.wlan0. I guess I’ll follow the instructions given in that thread, but I have no clue how to properly fix this. It might be a thing in my dhcpcd.conf
https://www.linuxquestions.org/quest...nf-4175459003/ |
All times are GMT -5. The time now is 07:58 PM. |