Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > determining DNS...

determining DNS...
Thread Tools
Grizzled Veteran
Join Date: Jan 2003
Location: The midwest...
Status: Offline
Reply With Quote
Oct 28, 2004, 05:51 AM
 
I have looked around everywhere, and I'm sure there is a simple answer, I just can't seem to find it. How do I determine what my current DNS information is in os x? I know ifconfig -a shows all my IP info, I just don't see the DNS info anywhere...

It seems like a dumb question, but if anyone can help, it would be greatly appreciated...

Joe
     
Professional Poster
Join Date: Oct 1999
Location: Always within bluetooth range
Status: Offline
Reply With Quote
Oct 28, 2004, 05:31 PM
 
How about Applications->Utilities->Network Utility ? Go to the 'Lookup' pane and put in your IP. Is this the info you want ??
     
Mac Elite
Join Date: Apr 2000
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Oct 29, 2004, 06:39 AM
 
The GUI way:

1. Open System Preferences
2. Click Network
3. Double click the active configuration device (e.g. Ethernet)
4. It's in the same tab as the IP address and all that (Note: does not work with DHCP-assigned information)

The Command Line Way:
1. cat /etc/resolv.conf

And they say the command line is clunky
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Oct 29, 2004, 12:06 PM
 
I don't know of any place to find the whole list of DNS servers that you've been assigned via DHCP, but I can tell you how to find the server that's being used at the moment: do a lookup using "dig".

In the Terminal, type
dig apple.com
(or whatever domain you want)

The last bit of the output will look something like this:
;; Query time: 202 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Fri Oct 29 13:03:56 2004
;; MSG SIZE rcvd: 188

The "SERVER" line is the DNS server address (in my case, it's my blue G3 acting as a router).

tooki
     
Professional Poster
Join Date: Oct 1999
Location: Always within bluetooth range
Status: Offline
Reply With Quote
Oct 29, 2004, 07:16 PM
 
Originally posted by tooki:
I
In the Terminal, type
dig apple.com
(or whatever domain you want)
I just tried that. It gave the exact same info (actually a little less) than using Network Utility as I'd described above. Network Utility also gives a little checkbox labelled "Use 'dig' instead of 'nslookup' "
(Last edited by Krusty; Oct 30, 2004 at 10:07 AM. )
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:37 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2