How to get your DNS’s IP address in Mac OS X

How to get your DNS’s IP address in Mac OS X - Updated: 5/12/03; 12:25:04 AM.

After posting this to Versiontracker, I figured that there should be a permanent link to this info somewhere.

Here we go…
To get your DNS server’s IP address in OS X, go into terminal app and type

nslookup www.apple.com

(actually any host with a DNS entry will do, but a commonly cached should be faster i.e. www.apple.com)

The second line of the response will say

Address: XXX.XXX.XXX.XXX

This is your DNS’s IP address (obviously substitute the XXXs with the actual numbers you see).

Check the screenshot below.

0 Response to “How to get your DNS’s IP address in Mac OS X”


  • No Comments

Leave a Reply




Here we go... To get your DNS server's IP address in OS X, go into terminal app and type `nslookup www.apple.com` (actually any host with a DNS entry will do, but a commonly cached should be faster i.e. www.apple.com) The second line of the response will say `Address: XXX.XXX.XXX.XXX` This is your DNS's IP address (obviously substitute the XXXs with the actual numbers you see). Check the screenshot below. ![][2] [1]: http://www.versiontracker.com/moreinfo.fcgi?id=13335&db=macosx [2]: http://jumpserve.com/blanco/images/your-dns-ip.gif [post_title] => How to get your DNS's IP address in Mac OS X [post_category] => 0 [post_excerpt] => [post_lat] => 40.5897 [post_lon] => -73.7411 [post_status] => publish [comment_status] => open [ping_status] => closed [post_password] => [post_name] => how-to-get-your-dnss-ip-address-in-mac-os-x [to_ping] => [pinged] => [post_modified] => 2004-09-28 18:35:59 [post_modified_gmt] => 2004-09-28 23:35:59 [post_content_filtered] => [post_parent] => 0 [guid] => http://jumpserve.com/blanco/archives/2002/01/27/how-to-get-your-dnss-ip-address-in-mac-os-x/ [menu_order] => 0 [post_type] => post [post_mime_type] => [comment_count] => 0 [ancestors] => Array ( ) ) [comments] => Array ( ) [comment_count] => 0 [current_comment] => -1 [comment] => [found_posts] => 0 [max_num_pages] => 0 [max_num_comment_pages] => 0 [is_single] => 1 [is_preview] => [is_page] => [is_archive] => [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_404] => [is_comments_popup] => [is_admin] => [is_attachment] => [is_singular] => 1 [is_robots] => [is_posts_page] => [is_paged] => [query] => Array ( [year] => 2002 [monthnum] => 01 [day] => 27 [name] => how-to-get-your-dnss-ip-address-in-mac-os-x ) [posts] => Array ( [0] => stdClass Object ( [ID] => 175 [post_author] => 2 [post_date] => 2002-01-27 17:03:14 [post_date_gmt] => 2002-01-27 22:03:14 [post_content] => How to get your DNS's IP address in Mac OS X - Updated: 5/12/03; 12:25:04 AM. After posting this to [Versiontracker][1], I figured that there should be a permanent link to this info somewhere. Here we go... To get your DNS server's IP address in OS X, go into terminal app and type `nslookup www.apple.com` (actually any host with a DNS entry will do, but a commonly cached should be faster i.e. www.apple.com) The second line of the response will say `Address: XXX.XXX.XXX.XXX` This is your DNS's IP address (obviously substitute the XXXs with the actual numbers you see). Check the screenshot below. ![][2] [1]: http://www.versiontracker.com/moreinfo.fcgi?id=13335&db=macosx [2]: http://jumpserve.com/blanco/images/your-dns-ip.gif [post_title] => How to get your DNS's IP address in Mac OS X [post_category] => 0 [post_excerpt] => [post_lat] => 40.5897 [post_lon] => -73.7411 [post_status] => publish [comment_status] => open [ping_status] => closed [post_password] => [post_name] => how-to-get-your-dnss-ip-address-in-mac-os-x [to_ping] => [pinged] => [post_modified] => 2004-09-28 18:35:59 [post_modified_gmt] => 2004-09-28 23:35:59 [post_content_filtered] => [post_parent] => 0 [guid] => http://jumpserve.com/blanco/archives/2002/01/27/how-to-get-your-dnss-ip-address-in-mac-os-x/ [menu_order] => 0 [post_type] => post [post_mime_type] => [comment_count] => 0 [ancestors] => Array ( ) ) ) [comments_by_type] => Array ( [comment] => Array ( ) [trackback] => Array ( ) [pingback] => Array ( ) [pings] => Array ( ) ) )

SERVER

Array
(
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => jumpserve.com
    [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
    [HTTP_ACCEPT] => Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_CONNECTION] => close
    [HTTP_CACHE_CONTROL] => no-cache
    [HTTP_PRAGMA] => no-cache
    [PATH] => /bin:/usr/bin:/sbin:/usr/sbin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => jumpserve.com
    [SERVER_ADDR] => 207.7.108.21
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 38.103.63.61
    [DOCUMENT_ROOT] => /users/home/blanco/domains/jumpserve.com/public_html
    [SERVER_ADMIN] => web@one.textdrive.com
    [SCRIPT_FILENAME] => /users/home/blanco/domains/jumpserve.com/public_html/blanco/index.php
    [REMOTE_PORT] => 46451
    [REDIRECT_URL] => /blanco/archives/2002/01/27/how-to-get-your-dnss-ip-address-in-mac-os-x/
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /blanco/archives/2002/01/27/how-to-get-your-dnss-ip-address-in-mac-os-x/
    [SCRIPT_NAME] => /blanco/index.php
    [PHP_SELF] => /blanco/index.php
    [REQUEST_TIME] => 1227305868
)

REQUEST

Array
(
)
-->