Skip to content

Commit

Permalink
Add UDR TLDs (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
bessone authored Jan 25, 2023
1 parent da22455 commit ea4cf52
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Iodev/Whois/Configs/module.tld.servers.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@
{"zone": ".hk", "host": "whois.hkirc.hk"},
{"zone": ".hk", "host": "whois.hknic.net.hk"},
{"zone": ".*.hk", "host": "whois.hkdnr.net.hk"},
{"zone": ".hk.com", "host": "whois.registry.hk.com"},
{"zone": ".hk.org", "host": "whois.registry.hk.com"},
{"zone": ".hkt", "host": "whois.nic.hkt"},
{"zone": ".hm", "host": "whois.registry.hm"},
{"zone": ".hn", "host": "whois.nic.hn"},
Expand Down Expand Up @@ -555,6 +557,7 @@
{"zone": ".info", "host": "whois.afilias.net"},
{"zone": ".ing", "host": "whois.nic.google"},
{"zone": ".ink", "host": "whois.nic.ink"},
{"zone": ".inc.hk", "host": "whois.registry.hk.com"},
{"zone": ".institute", "host": "whois.nic.institute"},
{"zone": ".insurance", "host": "whois.nic.insurance"},
{"zone": ".insure", "host": "whois.nic.insure"},
Expand Down Expand Up @@ -671,6 +674,7 @@
{"zone": ".ls", "host": "whois.nic.ls"},
{"zone": ".lt", "host": "whois.domreg.lt", "parserType": "commonFlat"},
{"zone": ".ltd", "host": "whois.nic.ltd"},
{"zone": ".ltd.hk", "host": "whois.registry.hk.com"},
{"zone": ".ltda", "host": "whois.afilias-srs.net"},
{"zone": ".lu", "host": "whois.dns.lu"},
{"zone": ".lu", "host": "whois.restena.lu"},
Expand Down
4 changes: 4 additions & 0 deletions tests/Iodev/Whois/Modules/Tld/TldParsingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ public function getTestData()
[ "free.hk", ".hk/free.txt", null ],
// [ "google.com.hk", ".hk/google.com.hk.txt", ".hk/google.com.hk.json" ],

// .HK.COM
[ "free.hk.com", ".hk.com/free.txt", null ],
[ "udr.hk.com", ".hk.com/udr.hk.com.txt", ".hk.com/udr.hk.com.json" ],

// .HR
[ "free.hr", ".hr/free.txt", null ],
[ "google.hr", ".hr/google.hr.txt", ".hr/google.hr.json" ],
Expand Down
8 changes: 8 additions & 0 deletions tests/Iodev/Whois/Modules/Tld/parsing_data/.hk.com/free.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Use of this whois service implies agreement with our whois
terms found here http://www.whois.hk.com/terms.html

Available: Yes
No match for "freedomain.hk.com"

This domain is available for registration, please visit:
http://www.domains.hk.com/register-domain
13 changes: 13 additions & 0 deletions tests/Iodev/Whois/Modules/Tld/parsing_data/.hk.com/udr.hk.com.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"domainName": "udr.hk.com",
"whoisServer": "",
"nameServers": [
"ns1.hkdot.com",
"ns2.hkdot.com"
],
"creationDate": "2005-08-11T00:00:00Z",
"updatedDate": "2005-08-11T00:00:00Z",
"states": [],
"owner": "Hostmaster - Universal Domain Registry",
"registrar": "SARNic - Legacy Registrar"
}
20 changes: 20 additions & 0 deletions tests/Iodev/Whois/Modules/Tld/parsing_data/.hk.com/udr.hk.com.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Use of this whois service implies agreement with our whois
terms found here http://www.whois.hk.com/terms.html

Available: No

Domain Name: UDR.HK.COM
Registrar URL: http://www.sarnic.hk.com
Creation Date: 2005-08-11T00:00:00Z
Last Updated: 2005-08-11T00:00:00Z

Registrar: SARNic - Legacy Registrar
Registrar Abuse Contact Email: [email protected]
Registrant ID: SA-12246
Registrant Name: Hostmaster - Universal Domain Registry
Registrant Organization:
Name Server: NS2.HKDOT.COM
Name Server: NS1.HKDOT.COM

For complete domain details go to:
http://www.whois.hk.com

0 comments on commit ea4cf52

Please sign in to comment.