ArcoLinux -D -B 18.12 has been released - 20 iso's

[SOLVED] How to prevent /etc/resolv.conf from changing

Beginners' subforum for general ArcoLinux issues. Please consult the excellent Arch wiki and web before posting.
Post Reply
User avatar
gh1da
Crewman
Posts: 13
Joined: Thu Jul 05, 2018 4:48 pm
United States of America
[SOLVED] How to prevent /etc/resolv.conf from changing

Post by gh1da » Mon Jul 09, 2018 3:09 am

Hello,
I'm sorry if this is the wrong sub but I haven't found the right one. I have a problem with my DNS settings as I mentioned in a previous post of mine. Every time I boot my computer I have to manually change the /etc/resolv.conf file to match Google's DNS. However, whenever I reboot the changes get overwritten and the file comes back to normal.
So my question is : How do you prevent it from changing ?
Thanks in advance.
“The cleverest of all, in my opinion, is the man who calls himself a fool at least once a month.”Fyodor Dostoevsky

User avatar
erikdubois
Captain
Posts: 1428
Joined: Tue Nov 07, 2017 2:45 pm
Location: Belgium
Contact:
Belgium
Re: [OPEN] How to prevent /etc/resolv.conf from changing

Post by erikdubois » Mon Jul 09, 2018 4:51 am

When reading this text

https://wiki.archlinux.org/index.php/Do ... resolution

i find this
To prevent programs from overwriting resolv.conf you can also write-protect it by setting the immutable file attribute.
https://wiki.archlinux.org/index.php/Fi ... attributes

Code: Select all

chattr +i /path/to/file
Let me know if it works. I never needed to do this.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
and only then use the power of our moderators.

User avatar
gh1da
Crewman
Posts: 13
Joined: Thu Jul 05, 2018 4:48 pm
United States of America
Re: [OPEN] How to prevent /etc/resolv.conf from changing

Post by gh1da » Mon Jul 09, 2018 12:20 pm

Hello Erik,
Yes it worked, thank you. However I get a konsole (because I'm using Plasma) at the startup.
Thanks again.
“The cleverest of all, in my opinion, is the man who calls himself a fool at least once a month.”Fyodor Dostoevsky

User avatar
erikdubois
Captain
Posts: 1428
Joined: Tue Nov 07, 2017 2:45 pm
Location: Belgium
Contact:
Belgium
Re: [OPEN] How to prevent /etc/resolv.conf from changing

Post by erikdubois » Mon Jul 09, 2018 1:45 pm

Konsole is just the standard terminal from plasma.

There are 50+ terminal emulators out there... :geek: :ugeek:
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
and only then use the power of our moderators.

User avatar
gh1da
Crewman
Posts: 13
Joined: Thu Jul 05, 2018 4:48 pm
United States of America
Re: [SOLVED] How to prevent /etc/resolv.conf from changing

Post by gh1da » Mon Jul 09, 2018 1:56 pm

Nope that was not my problem but anyways I figured out what's wrong. The auto-launching of the terminal was due to another problem :D.
Thanks again.
“The cleverest of all, in my opinion, is the man who calls himself a fool at least once a month.”Fyodor Dostoevsky


Post Reply

Return to “General”