LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2006, 01:39 AM   #1
TechMansoor
LQ Newbie
 
Registered: Dec 2006
Posts: 18

Rep: Reputation: 0
really simple DNS question.


Just simply trying to add my local dns server to my ubuntu server box. Whats the command to do so? Ifconfig?
 
Old 12-17-2006, 01:43 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Add them to /etc/resolv.conf -- the syntax is:

nameserver <IP of DNS server>

You need one such line per server.
 
Old 12-17-2006, 01:48 AM   #3
TechMansoor
LQ Newbie
 
Registered: Dec 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by btmiller
Add them to /etc/resolv.conf -- the syntax is:

nameserver <IP of DNS server>

You need one such line per server.
How do I get into the .conf file to actually add it?

from the etc directory, edit resolv.conf doesn't work..??
 
Old 12-17-2006, 01:59 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Try the nano or pico text editors, one of which should be installed on your system (they're virtually identical from a user standpoint. You will need to be root, then type:

nano /etc/resolv.conf

Add your DNS server (add it add the top if you want it to be the primary DNS that Linux tries to use) and then press ctrl+o to save the file and ctrl+x to exit.
 
Old 12-17-2006, 02:22 AM   #5
TechMansoor
LQ Newbie
 
Registered: Dec 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by btmiller
Try the nano or pico text editors, one of which should be installed on your system (they're virtually identical from a user standpoint. You will need to be root, then type:

nano /etc/resolv.conf

Add your DNS server (add it add the top if you want it to be the primary DNS that Linux tries to use) and then press ctrl+o to save the file and ctrl+x to exit.

thank you my good sir.any idea why it would have a slower response time in pinging the same dns server by its netbios name(dc1)? I could ping the local address just fine 192.168.1.2, but when i ping it by its real name(dc1), it ms response time is a bit slower.
 
Old 12-17-2006, 03:08 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I'm not really sure, but isn't NetBIOS a Windows thing? Maybe there's a little extra processing time doing the NetBIOS lookup? Or it might just be random depending on how heavily loaded your network is. Is the name server on the same network segment as the host you're trying to ping from?
 
Old 12-17-2006, 03:46 AM   #7
TechMansoor
LQ Newbie
 
Registered: Dec 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by btmiller
I'm not really sure, but isn't NetBIOS a Windows thing? Maybe there's a little extra processing time doing the NetBIOS lookup? Or it might just be random depending on how heavily loaded your network is. Is the name server on the same network segment as the host you're trying to ping from?
Of course, they are all on the same scheme indeed. Not segregated whatsoever.
 
  


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
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Simple DNS help Tom123 Linux - Networking 4 10-07-2004 12:54 PM
Simple DNS update question felkin Linux - Networking 1 04-17-2004 01:33 AM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration