TwiN / whois

Lightweight WHOIS client in Go
MIT License
7 stars 6 forks source link

Add support for .ch TLD #22

Open jonisapp opened 4 months ago

jonisapp commented 4 months ago

Describe the feature request

When monitoring CERTIFICATE_EXPIRATION with Gatus, I have an error message : "domain extension ch does not have a grace period". It shows a timestamp (2592000000) which is 20 February 2052.

Why do you personally want this feature to be implemented?

No response

How long have you been using this project?

No response

Additional information

No response

sokai commented 1 day ago

IMHO impossible, ATM(?) :/

[user@host:~]$ whois kra.ch
[Querying whois.iana.org:43 'kra.ch']
[Redirected to whois.nic.ch]
[Querying whois.nic.ch:43 'kra.ch']
[Querying whois.nic.ch:43 'domain kra.ch']
[whois.nic.ch]
Requests of this client are not permitted. Please use https://www.nic.ch/whois/ for queries.

vs. (e.g.)

[user@host:~]$ whois bbc.co.uk
[Querying whois.iana.org:43 'bbc.co.uk']
[Redirected to whois.nic.uk]
[Querying whois.nic.uk:43 'bbc.co.uk']
[whois.nic.uk]

    Domain name:
        bbc.co.uk

    Data validation:
        Nominet was able to match the registrant's name and address against a 3rd party data source on 12-Jun-2014

    Registrar:
        British Broadcasting Corporation [Tag = BBC]
        URL: https://www.bbc.co.uk

    Relevant dates:
        Registered on: before Aug-1996
        Expiry date:  13-Dec-2025
        Last updated:  10-Dec-2020

    Registration status:
        Registered until expiry date.

    Name servers:
        ddns0.bbc.co.uk           148.163.199.1  2607:f740:e04e::1
        ddns0.bbc.com
        ddns1.bbc.co.uk           148.163.199.65  2607:f740:e04e:4::1
        ddns1.bbc.com
        dns0.bbc.co.uk            198.51.44.9  2620:4d:4000:6259:7:9:0:1
        dns0.bbc.com
        dns1.bbc.co.uk            198.51.45.9  2a00:edc0:6259:7:9::2
        dns1.bbc.com

    WHOIS lookup made at 15:42:02 04-Nov-2024

-- 
This WHOIS information is provided for free by Nominet UK the central registry
for .uk domain names. This information and the .uk WHOIS are:

    Copyright Nominet UK 1996 - 2024.

You may not access the .uk WHOIS or use any data from it except as permitted
by the terms of use available in full at https://www.nominet.uk/whoisterms,
which includes restrictions on: (A) use of the data for advertising, or its
repackaging, recompilation, redistribution or reuse (B) obscuring, removing
or hiding any or all of this notice and (C) exceeding query rate or volume
limits. The data is provided on an 'as-is' basis and may lag behind the
register. Access may be withdrawn or restricted at any time.

Based on this data unavailability, .ch domains are excluded (ATM): https://github.com/TwiN/whois/blob/v1.1.9/whois.go#L15

KR