I need to add my own nameserver, but if i boot installation CD/DVD, i can't edit configuration files. So i'm searching for any way to add the nameserver from terminal.

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

You can add a name server by editing /etc/resolv.conf as root.

sudo vi /etc/resolv.conf

Add the line

nameserver 10.10.10.10

Change 10.10.10.10 to the IP address of your nameserver.

link|improve this answer
But isn't there any command to change it without editing the resolv.conf? – Miro Nov 5 '11 at 12:58
Your distribution might have a helper script that updates nameservers but all it would do is edit resolv.conf. Is there a reason why you can't edit it directly? – Paul Nov 5 '11 at 13:37
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.