forked from shift/domain_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
whois.textfsm
18 lines (16 loc) · 965 Bytes
/
whois.textfsm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Value List status (([a-zA-Z_\-]+\s)+)
Value expiryDate ([0-9a-zA-Z\-\.:\s/]+)
# our assumptions about DNS servers:
# at least one alphanumeric(inc dash) field separated by dots,
# after that whitespace possibly followed by IPv4 and/or IPv6 addresses,
# these are possibly enclosed in []
# NB we do not care about IPv4/v6 addresses being syntactically correct for now
Value List nServer (([0-9a-zA-Z\-])+(\.[0-9a-zA-Z\-]+)*(\s(\[|\(){0,1}([0-9A-Fa-f]{1,4}){1}((\.|:|::)[0-9A-Fa-f]{1,4}){3,7}(\]|\)|,){0,1})*)
Value dnssec ([0-9a-zA-Z\.\-\s]+)
Value registrar (.+)
Start
^(?i)\s*(\[ロック状態]|(domain\s)*status\.*:)\s*${status}\shttp(s|):
^(?i)\s*(\[有効期限]|paid-till:|(registr(y|ar\sregistration)\s)*expir(y|e(s|-date|)|ation)(\sdate|\stime)*\.*:)\s*${expiryDate}
^(?i)\s*\[*(name\s|n)server\]*\.*:*\s*${nServer}(\.|\s\[OK])*
^(?i)\s*(dnssec(\ssigned){0,1}|dsrecord|keyset)\.*:\s*${dnssec}
^(?i)\s*(sponsoring\s)*registrar\.*:\s*${registrar}