Note: You are currently viewing my old web site. There is a new version with most of this content at OJB.NZ.
The new site is being updated, uses modern techniques, has higher quality media, and has a mobile-friendly version.
This old site will stay on-line for a while, but maybe not indefinitely. Please update your bookmarks. Thanks.


[Index] [Menu] [Up] Title[Header]
Tips

(Up to OJB's Mac Tips List Page)


Lookup IP Address for a Domain Name

To lookup the IP number for a domain name, use dig (domain internet grapher).

For full DNS infromation for the site, use:
dig DOMAIN
Where DOMAIN is the domain you want to look up.

To return just the IP address, use:
dig +short DOMAIN
Example: dig +short ojb.nz, gives 121.99.240.66

Alternatively, use:
dscacheutil -q host -a name DOMAIN
Where DOMAIN is the domain you want to look up.
Note: This might give a different result, depending on cacheing.


[Up]

[Contact][Server Blog][AntiMS Apple][Served on Mac]