A PTR record is essentially the opposite of an A record. A records resolve names to IP addresses. PTR records resolve IP addresses to names.
A record = give me a name I'll give you an IP
PTR record = give me an IP I'll give you a name
Try it out in windows:
ping "www.Yahoo.com"
Here is what I got:
-------------------------------------------------------------------------------------
F:\>ping www.yahoo.com
Pinging www-real.wa1.b.yahoo.com [69.147.76.15] with 32 bytes of data:
Reply from 69.147.76.15: bytes=32 time=14ms TTL=53
Reply from 69.147.76.15: bytes=32 time=11ms TTL=53
Reply from 69.147.76.15: bytes=32 time=65ms TTL=53
Reply from 69.147.76.15: bytes=32 time=12ms TTL=53
---------------------------------------------------------------------------------------
now do a "ping -a IP-ADDRESS" which will spit you back the name attached to that IP
----------------------------------------------------------------------------------------
F:\>ping -a 69.147.76.15
Pinging f1.www.vip.re1.yahoo.com [69.147.76.15] with 32 bytes of data:
Reply from 69.147.76.15: bytes=32 time=19ms TTL=53
Reply from 69.147.76.15: bytes=32 time=88ms TTL=53
Reply from 69.147.76.15: bytes=32 time=12ms TTL=53
Reply from 69.147.76.15: bytes=32 time=46ms TTL=53
Ping statistics for 69.147.76.15:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 88ms, Average = 41ms
-------------------------------------------------------------------------------------------
Your accessing PTR records to do this.
... and just so you beileve me try a "ping 69.147.76.15" and check the results
FYI: if your doing a ping -a to an intranet host you need to configure reverse lookup for it to work properly.
PTR is an abbreviation for pointer record. This pointer record is often used to do a reverse DNS search. DNS means DOMAIN NAME SYSTEM. These searches are done in order to figure out someone's IP address.
// Return true if str is a palindrome bool is_palindrome (char* str) { int len; char* cpy; char* ptr; bool b; len = strlen (str); if (!len) return false; cpy = malloc (sizeof(char) * (len + 1)); ptr = cpy; while (*ptr=*str) { if (*ptr>='A' *ptr<='Z') *ptr+=('a'-'A'); if ((*ptr>='a' && *ptr<='z') (*ptr>='0' && *ptr<='9')) { ++ptr; } ++str; } *ptr = '\0'; --ptr; str = cpy; while ((cpy!=ptr) && (cpy!=(ptr+1)) && (*cpy==*ptr)) { ++cpy; --ptr; } b = (*cpy==*ptr); free (str); return b; }
A. The PTR resource record.
A function that calls itself. Example: ProcessList (list *ptr) { if (ptr!=NULL) { DoSomething (ptr->data); ProcessList (ptr->next); } }
Error message, mainly. The following operations are legal: ptr + integer (pointer) ptr - integer (pointer) ptr - ptr (integer)
PTR Industries manufactures machine gun rifles for law-enforcement, military, and even regular civilians. Some of their models include the PTR Classic Wood, the PTR MSG91C, and the PTR SFR.
B. In the DNS tab of the DHCP server properties dialog box, select Dynamically Update DNS A And PTR Records For DHCP Clients That Do Not Request Updates. I think.
void main() { int i,j,temp1,temp2; int arr[8]={5,3,0,2,12,1,33,2}; int *ptr; for(i=0;i<7;i++) { for(j=0;j<7-i;j++) { if(*(arr+j)>*(arr+j+1)) { ptr=arr+j; temp1=*ptr++; temp2=*ptr; *ptr--=temp1; *ptr=temp2; clrscr(); for(i=0;i<8;i++) printf(" %d",arr[i]); getch(); }
simple intrest=ptr/100: simple intrest=ptr/100:
A priority queue is a type of data structure that allows for elements to be inserted in any order, and to be retrieved in the order of some priority, defined by the creator. It can be implemented in any programming language, including C. For more details, see related links.
PTR doesn't exsist anymore Artix Entertainment shut it down for good.
(*ptr).field or ptr->field