Questions tagged [whois]

The WHOIS protocol allows a user to query the registrant of a particular domain name or IP address.

The WHOIS service is a TCP based protocol that allows you to look up the registrant of a domain name.

The WHOIS service sits on TCP port 43 and can often be found at whois.nic.tld (where 'tld' is replaced with the appropriate top-level domain such as .it or .xyz).

One way to use it is to simply telnet to it and send the domain name followed with at CRLF. For example:

telnet whois.nic.coop 43 midcounties.coop

You will then get a list of all the details about the domain.

415 questions
1
vote
1 answer

bash date: invalid date, invalid conversion

#!/bin/bash DOM="onet.pl wp.pl" for d in $DOM do echo -n "$d - " whois $d | egrep -i 'Expiration|Expires on' | head -1 # If you need list.. whois $d | egrep -i 'Expiration|Expires on' | head -1 >> /tmp/domain.date expdate="$(whois $d |…
ashaneen
  • 137
  • 1
  • 15
1
vote
2 answers

How to store default value when nothing is found or whois fails to get results in python

The code import whois domains = ['google.com', 'stackoverflow.com', 'hdtrcs.com' , 'facebook.com' ] w = [] i = 0 for data in domains: n = domains[i] print(n) i = i+1 data = whois.whois(n) if data != None: …
vipul-rao
  • 387
  • 1
  • 5
  • 12
1
vote
1 answer

whois command and whois REST API giving different results for IP address

Running whois 74.93.16.177 on my laptop gives me information back and tells me the IP belongs to Comcast. However calling the Whois REST API tells me that the IP is not managed by RIPE. I'm also able to get the same results as my local whois query…
Jonathan
  • 10,792
  • 5
  • 65
  • 85
1
vote
0 answers

Python ipwhois ASN Registry Error

I am using ipwhois for the first time. Running the basic usage example with a Google IP address works: from ipwhois import IPWhois obj = IPWhois('74.125.225.229') results = obj.lookup_rdap(depth=1) Any other IP address results in this…
OverflowingTheGlass
  • 2,324
  • 1
  • 27
  • 75
1
vote
0 answers

python whois Socket Error: [Errno -2] Name or service not known

After trying to get whois info via whois python package: import whois w = whois.whois(url) For some urls I get error: Socket Error: [Errno -2] Name or service not known What is the meaning of this error? Also in some cases I get Socket Error:…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
1
vote
0 answers

Error occured in whois server when calling whois client

This is my whois server code. When i excute (whois domain1.lk) in server it was answered 2 or 3 minutes and gives warnning PHP Warning: socket_read(): unable to read from socket [104]: Connection reset by peer in /home/user1/whoisserver/socket.php…
Dmax
  • 47
  • 4
1
vote
3 answers

How to detect the "owner" of a website?

after some web research I hereby ask for some disambiguation of webhosting terms: With a whois (as a command in a terminal or a web interface) one can detect the registrar of a specific domain. This registrar is a company (e.g. InterNIC, OpenNIC...)…
Aeneas
  • 11
  • 2
1
vote
1 answer

Suspicious results Internic WHOIS Query

I was testing the access to the Internic WHOIS with the following code: $domains = array('google.com'); $internic = fsockopen('whois.internic.net', 43); if (is_resource($internic) === true) { foreach ($domains as $domain) { …
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
1
vote
1 answer

Whois works with fsockopen not with curl

This works: $connection = fsockopen("whois.iis.se", 43); fputs($connection, "google.se\r\n"); while (!feof($connection)) { $data .= fgets($connection, 4096); } fclose($connection); echo nl2br($data); But this do not work: $ch =…
cbm
  • 77
  • 6
1
vote
1 answer

How to cut string from whois command in Linux

How can I cut a string from the whois command with PHP on CentOS Linux? I just want to cut from Domain Name: line to the >>>Last update...<<< line. My code:
Anurak Jairak
  • 25
  • 1
  • 6
1
vote
1 answer

Query server address to find out what mail software is installed

Let's say there's a mail server accessible on the internet, example: mail3.domain.com Is it possible to query that address and find out what mail software they are using? Like lotus notes, Exchange, or a linux mailserver software, etc..
ToastMan
  • 297
  • 2
  • 5
  • 13
1
vote
0 answers

Why is my programmatic WHOIS response different from checking on whois.net?

Why is my WHOIS response not the same as when I check it on the website? This is my code to check WHOIS for Google:
1
vote
1 answer

How to format WHOIS response

I need to implement a "whois" service, that will be listening for whois queries (whois -h ) and will respond with information from phpipam API. I am listening on port 43 with xinetd that starts script. My problem is that when I send a response…
raindeftas
  • 13
  • 4
1
vote
1 answer

Get WHOIS "descr" value from IP address and insert into HTML table

I am using an SQL query to extract web statistics from my website. This is done with the MySQL comand line tool and outputted as a HTML table. The table is currently formatted like…
jman
  • 464
  • 1
  • 4
  • 16
1
vote
1 answer

curl whois without headers

I use curl in php to make whois requests. Most of the time this works fine, but the occasional whois server rejects curl requests because they use an invalid format. This is a working example: curl -X "who-is.ga" whois.my.ga:43 This on the other…
clund
  • 99
  • 1
  • 2
  • 8