Explorar el Código

in-addr helper and fixed error in README

master
boB Rudis hace 10 meses
padre
commit
2a663dc2d1
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 1D7529BE14E2BBA9
Se han modificado 2 ficheros con 44 adiciones y 31 borrados
  1. +7
    -1
      README.Rmd
  2. +37
    -30
      README.md

+ 7
- 1
README.Rmd Ver fichero

@@ -26,7 +26,13 @@ DoH RTFM: <https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html>

The following functions are implemented:

- `doh_post`: Make a POST DoH Request (wireformat)
### Utility

- `to_inaddr_arpa`: Convert a vector of IPv4 addresses to in-addr.arpa format

### DoH

- `doh_get`: Make a DoH Request (GET/REST)

## Installation



+ 37
- 30
README.md Ver fichero

@@ -20,7 +20,14 @@ DoH RTFM:

The following functions are implemented:

- `doh_post`: Make a POST DoH Request (wireformat)
### Utility

- `to_inaddr_arpa`: Convert a vector of IPv4 addresses to in-addr.arpa
format

### DoH

- `doh_get`: Make a DoH Request (GET/REST)

## Installation

@@ -40,7 +47,7 @@ library(tidyverse) # for printing

# current version
packageVersion("playdoh")
## [1] '0.1.0'
## [1] '0.1.1'
```

### Basic functionality
@@ -50,73 +57,73 @@ doh_get("apple.com", "A")
## # A tibble: 3 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 apple.com. 1 1521 Mon, 27 May 2019 16:26:57 UTC 17.142.160.59
## 2 apple.com. 1 1521 Mon, 27 May 2019 16:26:57 UTC 17.178.96.59
## 3 apple.com. 1 1521 Mon, 27 May 2019 16:26:57 UTC 17.172.224.47
## 1 apple.com. 1 1696 Mon, 27 May 2019 16:31:30 UTC 17.178.96.59
## 2 apple.com. 1 1696 Mon, 27 May 2019 16:31:30 UTC 17.142.160.59
## 3 apple.com. 1 1696 Mon, 27 May 2019 16:31:30 UTC 17.172.224.47

doh_get("rud.is", "AAAA")
## # A tibble: 1 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 rud.is. 28 43200 Tue, 28 May 2019 04:01:37 UTC 2602:ff16:3::4dfb:9ac5
## 1 rud.is. 28 43200 Tue, 28 May 2019 04:03:14 UTC 2602:ff16:3::4dfb:9ac5

doh_get("rud.is", "MX")
## # A tibble: 4 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 rud.is. 15 43200 Tue, 28 May 2019 04:01:37 UTC 40 aspmx2.googlemail.com.
## 2 rud.is. 15 43200 Tue, 28 May 2019 04:01:37 UTC 20 alt1.aspmx.l.google.com.
## 3 rud.is. 15 43200 Tue, 28 May 2019 04:01:37 UTC 10 aspmx.l.google.com.
## 4 rud.is. 15 43200 Tue, 28 May 2019 04:01:37 UTC 30 alt2.aspmx.l.google.com.
## 1 rud.is. 15 43200 Tue, 28 May 2019 04:03:15 UTC 20 alt1.aspmx.l.google.com.
## 2 rud.is. 15 43200 Tue, 28 May 2019 04:03:15 UTC 30 alt2.aspmx.l.google.com.
## 3 rud.is. 15 43200 Tue, 28 May 2019 04:03:15 UTC 40 aspmx2.googlemail.com.
## 4 rud.is. 15 43200 Tue, 28 May 2019 04:03:15 UTC 10 aspmx.l.google.com.

doh_get("lenovo.com", "TXT")
## # A tibble: 10 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"qh7hdmqm4lzs85p704d6wsybgrpsly0j\""
## 2 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"Visit www.lenovo.com/think for information about Lenovo products a…
## 3 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"a82c74b37aa84e7c8580f0e32f4d795d\""
## 4 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"iHzQJvsKnyGP2Nm2qBgL3fyBJ0CC9z4GkY/flfk4EzLP8lPxWHDDPKqZWm1TkeF5kE…
## 5 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"facebook-domain-verification=1r2am7c2bhzrxpqyt0mda0djoquqsi\""
## 6 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"ece42d7743c84d6889abda7011fe6f53\""
## 7 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"google-site-verification=sHIlSlj0U6UnCDkfHp1AolWgVEvDjWvc0TR4KaysD
## 8 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"google-site-verification=VxW_e6r_Ka7A518qfX2MmIMHGnkpGbnACsjSxKFCB
## 9 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"google-site-verification=nGgukcp60rC-gFxMOJw1NHH0B4VnSchRrlfWV-He_
## 10 lenovo.co… 16 7200 Mon, 27 May 2019 18:01… "\"v=spf1 include:spf.messagelabs.com include:_netblocks.eloqua.com ~
## 1 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"v=spf1 include:spf.messagelabs.com include:_netblocks.eloqua.com ~…
## 2 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"ece42d7743c84d6889abda7011fe6f53\""
## 3 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"qh7hdmqm4lzs85p704d6wsybgrpsly0j\""
## 4 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"facebook-domain-verification=1r2am7c2bhzrxpqyt0mda0djoquqsi\""
## 5 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"google-site-verification=nGgukcp60rC-gFxMOJw1NHH0B4VnSchRrlfWV-He_…
## 6 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"a82c74b37aa84e7c8580f0e32f4d795d\""
## 7 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"google-site-verification=VxW_e6r_Ka7A518qfX2MmIMHGnkpGbnACsjSxKFCB
## 8 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"Visit www.lenovo.com/think for information about Lenovo products a
## 9 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"google-site-verification=sHIlSlj0U6UnCDkfHp1AolWgVEvDjWvc0TR4KaysD
## 10 lenovo.co… 16 6833 Mon, 27 May 2019 17:57… "\"iHzQJvsKnyGP2Nm2qBgL3fyBJ0CC9z4GkY/flfk4EzLP8lPxWHDDPKqZWm1TkeF5kE

doh_get("dataassurance.pwc.com", "CNAME")
## # A tibble: 1 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 dataassurance.pwc.com. 5 3600 Mon, 27 May 2019 17:01:38 UTC f6759d2.x.incapdns.net.
## 1 dataassurance.pwc.com. 5 3600 Mon, 27 May 2019 17:03:15 UTC f6759d2.x.incapdns.net.

doh_get("rud.is", "NS")
## # A tibble: 3 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 rud.is. 2 43200 Tue, 28 May 2019 04:01:38 UTC dns.mwebdns.net.
## 2 rud.is. 2 43200 Tue, 28 May 2019 04:01:38 UTC dns.mwebdns.eu.
## 3 rud.is. 2 43200 Tue, 28 May 2019 04:01:38 UTC dns.mwebdns.de.
## 1 rud.is. 2 43200 Tue, 28 May 2019 04:03:15 UTC dns.mwebdns.eu.
## 2 rud.is. 2 43200 Tue, 28 May 2019 04:03:15 UTC dns.mwebdns.net.
## 3 rud.is. 2 43200 Tue, 28 May 2019 04:03:15 UTC dns.mwebdns.de.

doh_get("rud.is", "SOA")
## # A tibble: 1 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 rud.is. 6 43200 Tue, 28 May 2019 04:01:38 … dns.mwebdns.de. hostmaster.mandoraweb.de. 2010012659 10800 3600 60480…
## 1 rud.is. 6 43200 Tue, 28 May 2019 04:03:16 … dns.mwebdns.de. hostmaster.mandoraweb.de. 2010012659 10800 3600 60480…

doh_get(to_inaddr_arpa("104.244.13.104"), "PTR")
## # A tibble: 1 x 5
## name type ttl expires data
## * <chr> <int> <int> <chr> <chr>
## 1 104.13.244.104.in-addr.arpa. 12 43200 Tue, 28 May 2019 04:01:38 UTC archive.farsightsecurity.com.
## 1 104.13.244.104.in-addr.arpa. 12 43045 Tue, 28 May 2019 04:00:41 UTC archive.farsightsecurity.com.
```

## playdoh Metrics

| Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) |
| :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | --: |
| R | 7 | 0.88 | 125 | 0.88 | 25 | 0.47 | 54 | 0.6 |
| Rmd | 1 | 0.12 | 17 | 0.12 | 28 | 0.53 | 36 | 0.4 |
| Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) |
| :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |
| R | 7 | 0.88 | 125 | 0.88 | 25 | 0.45 | 54 | 0.58 |
| Rmd | 1 | 0.12 | 17 | 0.12 | 31 | 0.55 | 39 | 0.42 |

## Code of Conduct



Cargando…
Cancelar
Guardar