NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.12k stars 14.15k forks source link

whois command doesn't show up-to-date info #56796

Closed gurjeet closed 1 year ago

gurjeet commented 5 years ago

Issue description

Nix's version of whois command is unable to find domain registration details, while the native whois command works just fine.

It has been almost 24 hours since the registration of the domain, so I'd expect any DNS server used by Nix's whois to have been updated by now.

Steps to reproduce

$ hash -r
$ which -a whois
/Users/gurjeetsingh/.nix-profile/bin/whois
/Users/gurjeetsingh/.nix-profile/bin/whois
/usr/bin/whois

$ whois somesite.org
No match for "SOMESITE.ORG".
>>> Last update of whois database: 2019-03-04T01:09:36Z <<<

NOTICE: The expiration date displayed in this ...
...
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.

$ /usr/bin/whois somesite.org
% IANA WHOIS server
% for more information on IANA, visit http://www.iana.org
% This query returned 1 object

refer:        whois.pir.org

domain:       ORG

organisation: Public Interest Registry (PIR)
address:      1775 Wiehle Avenue
address:      Suite 102A
address:      Reston Virginia 20190
address:      United States

contact:      administrative
name:         Director of Operations, Compliance and Customer Support
organisation: Public Interest Registry (PIR)
address:      1775 Wiehle Avenue
address:      Reston Virginia 20190
address:      United States
phone:        +1 919 369 4161
fax-no:       +1 703 889 5779
e-mail:       ops@pir.org

contact:      technical
name:         Senior Director, DNS Infrastructure Group
organisation: Afilias
address:      Building 3, Suite 105
address:      300 Welsh Road
address:      Horsham, Pennsylvania 19044
address:      United States
phone:        +1 215.706.5700
fax-no:       +1 215.706.5701
e-mail:       tld-tech-poc@afilias.info

nserver:      A0.ORG.AFILIAS-NST.INFO 199.19.56.1 2001:500:e:0:0:0:0:1
nserver:      A2.ORG.AFILIAS-NST.INFO 199.249.112.1 2001:500:40:0:0:0:0:1
nserver:      B0.ORG.AFILIAS-NST.ORG 199.19.54.1 2001:500:c:0:0:0:0:1
nserver:      B2.ORG.AFILIAS-NST.ORG 199.249.120.1 2001:500:48:0:0:0:0:1
nserver:      C0.ORG.AFILIAS-NST.INFO 199.19.53.1 2001:500:b:0:0:0:0:1
nserver:      D0.ORG.AFILIAS-NST.ORG 199.19.57.1 2001:500:f:0:0:0:0:1
ds-rdata:     9795 7 2 3922b31b6f3a4ea92b19eb7b52120f031fd8e05ff0b03bafcf9f891bfe7ff8e5
ds-rdata:     9795 7 1 364dfab3daf254cab477b5675b10766ddaa24982

whois:        whois.pir.org

status:       ACTIVE
remarks:      Registration information: http://www.pir.org

created:      1985-01-01
changed:      2016-05-10
source:       IANA

Domain Name: SOMESITE.ORG
Registry Domain ID: D402200000009602947-LROR
Registrar WHOIS Server: whois.1and1.com
Registrar URL: http://registrar.1und1.de
Updated Date: 2019-03-03T17:30:59Z
Creation Date: 2019-03-03T17:30:56Z
Registry Expiry Date: 2020-03-03T17:30:56Z
Registrar Registration Expiration Date:
Registrar: 1&1 Internet SE
Registrar IANA ID: 83
Registrar Abuse Contact Email: abuse@1and1.com
Registrar Abuse Contact Phone: +1.6105601459
Reseller:
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited
Domain Status: addPeriod https://icann.org/epp#addPeriod
Registrant Organization: 1&1 Internet Inc
Registrant State/Province: PA
Registrant Country: US
Name Server: NS1053.UI-DNS.DE
Name Server: NS1105.UI-DNS.BIZ
Name Server: NS1063.UI-DNS.COM
Name Server: NS1082.UI-DNS.ORG
DNSSEC: unsigned
URL of the ICANN Whois Inaccuracy Complaint Form https://www.icann.org/wicf/)
>>> Last update of WHOIS database: 2019-03-04T01:08:51Z <<<

Domain Name: somesite.org
Registry Domain ID: d402200000009602947-lror
Registrar WHOIS Server: whois.ionos.com
Registrar URL: http://ionos.com
Updated Date: 2019-03-03T17:30:59.000Z
Creation Date: 2019-03-03T17:30:56.000Z
Registrar Registration Expiration Date: 2020-03-03T17:30:56.000Z
Registrar: 1&1 IONOS SE
Registrar IANA ID: 83
Registrar Abuse Contact Email: abuse@ionos.com
Registrar Abuse Contact Phone: +1.8774612631
Reseller:
Domain Status: clientTransferProhibited https://www.icann.org/epp#clientTransferProhibited
Domain Status: serverTransferProhibited https://www.icann.org/epp#serverTransferProhibited
Domain Status: addPeriod https://www.icann.org/epp#addPeriod
Registry Registrant ID: proxypir_us
Registrant Name: Oneandone Private Registration
Registrant Organization: 1&1 Internet Inc
Registrant Street: 701 Lee Road Suite 300
Registrant Street: ATTN
Registrant City: Chesterbrook
Registrant State/Province: PA
Registrant Postal Code: 19087
Registrant Country: US
Registrant Phone: +1.8772064254
Registrant Phone Ext:
Registrant Fax:
Registrant Fax Ext:
Registrant Email: privacy@1and1.com
Registry Admin ID: REDACTED FOR PRIVACY
Admin Name: REDACTED FOR PRIVACY
Admin Organization: REDACTED FOR PRIVACY
Admin Street: REDACTED FOR PRIVACY
Admin City: REDACTED FOR PRIVACY
Admin State/Province: REDACTED FOR PRIVACY
Admin Postal Code: REDACTED FOR PRIVACY
Admin Country: REDACTED FOR PRIVACY
Admin Phone: REDACTED FOR PRIVACY
Admin Phone Ext: REDACTED FOR PRIVACY
Admin Fax: REDACTED FOR PRIVACY
Admin Fax Ext: REDACTED FOR PRIVACY
Admin Email: privacy@1and1.com
Registry Tech ID: REDACTED FOR PRIVACY
Tech Name: REDACTED FOR PRIVACY
Tech Organization: REDACTED FOR PRIVACY
Tech Street: REDACTED FOR PRIVACY
Tech City: REDACTED FOR PRIVACY
Tech State/Province: REDACTED FOR PRIVACY
Tech Postal Code: REDACTED FOR PRIVACY
Tech Country: REDACTED FOR PRIVACY
Tech Phone: REDACTED FOR PRIVACY
Tech Phone Ext: REDACTED FOR PRIVACY
Tech Fax: REDACTED FOR PRIVACY
Tech Fax Ext: REDACTED FOR PRIVACY
Tech Email: privacy@1and1.com
Nameserver: ns1053.ui-dns.de
Nameserver: ns1105.ui-dns.biz
Nameserver: ns1063.ui-dns.com
Nameserver: ns1082.ui-dns.org
DNSSEC: Unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/

>>> Last update of WHOIS database: 2019-03-04T01:02:52Z <<<

Domain Name: somesite.org
Registry Domain ID: d402200000009602947-lror
Registrar WHOIS Server: whois.ionos.com
Registrar URL: http://ionos.com
Updated Date: 2019-03-03T17:30:59.000Z
Creation Date: 2019-03-03T17:30:56.000Z
Registrar Registration Expiration Date: 2020-03-03T17:30:56.000Z
Registrar: 1&1 IONOS SE
Registrar IANA ID: 83
Registrar Abuse Contact Email: abuse@ionos.com
Registrar Abuse Contact Phone: +1.8774612631
Reseller:
Domain Status: clientTransferProhibited https://www.icann.org/epp#clientTransferProhibited
Domain Status: serverTransferProhibited https://www.icann.org/epp#serverTransferProhibited
Domain Status: addPeriod https://www.icann.org/epp#addPeriod
Registry Registrant ID: proxypir_us
Registrant Name: Oneandone Private Registration
Registrant Organization: 1&1 Internet Inc
Registrant Street: 701 Lee Road Suite 300
Registrant Street: ATTN
Registrant City: Chesterbrook
Registrant State/Province: PA
Registrant Postal Code: 19087
Registrant Country: US
Registrant Phone: +1.8772064254
Registrant Phone Ext:
Registrant Fax:
Registrant Fax Ext:
Registrant Email: privacy@1and1.com
Registry Admin ID: REDACTED FOR PRIVACY
Admin Name: REDACTED FOR PRIVACY
Admin Organization: REDACTED FOR PRIVACY
Admin Street: REDACTED FOR PRIVACY
Admin City: REDACTED FOR PRIVACY
Admin State/Province: REDACTED FOR PRIVACY
Admin Postal Code: REDACTED FOR PRIVACY
Admin Country: REDACTED FOR PRIVACY
Admin Phone: REDACTED FOR PRIVACY
Admin Phone Ext: REDACTED FOR PRIVACY
Admin Fax: REDACTED FOR PRIVACY
Admin Fax Ext: REDACTED FOR PRIVACY
Admin Email: privacy@1and1.com
Registry Tech ID: REDACTED FOR PRIVACY
Tech Name: REDACTED FOR PRIVACY
Tech Organization: REDACTED FOR PRIVACY
Tech Street: REDACTED FOR PRIVACY
Tech City: REDACTED FOR PRIVACY
Tech State/Province: REDACTED FOR PRIVACY
Tech Postal Code: REDACTED FOR PRIVACY
Tech Country: REDACTED FOR PRIVACY
Tech Phone: REDACTED FOR PRIVACY
Tech Phone Ext: REDACTED FOR PRIVACY
Tech Fax: REDACTED FOR PRIVACY
Tech Fax Ext: REDACTED FOR PRIVACY
Tech Email: privacy@1and1.com
Nameserver: ns1053.ui-dns.de
Nameserver: ns1105.ui-dns.biz
Nameserver: ns1063.ui-dns.com
Nameserver: ns1082.ui-dns.org
DNSSEC: Unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/

>>> Last update of WHOIS database: 2019-03-04T01:02:52Z <<<

Technical details

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 17.7.0, macOS 10.13.6`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.1.3`
 - channels(gurjeetsingh): `"nixpkgs-19.09pre170896.6e5caa3f8ac"`
 - nixpkgs: `/Users/gurjeetsingh/.nix-defexpr/channels/nixpkgs`
gurjeet commented 5 years ago

/cc @fpletz since you are listed as a maintainer on the whois package.

matthewbauer commented 5 years ago

I think this could just be what nameserver it is looking at. The macOS whois and Linux whois (https://github.com/rfc1036/whois). You can get the macOS version in Nixpkgs with:

nix-env -iA nixpkgs.darwin.adv_cmds
gurjeet commented 5 years ago

@matthewbauer, following the POLA, the default behaviour of the packages should be such that the user is not surprised by the behaviour.

BTW, does the command whois somesite.org provide expected result for you when using the Nix version of whois?

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
Atemu commented 1 year ago

whois seems to be working for me. There's nothing we can really debug here and it was probably the DNS server having an out-of-date cache or something.