Browse Source

in-addr helper and fixed error in README

boB Rudis 3 months ago
parent
commit
2a663dc2d1
No known key found for this signature in database
2 changed files with 44 additions and 31 deletions
  1. 7
    1
      README.Rmd
  2. 37
    30
      README.md

+ 7
- 1
README.Rmd View File

@@ -26,7 +26,13 @@ DoH RTFM: <https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html>
26 26
 
27 27
 The following functions are implemented:
28 28
 
29
-- `doh_post`: Make a POST DoH Request (wireformat)
29
+### Utility
30
+
31
+- `to_inaddr_arpa`:	Convert a vector of IPv4 addresses to in-addr.arpa format
32
+
33
+### DoH
34
+
35
+- `doh_get`: Make a DoH Request (GET/REST)
30 36
 
31 37
 ## Installation
32 38
 

+ 37
- 30
README.md View File

@@ -20,7 +20,14 @@ DoH RTFM:
20 20
 
21 21
 The following functions are implemented:
22 22
 
23
-  - `doh_post`: Make a POST DoH Request (wireformat)
23
+### Utility
24
+
25
+  - `to_inaddr_arpa`: Convert a vector of IPv4 addresses to in-addr.arpa
26
+    format
27
+
28
+### DoH
29
+
30
+  - `doh_get`: Make a DoH Request (GET/REST)
24 31
 
25 32
 ## Installation
26 33
 
@@ -40,7 +47,7 @@ library(tidyverse) # for printing
40 47
 
41 48
 # current version
42 49
 packageVersion("playdoh")
43
-## [1] '0.1.0'
50
+## [1] '0.1.1'
44 51
 ```
45 52
 
46 53
 ### Basic functionality
@@ -50,73 +57,73 @@ doh_get("apple.com", "A")
50 57
 ## # A tibble: 3 x 5
51 58
 ##   name        type   ttl expires                       data         
52 59
 ## * <chr>      <int> <int> <chr>                         <chr>        
53
-## 1 apple.com.     1  1521 Mon, 27 May 2019 16:26:57 UTC 17.142.160.59
54
-## 2 apple.com.     1  1521 Mon, 27 May 2019 16:26:57 UTC 17.178.96.59 
55
-## 3 apple.com.     1  1521 Mon, 27 May 2019 16:26:57 UTC 17.172.224.47
60
+## 1 apple.com.     1  1696 Mon, 27 May 2019 16:31:30 UTC 17.178.96.59 
61
+## 2 apple.com.     1  1696 Mon, 27 May 2019 16:31:30 UTC 17.142.160.59
62
+## 3 apple.com.     1  1696 Mon, 27 May 2019 16:31:30 UTC 17.172.224.47
56 63
 
57 64
 doh_get("rud.is", "AAAA")
58 65
 ## # A tibble: 1 x 5
59 66
 ##   name     type   ttl expires                       data                  
60 67
 ## * <chr>   <int> <int> <chr>                         <chr>                 
61
-## 1 rud.is.    28 43200 Tue, 28 May 2019 04:01:37 UTC 2602:ff16:3::4dfb:9ac5
68
+## 1 rud.is.    28 43200 Tue, 28 May 2019 04:03:14 UTC 2602:ff16:3::4dfb:9ac5
62 69
 
63 70
 doh_get("rud.is", "MX")
64 71
 ## # A tibble: 4 x 5
65 72
 ##   name     type   ttl expires                       data                       
66 73
 ## * <chr>   <int> <int> <chr>                         <chr>                      
67
-## 1 rud.is.    15 43200 Tue, 28 May 2019 04:01:37 UTC 40 aspmx2.googlemail.com.  
68
-## 2 rud.is.    15 43200 Tue, 28 May 2019 04:01:37 UTC 20 alt1.aspmx.l.google.com.
69
-## 3 rud.is.    15 43200 Tue, 28 May 2019 04:01:37 UTC 10 aspmx.l.google.com.     
70
-## 4 rud.is.    15 43200 Tue, 28 May 2019 04:01:37 UTC 30 alt2.aspmx.l.google.com.
74
+## 1 rud.is.    15 43200 Tue, 28 May 2019 04:03:15 UTC 20 alt1.aspmx.l.google.com.
75
+## 2 rud.is.    15 43200 Tue, 28 May 2019 04:03:15 UTC 30 alt2.aspmx.l.google.com.
76
+## 3 rud.is.    15 43200 Tue, 28 May 2019 04:03:15 UTC 40 aspmx2.googlemail.com.  
77
+## 4 rud.is.    15 43200 Tue, 28 May 2019 04:03:15 UTC 10 aspmx.l.google.com.
71 78
 
72 79
 doh_get("lenovo.com", "TXT")
73 80
 ## # A tibble: 10 x 5
74 81
 ##    name        type   ttl expires                 data                                                                  
75 82
 ##  * <chr>      <int> <int> <chr>                   <chr>                                                                 
76
-##  1 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"qh7hdmqm4lzs85p704d6wsybgrpsly0j\""                                
77
-##  2 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"Visit www.lenovo.com/think for information about Lenovo products a…
78
-##  3 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"a82c74b37aa84e7c8580f0e32f4d795d\""                                
79
-##  4 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"iHzQJvsKnyGP2Nm2qBgL3fyBJ0CC9z4GkY/flfk4EzLP8lPxWHDDPKqZWm1TkeF5kE…
80
-##  5 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"facebook-domain-verification=1r2am7c2bhzrxpqyt0mda0djoquqsi\""     
81
-##  6 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"ece42d7743c84d6889abda7011fe6f53\""                                
82
-##  7 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"google-site-verification=sHIlSlj0U6UnCDkfHp1AolWgVEvDjWvc0TR4KaysD
83
-##  8 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"google-site-verification=VxW_e6r_Ka7A518qfX2MmIMHGnkpGbnACsjSxKFCB
84
-##  9 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"google-site-verification=nGgukcp60rC-gFxMOJw1NHH0B4VnSchRrlfWV-He_
85
-## 10 lenovo.co…    16  7200 Mon, 27 May 2019 18:01… "\"v=spf1 include:spf.messagelabs.com include:_netblocks.eloqua.com ~
83
+##  1 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"v=spf1 include:spf.messagelabs.com include:_netblocks.eloqua.com ~…
84
+##  2 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"ece42d7743c84d6889abda7011fe6f53\""                                
85
+##  3 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"qh7hdmqm4lzs85p704d6wsybgrpsly0j\""                                
86
+##  4 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"facebook-domain-verification=1r2am7c2bhzrxpqyt0mda0djoquqsi\""     
87
+##  5 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"google-site-verification=nGgukcp60rC-gFxMOJw1NHH0B4VnSchRrlfWV-He_…
88
+##  6 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"a82c74b37aa84e7c8580f0e32f4d795d\""                                
89
+##  7 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"google-site-verification=VxW_e6r_Ka7A518qfX2MmIMHGnkpGbnACsjSxKFCB
90
+##  8 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"Visit www.lenovo.com/think for information about Lenovo products a
91
+##  9 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"google-site-verification=sHIlSlj0U6UnCDkfHp1AolWgVEvDjWvc0TR4KaysD
92
+## 10 lenovo.co…    16  6833 Mon, 27 May 2019 17:57… "\"iHzQJvsKnyGP2Nm2qBgL3fyBJ0CC9z4GkY/flfk4EzLP8lPxWHDDPKqZWm1TkeF5kE
86 93
 
87 94
 doh_get("dataassurance.pwc.com", "CNAME")
88 95
 ## # A tibble: 1 x 5
89 96
 ##   name                    type   ttl expires                       data                   
90 97
 ## * <chr>                  <int> <int> <chr>                         <chr>                  
91
-## 1 dataassurance.pwc.com.     5  3600 Mon, 27 May 2019 17:01:38 UTC f6759d2.x.incapdns.net.
98
+## 1 dataassurance.pwc.com.     5  3600 Mon, 27 May 2019 17:03:15 UTC f6759d2.x.incapdns.net.
92 99
 
93 100
 doh_get("rud.is", "NS")
94 101
 ## # A tibble: 3 x 5
95 102
 ##   name     type   ttl expires                       data            
96 103
 ## * <chr>   <int> <int> <chr>                         <chr>           
97
-## 1 rud.is.     2 43200 Tue, 28 May 2019 04:01:38 UTC dns.mwebdns.net.
98
-## 2 rud.is.     2 43200 Tue, 28 May 2019 04:01:38 UTC dns.mwebdns.eu. 
99
-## 3 rud.is.     2 43200 Tue, 28 May 2019 04:01:38 UTC dns.mwebdns.de.
104
+## 1 rud.is.     2 43200 Tue, 28 May 2019 04:03:15 UTC dns.mwebdns.eu. 
105
+## 2 rud.is.     2 43200 Tue, 28 May 2019 04:03:15 UTC dns.mwebdns.net.
106
+## 3 rud.is.     2 43200 Tue, 28 May 2019 04:03:15 UTC dns.mwebdns.de.
100 107
 
101 108
 doh_get("rud.is", "SOA")
102 109
 ## # A tibble: 1 x 5
103 110
 ##   name     type   ttl expires                     data                                                                  
104 111
 ## * <chr>   <int> <int> <chr>                       <chr>                                                                 
105
-## 1 rud.is.     6 43200 Tue, 28 May 2019 04:01:38 … dns.mwebdns.de. hostmaster.mandoraweb.de. 2010012659 10800 3600 60480…
112
+## 1 rud.is.     6 43200 Tue, 28 May 2019 04:03:16 … dns.mwebdns.de. hostmaster.mandoraweb.de. 2010012659 10800 3600 60480…
106 113
 
107 114
 doh_get(to_inaddr_arpa("104.244.13.104"), "PTR")
108 115
 ## # A tibble: 1 x 5
109 116
 ##   name                          type   ttl expires                       data                         
110 117
 ## * <chr>                        <int> <int> <chr>                         <chr>                        
111
-## 1 104.13.244.104.in-addr.arpa.    12 43200 Tue, 28 May 2019 04:01:38 UTC archive.farsightsecurity.com.
118
+## 1 104.13.244.104.in-addr.arpa.    12 43045 Tue, 28 May 2019 04:00:41 UTC archive.farsightsecurity.com.
112 119
 ```
113 120
 
114 121
 ## playdoh Metrics
115 122
 
116
-| Lang | \# Files |  (%) | LoC |  (%) | Blank lines |  (%) | \# Lines | (%) |
117
-| :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | --: |
118
-| R    |        7 | 0.88 | 125 | 0.88 |          25 | 0.47 |       54 | 0.6 |
119
-| Rmd  |        1 | 0.12 |  17 | 0.12 |          28 | 0.53 |       36 | 0.4 |
123
+| Lang | \# Files |  (%) | LoC |  (%) | Blank lines |  (%) | \# Lines |  (%) |
124
+| :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |
125
+| R    |        7 | 0.88 | 125 | 0.88 |          25 | 0.45 |       54 | 0.58 |
126
+| Rmd  |        1 | 0.12 |  17 | 0.12 |          31 | 0.55 |       39 | 0.42 |
120 127
 
121 128
 ## Code of Conduct
122 129
 

Loading…
Cancel
Save