Description Usage Arguments Value See Also Examples
Returns the DNS A records for a given FQDN
1 2 | resolv_a(fqdn, nameserver = NA_character_, showWarnings = FALSE,
full = FALSE)
|
fqdn |
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) |
vector or data frame (if full
==TRUE
) of A records or character(0)
if none
http://www.nlnetlabs.nl/projects/ldns/
http://www.cambus.net/interesting-dns-hacks/ (cool DNS A hacks vla https://twitter.com/habbie/status/460067198586081280)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
require(resolv)
## single address return
resolv_a("etsy.com")
[1] "38.106.64.123"
## multiple address returns
resolv_a("google.com")
[1] "173.194.43.0" "173.194.43.1" "173.194.43.2" "173.194.43.3"
[5] "173.194.43.4" "173.194.43.5" "173.194.43.6" "173.194.43.7"
[9] "173.194.43.8" "173.194.43.9" "173.194.43.14"
## must put at least one DNS hack in
resolv_a("10.15.add.calc.postel.org", "dns.postel.org")
[1] "0.25.0.0"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.