LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mimicking the effect of designating nameserver in network-admin but with terminal? (https://www.linuxquestions.org/questions/linux-networking-3/mimicking-the-effect-of-designating-nameserver-in-network-admin-but-with-terminal-732807/)

Cyberman 06-14-2009 02:16 AM

Mimicking the effect of designating nameserver in network-admin but with terminal?
 
System: Debian Lenny

I've come across a problem. I think it has to do with something called resolvconf. I'm not too sure of the complete issue, but I'm stuck with things the way they are. As of late, I have had to go System>Administration>Network and designate the DNS server's IP address (Network>Tab:DNS>Box:DNS Servers).

I need to know of a way I can set this via the terminal. Furthermore, what would be really cool is that if I ever go to System>Administration>Network, then I will see this DNS Server IP address listed.

How do I set such a DNS server IP via terminal?

bathory 06-14-2009 02:53 AM

Quote:

How do I set such a DNS server IP via terminal?
You have to add a line in /etc/resolv.conf:
Code:

nameserver xx.xx.xx.xx
BTW the program resolvconf does the same job.

Regards

Cyberman 06-14-2009 07:27 PM

Thanks for the reply, bathory.

I tried doing that.
I had used an

echo "nameserver 192.x.x.x" > /etc/resolv.conf

before posting this thread.

It showed up on /etc/resolv.conf, but it didn't seem to solve the DNS issue.
It wasn't the same as playing with network-admin.
I'm not sure why.
Also, it didn't show up in network-admin.

Anyone else with other comments?


All times are GMT -5. The time now is 05:18 PM.