Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to change DNS server ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GTXcube
n00b
n00b


Joined: 05 Apr 2012
Posts: 31

PostPosted: Mon Nov 19, 2012 2:20 pm    Post subject: [Solved] How to change DNS server ? Reply with quote

Hello people. I tried to change dns ip in /etc/resolv.conf but always when i restart networkmanager, it changes it back to default. How to change my dns ips permanently ? thanks

Last edited by GTXcube on Mon Nov 19, 2012 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Mon Nov 19, 2012 2:27 pm    Post subject: Reply with quote

Code:
chattr +i /etc/resolv.conf
Back to top
View user's profile Send private message
ce110ut
Apprentice
Apprentice


Joined: 27 Sep 2002
Posts: 200

PostPosted: Mon Nov 19, 2012 2:28 pm    Post subject: Reply with quote

Hello GTXcube,

/etc/resolv.conf is updated by dhcp client, each time it is [re]started. What you want is to configure your system to custom settings, either thru this doc:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8

or possibly thru NetworkManager. I'm not too familiar with what NetworkManager offers in terms of options.
Back to top
View user's profile Send private message
GTXcube
n00b
n00b


Joined: 05 Apr 2012
Posts: 31

PostPosted: Mon Nov 19, 2012 2:41 pm    Post subject: Reply with quote

@creaker
Thanks. It works :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum