An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Testing A and PTR records on a Mac
#14142 02/09/11 09:14 PM
Joined: Feb 2011
ph8tel Offline OP
OP Offline

Joined: Feb 2011
Hello all,

I am brand new to Mac's and am wondering if anyone knows how to test the A and PTR records from the command line on a Mac, or where I might be able to find the commands. So far google has failed me.

Cheers,
ph8

Last edited by ph8tel; 02/09/11 09:14 PM.
Re: Testing A and PTR records on a Mac
ph8tel #14144 02/09/11 10:46 PM
Joined: Aug 2009
Likes: 8
Offline

Joined: Aug 2009
Likes: 8
With a variation on "If you have to ask how much, you can't afford it", let me ask what you mean by the "A and PTR records". I've been on Macs for quite awhile and never heard that terminology.

Perhaps it has meaning on a PC system, but uses different verbiage on a Mac?


On a Mac since 1984.
Currently: 24" M1 iMac, M2 Pro Mac mini with 27" BenQ monitor, M2 Macbook Air, MacOS 14.x; iPhones, iPods (yes, still) and iPads.
Re: Testing A and PTR records on a Mac
ph8tel #14146 02/10/11 04:26 AM
Joined: Aug 2009
Offline

Joined: Aug 2009
In general, the dig(1) command will return whatever query types you want, or all types.

What, specifically, are you trying to do? Do you have a DNS server running on your own Mac that you are trying to test? Are you testing the configuration of a remote DNS server?

Re: Testing A and PTR records on a Mac
ph8tel #14154 02/10/11 04:28 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
for example, "dig google.com any" in terminal returns all nameserver records, including A, but I see it doesn't seem to indicate ptr. for that you can do "dig google.com ptr"

you can also use @nameserver to query a nameserver besides your system default / cached


I work for the Department of Redundancy Department
Re: Testing A and PTR records on a Mac
Ira L #14157 02/10/11 08:12 PM
Joined: Aug 2009
Likes: 1
Offline

Joined: Aug 2009
Likes: 1
Originally Posted By: Ira L
With a variation on "If you have to ask how much, you can't afford it", let me ask what you mean by the "A and PTR records". I've been on Macs for quite awhile and never heard that terminology.


A and PTR records aren't Mac or PC things; they are Web and Internet domain name record things.

An "A record" is an IP address that goes with a particular domain name. The A record for finetunedmac.com is "74.53.32.254". When you type a domain name into, say, a Web browser, the browser goes toy our name server, asks for the A record for what you typed in, and then connects to that IP address.

The PTR is just the reverse. It is the "canonical name" associated with an IP address. Since many Web sites can live on one server, or many different services (like FTP or Web or SSH) can be associated with one IP address, the "canonical name" is the top level name associated with an IP address--the name of the server that multiple web sites are living on, for instance.

The A record for finetunedmac.com is "74.53.32.254;" the PTR for 74.53.32.254 is "root.gator255.hostgator.com". That tells you that finetunedmac.com is living on a server at IP address 74.53.32.254, and the full canonical name of the server it is living on is root.gator255.hostgator.com.


Photo gallery, all about me, and more: www.xeromag.com/franklin.html
Re: Testing A and PTR records on a Mac
tacit #14159 02/10/11 10:17 PM
Joined: Aug 2009
Likes: 8
Offline

Joined: Aug 2009
Likes: 8
Nicely and clearly explained. Thanks.



On a Mac since 1984.
Currently: 24" M1 iMac, M2 Pro Mac mini with 27" BenQ monitor, M2 Macbook Air, MacOS 14.x; iPhones, iPods (yes, still) and iPads.
Re: Testing A and PTR records on a Mac
Ira L #14160 02/11/11 01:06 AM
Joined: Aug 2009
Likes: 1
Moderator
Offline
Moderator

Joined: Aug 2009
Likes: 1
For the record: List of DNS record types.


alternaut moderator

Moderated by  alternaut, dianne, MacManiac 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.022s Queries: 28 (0.016s) Memory: 0.6005 MB (Peak: 0.6720 MB) Data Comp: Zlib Server Time: 2024-03-29 07:22:40 UTC
Valid HTML 5 and Valid CSS