LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-30-2012, 08:38 AM   #1
femdela2002
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
How to find DNS


How to find ip for PRIMARY DNS and SECONDARY DNS
 
Old 07-30-2012, 08:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
on linux, your DNS servers are listed in /etc/resolv.conf if that's what you mean. If not, try writing more than one line, and say please / thank you.
 
Old 07-30-2012, 08:42 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Welcome to LQ.

The DNS in use are usually recorded in the file/etc/resolv.conf, provided you use the DHCP protocol to get a network connection.

EDIT. Too late, again.

Last edited by Didier Spaier; 07-30-2012 at 08:43 AM.
 
Old 07-30-2012, 08:45 AM   #4
femdela2002
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
thanks,i mean how to find ip address for primary dns and secondary dns
 
Old 07-30-2012, 08:55 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that is *EXACTLY* what you have already said. That is of no use to us whatsoever.
 
Old 07-30-2012, 09:19 AM   #6
rockstar05
Member
 
Registered: Dec 2011
Posts: 83

Rep: Reputation: Disabled
Welcome femdela2002,

cat /etc/resolv.conf is the best way to see the IP of your DNS server but,
you can use command "nslookup" to see the IP address of your DNS.

If your not satisfied from this answer then please tell what exactly want.

Thanks,

Last edited by rockstar05; 07-30-2012 at 09:20 AM.
 
Old 07-30-2012, 09:19 AM   #7
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
If you want to configure this because DHCP doesn't assigned DNS servers for you, then you need to ask your internet provider about it. You can also use DNS of Google for example, 8.8.8.8 and 8.8.4.4.
 
  


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
LXer: Find out DNS Server Version With DNS Server Fingerprinting Tool LXer Syndicated Linux News 0 12-21-2007 05:30 PM
LXer: Find out DNS Server Version With DNS Server Fingeprinting Tool LXer Syndicated Linux News 0 12-21-2007 04:50 PM
How to find your own primary DNS socialjazz Programming 1 04-04-2007 02:25 AM
why does windows try to find a DNS by name? eantoranz Linux - Networking 4 06-29-2005 10:06 AM
DNS does not find its own name sarmadys Linux - Networking 3 01-26-2002 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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