Wednesday, 18 October 2017

File resolv.conf changed on reboot

The file /etc/resolv.conf was being reset and losing the correct nameserver on my Raspberry Pi after a reboot. The unfriendly way of fixing this was to set the immutable flag of the file using :-
sudo chattr -i /etc/resolv.conf 
It worked but I know this isn't the correct way to do it , but hey-ho life's too short....

No comments:

Post a Comment

File resolv.conf changed on reboot

The file /etc/resolv.conf was being reset and losing the correct nameserver on my Raspberry Pi after a reboot. The unfriendly way of fixing ...