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
6
votes
3 answers

Domain name existence via "dig"

Would it be possible to check a domain name its existence by checking the output of "dig"? Inside the bind sources I found these constants: 0 DNS_R_NOEROR 1 DNS_R_FORMERR 2 DNS_R_SERVFAIL 3 DNS_R_NXDOMAIN 4 DNS_R_NOTIMP 5 DNS_R_REFUSED 6…
Salvania
  • 61
  • 1
  • 2
6
votes
2 answers

How to implement your own WHOIS server?

How would you get the WHOIS information to provide in the first place? Note that I'm not actually intending to do this; I'm just interested in how it would work!
HoboBen
  • 2,900
  • 4
  • 21
  • 26
6
votes
4 answers

Check domain availability Java

Is there a relatively simple way in Java to check if a domain is available or not? I need a reliable method, so only checking if the connection can be made is not enough.
Thizzer
  • 16,153
  • 28
  • 98
  • 139
5
votes
2 answers

bash IP whois lookup script

I have a decent admin script working for checking what IPs are logging on too a web app but I need to make it more fancy with a whois at the start and then I thought a geoip. At the moment I've hashed out the whois part of it - my problem is that…
Grimlockz
  • 2,541
  • 7
  • 31
  • 38
5
votes
3 answers

Looking for an open source Java whois parser

I am trying to parse whois lookups in a java based whois server and looking to use a preexisting solution. Please note: I am not looking to parse whois data or query any server. I have looked into commons-cli and JavaCC the later is promising but…
Stratos
  • 374
  • 3
  • 12
5
votes
3 answers

ECONNRESET (Whois::ConnectionError) - Error Trying to Query Whois in Ruby

I'm writing a simple program in Ruby to check if a list of domains is taken. Basically it cycles through a list, and uses the following function to check. require 'rubygems' require 'whois' def check_domain(domain) c = Whois::Client.new …
raven001
  • 97
  • 1
  • 5
5
votes
5 answers

Is there a way to emulate the 'whois' tool using php?

I don't have whois installed on my server (apparently it's in the works but no real news on it). I was wondering if anybody knew a way to emulate the functionality of it though. I figured I'd be posting some data to a url but I don't know what, or…
damnitshot
  • 249
  • 1
  • 4
  • 11
5
votes
4 answers

Using Node.js, how can I check whether a domain name is registered?

I'm building a simple webapp to teach myself node.js, and in it I need to check whether a certain domain name specified by the user is registered. I'm not really sure how to go about this and I'd appreciate it if anybody could enlighten me.
Joe D
  • 2,855
  • 2
  • 31
  • 25
5
votes
2 answers

getaddrinfo(whois.verisign-grs.com): Name or service not known

I tried to WHOIS a domain name, sans.org, but I get the following error: getaddrinfo(whois.pir.org): Name or service not known. And then I tried to WHOIS tiffany.com and get a similar error: getaddrinfo(whois.verisign-grs.com): Name or service not…
Panyu Peng
  • 73
  • 1
  • 5
5
votes
4 answers

Extract domain name from URL in C#

This question has answer in other languages/platforms but I couldn't find a robust solution in C#. Here I'm looking for the part of URL which we use in WHOIS so I'm not interested in sub-domains, port, schema, etc. Example 1:…
Xaqron
  • 29,931
  • 42
  • 140
  • 205
5
votes
1 answer

IP to CIDR/IP-Range

Does anyone know of an API / Script which gives me the CIDR for the network of an IP address? Not IP-Range to CIDR! Background: A fraudster registers on my site and use a proxy or a web hoster to hide his IP address or to fake his ip position. Now…
fxs
  • 173
  • 4
  • 9
5
votes
3 answers

Get the ISP of an IP in node.js

Is there a way to perform a whois on an IP to get the ISP that provides that IP in a Node.js/Express server ? I already got the IP, I'm not looking for a way to get the client's IP. I've found ways with external request to paid services that sends…
brnrd
  • 3,396
  • 3
  • 31
  • 41
5
votes
1 answer

Whois query works with telnet but not netcat

I am trying to write an advanced whois client, so I have been experimenting with sending commands to whois servers using netcat (nc) in Arch Linux. For example, this works great: $ echo domain google.com | nc whois.crsnic.net 43 # => nc outputs…
David Grayson
  • 84,103
  • 24
  • 152
  • 189
5
votes
2 answers

WHOIS server daemon

Is there any WHOIS server daemons to run on my serer and serve My requests? Is it possible to deploy own WHOIS server in the end of WHOIS hierarchy like DNS servers are?
s.webbandit
  • 16,332
  • 16
  • 58
  • 82
4
votes
2 answers

How can I implement a simple WHOIS proxy in Perl?

I have several WHOIS servers for which I want to have a single proxy. The proxy should forward requests to appropriate servers based on the data in the query. How to approach this problem?
planetp
  • 14,248
  • 20
  • 86
  • 160
1 2
3
27 28