Open paulalexandru opened 7 years ago
WHOIS server for .de domains appears to still be whois.denic.de
, trying querying that from your machine and see if it works then.
I tried from localhost, no luck. Same result
@paulalexandru I just tried with a .de domain inside of a docker container running a fresh install of php 7.0 and it worked. Possibly an issue with your DNS and that specific whois server? You could always try your query in another whois client, for example just use whois in a Linux terminal.
Imposible, I have also PHP 7.0.10 on my wamp, and I get:
Domain: google.de Status: connect Domain is registered
But If I try any other online whois, I will get like 70 lines of information
Oh okay I understand, if your goal is to actually get the contact information for any TLD then you should consider using another library as this one only parses certain metadata within Whois requests. You will encounter this problem with many other TLD’s not just .de domains (for example also .edu and a lot of new gTLDs) as some registars have set up their Whois databases to respond in a different/non-standard format.
This problem is present in many other Whois libraries so your easiest option at this point would just be to collect the raw data from the Whois servers directly without use of any library and run unit tests in your own parser to make sure It works correctly for all TLDs.
This is what I had to do for my own web service that relies heavily on the Whois databases.
On Jul 8, 2017 at 5:11 AM, <paulalexandru (mailto:notifications@github.com)> wrote:
Imposible, I have also PHP 7.0.10 on my wamp, and I get:
Domain: google.de Status: connect Domain is registered
But If I try any other online whois, I will get like 70 lines of information
— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/regru/php-whois/issues/74#issuecomment-313844625), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACv43vKQy0LtbS81l0xeryHBUCe6nioPks5sL0fTgaJpZM4ORfED).
I tried with any .de website and I don't get any data. I tried on other websites and they seem to work when I query a .de website.