resolv_ptr: Returns the DNS PTR records for a given IP address

Description Usage Arguments Value See Also Examples

Description

Returns the DNS PTR records for a given IP address

Usage

1
2
resolv_ptr(ip, nameserver = NA_character_, showWarnings = FALSE,
  full = FALSE)

Arguments

ip

address input character vector (FQDN)

nameserver

the nameserver to send the request to (optional; uses standard resolver behavior if not specified)

showWarnings

display R warning messages (bool)

full

include full record response information in results (bool)

Value

vector or data frame (if full==TRUE) of PTR records or character(0) if none

See Also

http://www.nlnetlabs.nl/projects/ldns/

http://www.cambus.net/interesting-dns-hacks/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
require(resolv)

# where www.nasa.gov hosts
resolv_a("www.nasa.gov")
[1] "69.28.187.45"    "208.111.161.110"

resolv_ptr("69.28.187.45")
[1] "cds355.iad.llnw.net."

## big one - truncated output
resolv_ptr("17.149.160.49")
  [1] "asto.re."                   "next.com."
  [3] "qtml.com."                  "qttv.net."
  [5] "apple.com."                 "apple.info."
  [7] "ikids.com."                 "qt-tv.net."
  [9] "carbon.com."                "eworld.com."
...
[131] "quicktimestreaming.net."    "publishing-research.com."
[133] "publishing-research.org."   "applefinalcutproworld.com."
[135] "applefinalcutproworld.net." "applefinalcutproworld.org."

## End(Not run)

hrbrmstr/resolv documentation built on May 17, 2019, 5:12 p.m.