Skip to content

Commit 81d6950

Browse files
Merge pull request #15908 from CarlosCommits/feat/rdap-registrar-enrichment
Add registrar extractors to rdap-whois template
2 parents 531193d + 5519c90 commit 81d6950

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

http/miscellaneous/rdap-whois.yaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,42 @@ http:
9191
json:
9292
- '.entities[] | select(.roles[] | contains("registrant")) | .vcardArray[1].[] | select(.[0] == "adr") | .[-1][-1]'
9393

94+
- type: json
95+
part: body
96+
name: registrarIANAId
97+
json:
98+
- '.entities[] | select(.roles[] | contains("registrar")) | .publicIds[] | select(.type == "IANA Registrar ID") | .identifier'
99+
100+
- type: json
101+
part: body
102+
name: registrarName
103+
json:
104+
- '.entities[] | select(.roles[] | contains("registrar")) | .vcardArray[1].[] | select(.[0] == "fn") | .[-1]'
105+
106+
- type: json
107+
part: body
108+
name: registrarOrg
109+
json:
110+
- '.entities[] | select(.roles[] | contains("registrar")) | .vcardArray[1].[] | select(.[0] == "org") | .[-1]'
111+
112+
- type: json
113+
part: body
114+
name: registrarUrl
115+
json:
116+
- '.entities[] | select(.roles[] | contains("registrar")) | .links[] | select(.rel == "about") | .href'
117+
118+
- type: json
119+
part: body
120+
name: registrarEmail
121+
json:
122+
- '.entities[] | select(.roles[] | contains("registrar")) | .entities[] | select(.roles[] | contains("abuse")) | .vcardArray[1].[] | select(.[0] == "email") | .[-1]'
123+
124+
- type: json
125+
part: body
126+
name: registrarPhone
127+
json:
128+
- '.entities[] | select(.roles[] | contains("registrar")) | .entities[] | select(.roles[] | contains("abuse")) | .vcardArray[1].[] | select(.[0] == "tel") | .[-1]'
129+
94130
- type: json
95131
part: body
96132
name: nameServers
@@ -102,4 +138,3 @@ http:
102138
name: secureDNS
103139
json:
104140
- '.secureDNS.delegationSigned // false'
105-
# digest: 4a0a0047304502210089f0a9e2881e1bdf0fd908267bae0c4091674aab999d12ce7d5f89e0fef5eddd02203622c149d38037f8fda4750b070762b7b3e3339fa73296c79fbac5255373e096:922c64590222798bb761d5b6d8e72950

0 commit comments

Comments
 (0)