LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2007, 01:40 AM   #1
socialjazz
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Rep: Reputation: 0
How to find your own primary DNS


Every time i get an IP from the server through DHCP, i also get its primary DNS.

Is there any linux command or code i can use to get this primary DNS IP without looking at the resolv.conf file??


Thanks
 
Old 04-04-2007, 02:25 AM   #2
anon243
LQ Newbie
 
Registered: Apr 2006
Location: Szeged, Hungary
Distribution: Debian "squeeze"
Posts: 27

Rep: Reputation: 15
Hi.

Thease are to programs you may need:

dig
host
nslookup
dnsdomainname
dnstrace
 
  


Reply



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
primary - secondary DNS jsheffie Solaris / OpenSolaris 2 08-01-2005 06:55 AM
not possible multiple primary dns server? blackzone Linux - Networking 1 01-19-2005 12:11 AM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
primary DNS and DDNS linuxJaver Slackware 0 10-06-2003 11:31 PM
Primary and Secondary DNS dilberim82 Linux - Networking 3 07-13-2001 10:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:16 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