This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Lxc pihole / /etc/resolv.conf is still overwritten on reboot #1417
Unanswered
daad919
asked this question in
Help Needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem setting my static dns after changing ip adress for my pihole setup.
Changing the resolv.conf is possible but after rebooting, the changes are swapped to the previous settings setup.
I have set a static ip in the gui / network /ip , but this got ignored in the resolv.conf file. every time i reboot.
Already tried the following:
nano /etc/resolv.conf
adapt config
save
chattr +i /etc/resolv.conf
but get following error:
chattr: Operation not permitted while setting flags on /etc/resolv.conf
2)
nano /etc/dhcp/dhclient-enter-hooks.d/nodnsupdate
add:
!/bin/sh make_resolv_conf(){ : }
save
chmod +x /etc/dhcp/dhclient-enter-hooks.d/nodnsupdate
3)
nano /etc/dhcp/dhclient.conf
add:
prepend domain-name-servers 1.2.3.4
Save
4)
nano /etc/NetworkManager/NetworkManager.conf
add:
dns=none
save
But the problem persists, the resolv.conf is still overwritten after a reboot.
Any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions