io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
440 stars 118 forks source link

null response for .ch domains #81

Open deepika-maj opened 5 years ago

deepika-maj commented 5 years ago

the library is returning null response for .ch domains, for eg: swissinfo.ch

io-developer commented 5 years ago

Hmm, cant request via linux whois: image

image

Looks like .CN does not support standard whois protocol

deepika-maj commented 5 years ago

the cli command whois swissinfo.ch -h whois.nic.ch works within my mac terminal however it does not work on an ubuntu like you said. seems like a strange issue within that whois server

bessone commented 5 years ago

In my experience is not possible make a whois on whois.nic.ch on port 43, you must use the web page protected by a captcha.

It's possible to make a domain check using whois.nic.ch on port 4343 (https://www.nic.ch/whois/domaincheck/) whois swissinfo.ch -h whois.nic.ch -p 4343 returns a custom response to indicate the status of the domain, I have not found other ways to not use the web page https://www.nic.ch/whois/ the Swiss are jealous of their whois

https://www.nic.ch/whois/domaincheck

io-developer commented 5 years ago

Very hard terms of use (section 2): https://www.nic.ch/terms/aup/ Maximum what can be done is custom parser for SWITCH. And simple checking domain is registered/free...