openrdap / rdap

RDAP command line client
https://www.openrdap.org
MIT License
230 stars 36 forks source link

RDAP for Nameservers doesn't understand 404 Not Found #7

Closed CameronHall closed 5 years ago

CameronHall commented 5 years ago

When looking up a nameserver that doesn't exist and the server returns a 404 the RDAP client responds with:

cameron$ ~/go/bin/rdap --server=rdap.local -t nameserver ns1.nonexistantnameserver.net
# Error: No RDAP servers responded successfully (tried 1 server(s))
skip2 commented 5 years ago

Could you provide the verbose output? ~/go/bin/rdap -v --server=rdap.local -t nameserver ns1.nonexistantnameserver.net

Trying this on rdap.net (which returns a 404 as it doesn't support nameserver queries), I get "# Error: RDAP server returned 404, object does not exist."

Example of this is below:

[tfh@localhost rdap]$ ~/go/bin/rdap -v --server=rdap.net -t nameserver ns1.nonexistantnameserver.net
# OpenRDAP v0.0.1
# 
# rdap: Configuring query...
# rdap: Using server 'http://rdap.net'
# rdap: Using disk cache (/home/tfh/.openrdap)
# rdap: Bootstrap URL is default 'https://data.iana.org/rdap/'
# rdap: Bootstrap cache TTL set to 3600 seconds
# rdap: Timeout is 30 seconds
# 
# client: Running...
# client: Request type  : nameserver
# client: Request query : ns1.nonexistantnameserver.net
# client: Request URL   : http://rdap.net/nameserver/ns1.nonexistantnameserver.net
# client: RDAP URL #0 is http://rdap.net/nameserver/ns1.nonexistantnameserver.net
# client: GET http://rdap.net/nameserver/ns1.nonexistantnameserver.net
# client: status-code=404, content-type=text/html; charset=utf-8, length=4961 bytes, duration=350.140947ms
# 
# rdap: Finished in 350.488512ms
# Error: RDAP server returned 404, object does not exist.
[tfh@localhost rdap]$ 
CameronHall commented 5 years ago

I appear to be getting the same @skip2. Not sure why I was getting a different output then vs. now but I'll close this issue and reopen it should I manage to reproduce it again. In which case I'll attach the verbose response.