mirror of
https://github.com/jakejarvis/rdapper.git
synced 2026-10-26 08:26:22 -04:00
fix: read .lu's registrar and drop the generic "organisation" key
.lu names its registrar under "registrar-name", which wasn't read. The bare "organisation" key matched any contact's organisation (.be took its tech contact's "DNS Belgium vzw"); registrar sections are now read as "registrar name" instead, and dropping the key changes nothing else across the saved corpus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+23
-1
No files matched your search
@@ -622,3 +622,25 @@ Registrar
|
||||
const kr = "DNSSEC : 서명\n\nDNSSEC : signed\n";
|
||||
expect(normalizeWhois("example.kr", "kr", kr, "whois.kr").dnssec).toEqual({ enabled: true });
|
||||
});
|
||||
|
||||
test("WHOIS registrar from .lu 'registrar-name', not a contact's Organisation (.be)", () => {
|
||||
const lu = "domainname: dns.lu\nregistrar-name: Fondation Restena\n";
|
||||
expect(normalizeWhois("dns.lu", "lu", lu, "whois.dns.lu").registrar?.name).toBe(
|
||||
"Fondation Restena",
|
||||
);
|
||||
const be = `
|
||||
Domain: dnsbelgium.be
|
||||
Status: NOT AVAILABLE
|
||||
|
||||
Registrar Technical Contacts:
|
||||
Organisation: DNS Belgium vzw
|
||||
|
||||
Registrar:
|
||||
Name: DNS BE vzw/asbl
|
||||
Website: http://www.dns.be
|
||||
`;
|
||||
expect(normalizeWhois("dnsbelgium.be", "be", be, "whois.dns.be").registrar).toEqual({
|
||||
name: "DNS BE vzw/asbl",
|
||||
url: "http://www.dns.be",
|
||||
});
|
||||
});
|
||||
@@ -156,8 +156,8 @@ export function normalizeWhois(
|
||||
"registrar organization",
|
||||
"registrar name",
|
||||
"registrar organization name", // .tr
|
||||
"registrar-name", // .lu
|
||||
"sponsoring registrar",
|
||||
"organisation",
|
||||
"record maintained by",
|
||||
"registration service provider", // .tw
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user