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, 09: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, 09:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 09:42 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,776

Rep: Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115
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 09:43 AM.
 
Old 07-30-2012, 09: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, 09:55 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

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 10:20 AM.
 
Old 07-30-2012, 10:19 AM   #7
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

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


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