Differences between revisions 2 and 3
Revision 2 as of 2016-05-26 06:55:29
Size: 1191
Editor: PaulWise
Comment: cleanup, warn about Google up-front
Revision 3 as of 2016-05-26 06:56:03
Size: 1191
Editor: PaulWise
Comment: typo, ordering
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
/!\ The nameserver IP 8.8.4.4 is a DNS server from Google. If you don't trust or want to use another, insert an other ip there.
Line 5: Line 7:

/\! The nameserver IP 8.8.4.4 is a DNS server from Google. If you don't trust or want to use another, insert an other ip there.

Translation(s): none


/!\ The nameserver IP 8.8.4.4 is a DNS server from Google. If you don't trust or want to use another, insert an other ip there.

This page describes how to lock your /etc/resolv.conf

/etc/resolv.conf

my issues

my internet connection seems not to work. i could figured out, that it affects only dns. so my first workaround was

sh -c 'echo "nameserver 8.8.4.4" > /etc/resolv.conf'

but the networks I'm connected with didn't like my choice of nameserver. so they overwrites the resolv.conf many times.

the way forward

to get permanent peace a mention from #debian.de/freenode.org was to use chattr +i - and I start to go.

the ultimate order

rm /var/run/NetworkManager/resolv.conf  && rm /etc/resolv.conf && sh -c 'echo "nameserver 8.8.4.4" > /etc/resolv.conf' && cat /etc/resolv.conf &&  chattr -V +i /etc/resolv.conf

/var/run/NetworkManager/resolv.conf is an auto-generated symlink (I don't know which program it does)

the 'cat' order ist to generate output and control if it works.

same for the -V at the chattr order