LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2009, 02:16 AM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
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?

Last edited by Cyberman; 06-14-2009 at 02:17 AM.
 
Old 06-14-2009, 02:53 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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

Last edited by bathory; 06-14-2009 at 02:57 AM.
 
Old 06-14-2009, 07:27 PM   #3
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Original Poster
Rep: Reputation: 17
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sys admin vs network admin sulekha Linux - General 5 01-11-2009 05:03 AM
loading a new OS from another OS, and designating it's drive to use. Lola Kews Linux - Software 1 07-13-2008 05:34 PM
I can't run any thing with admin previlages, except in the terminal using sudo. fayezderya Linux - Software 2 03-24-2008 07:46 AM
Network Admin PDD Linux - Networking 7 10-19-2004 12:14 PM
i want to be network admin...... joesbox Linux - Security 14 10-19-2003 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration