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

how to handle whois data

I need to put whois data in a table like registrant, created date, expire date etc. I've the script which is extracting data from whois servers, but the output is different for each domain extensions. For example, for .com domains registrant…
vkGunasekaran
  • 6,668
  • 7
  • 50
  • 59
0
votes
1 answer

python3: set and itertools.groupby yielding different outcomes?

I have some Apache access logs I want to parse using IPWhois. I want to group the IPWhois results based on the asn_description field. Isn't the fact that the set and the itertools.groupby() in the following snippet yeild different outcomes? descs =…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
0
votes
1 answer

The whois.whois function always gets a timed out error

The whois.whois function always gets a timed out error. At first, I thought it was because my project is written in Python 2.7 but I also checked in 3.7 and got the same error. I checked the address on the online website that uses whois and the link…
afek banyas
  • 103
  • 1
  • 1
  • 5
0
votes
0 answers

Server resending syn/ack after i send ACK

I am trying to implement raw tcp connections to send query to whois server. After i send syn packet server replies with syn/ack(then my pc send rst packet, but firewall rule solved this problem). After that i send ack packet with seq = 1(first…
0
votes
0 answers

Connecting to whois server

please help me. What is problem with my code? It don't work at all. Please give me some advice. My aim is to get some information from whois server (from whois.nic.cz). Here is my code, which don't work (it gives no entry in whois server): I have…
Petr Marek
  • 59
  • 1
  • 7
0
votes
0 answers

Error when attempting to run 'whois' bash script

I'm relatively new to Linux and attempting the following: I currently have a simple bash loop where I'm hoping to iterate through a list of IPs in a file to output respective 'whois' information. When I run the 'whois [IP]' command individually, it…
0
votes
1 answer

Can't import whois in .py file, but can in shell

I have recently installed whois. When I try to import the whois module in a .py file I get a ModuleNotFoundError. However, when I give the import command in a Python shell the problem does not occur, and the module imports as expected. Each time I…
Frank Fanelli
  • 321
  • 1
  • 3
  • 19
0
votes
0 answers

Get Value from JSON or XML (WHOIS API) Python

I need to take only one value from an XML/JSON file I read into a value. https://whoisapi.whoisxmlapi.com/whois/google.com?format=XML here is my code example : import json try: from urllib.request import urlopen except ImportError: from urllib2…
Mogera
  • 37
  • 1
  • 9
0
votes
1 answer

Using whois rubygem with -h flag

Is there a way to use the whois gem (https://github.com/weppos/whois) with a -h flag? I am looking to run whois queries against a specific database host in my rails project (e.g. whois -h whois.myserver.example google.com) If not, are there other…
S L
  • 11
  • 2
0
votes
2 answers

How are ajax/websocket domain searching services so fast?

I have been using ajaxwhois for years, and there are many of these services for finding domain names now. The fastest seem to use some sort of websocket to connect the interface to the data; but I still don't quite get how it is so lightning…
geoff
  • 831
  • 1
  • 5
  • 19
0
votes
1 answer

How to check for country name if non ripe ncc managed IP-Adress block?

I am checking ripe ncc db for country codes of IP-Adresses in order to prevent registrations from certain countries. /** * Get country code from Ip. * @input IP number * @output Country Code. */ function parse_ip($ip){ $DATABASE =…
merlin
  • 2,717
  • 3
  • 29
  • 59
0
votes
2 answers

How to route any extension with asp.net 4 routing?

I'm trying to handle domain requests like whois.innovacube.com/anydomain.com like whois.domaintools.com/stackoverflow.com My global.asax file contains code below and it handles requests like /test : <%@ Application Language="C#" %> <%@ Import…
HasanG
  • 12,734
  • 29
  • 100
  • 154
0
votes
2 answers

cannot load such file -- whois/server/adapters/verisign

I am trying to create a simple ruby on rails app to output the whois info. I'm brand spankin' new to ruby so bear w/ me. require 'whois' require 'whois-parser' My controller: class WhoisController < ApplicationController def index whois =…
user_78361084
  • 3,538
  • 22
  • 85
  • 147
0
votes
1 answer

Sed: execute alternative command when output from previous one is empty

I wanted to modify dig command to automatically apply a reverse lookup to any A record I receive in output. Therefore, I've created the following function: dt () { remove=$(echo $@ | sed 's^https*^^' | sed 's^[,/*:]^^g' ); dig any +trace…
0
votes
1 answer

phpWhois unable to fetch .org domains

I'm using phpwhois to fetch information on a list of .org domains. Everything begins fine. However, after the script sorts through about 5 of these, the WHOIS server for .org stops giving me results. I can sort through many, many .com's and .net's…
Eric R.
  • 933
  • 1
  • 9
  • 19