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
1 answer

return only part of Whois information

Hi we are trying to use NodeJS to return IP address WHOIS information before we send the requesting IP address to the rest of our app - That part is easy. However the part that is not easy is, selecting only the Organization part of the whois…
0
votes
2 answers

Use python to execute shell command and redirect the output to a variable

I am trying to do 2 things with Python- Execute a command at the terminal Save the output of the above command to a variable. This is my code till now - import subprocess ip_address = "http://ipwho.is/104.123.204.11" query_reply =…
user3656142
  • 437
  • 3
  • 14
0
votes
2 answers

Perl: Using data from an anonymous hash

I am adding on to another developers code, we are both new to perl I am trying to take a list of IPs and run it through whois. I am unsure how to access the data in the anonymous hash, how do I use it? He told me the data was stored inside one. This…
Koomba27
  • 3
  • 3
0
votes
2 answers

How to use IP address with whois, after digging it using shell_exec PHP?

I am quite new to PHP, and I am determined to make myself a tool about domain's information. I am requesting for the user, to input the domain name, and afterwards, I dig separate DNS records, such as A,NS etc. The issue that I am facing, is that…
Hoolis
  • 47
  • 6
0
votes
1 answer

SELECT sp_WhoIsActive into Table

I'm trying to script sp_WhoIsActive into a table. The goal is feed the table with an Agent Job every 10 seconds. I followed this guide and I tried to feed the table this way: --Log activity into table. DECLARE @destination_table VARCHAR(4000) = …
Francesco Mantovani
  • 10,216
  • 13
  • 73
  • 113
0
votes
0 answers

Whois ip in python

Is it possible to distinguish between individual people and company/business ip ? I mean , if you query my ip , Does a attribute exist in 'whois' for private people or I have to read the NAME field and compare it against a list of keywords. For…
user14857172
0
votes
1 answer

Is there anyway to batch rdap request for domains?

i want to check 500 domains....does rdap support a way to do it in one api call or do I have to do each domain individually? $ for in in {1..10}; do curl https://rdap.verisign.com/com/v1/domain/chovy.com -s | jq -r '.events[] | select(.eventAction |…
chovy
  • 72,281
  • 52
  • 227
  • 295
0
votes
1 answer

socket.gethostbyname [Errno -2] Name or service not known

I was trying to check a few domain names but even some common one are returning this the error occurs in "df['IPaddr'] = socket.gethostbyname(DN)" socket.gethostbyname [Errno -2] Name or service not known So I tried to try: but most of them are…
0
votes
0 answers

Python incomplete whois result

Am trying to implement a script to gather data on spammers. I need to get informations from a whois request. When doing (on Google Colaboratory) : !pip install python-whois import whois whois.whois('sommeilautop.fr') I get the following result…
Arnaud
  • 141
  • 2
  • 9
0
votes
1 answer

Python module 'python-whois-extended' not working as expected

On google Colaboratory I try to implement a whois script to get informations about spammers. I do the following : !pip install python-whois-extended import whois Then to test what's inside the module I do the following dir(whois) I get this result…
Arnaud
  • 141
  • 2
  • 9
0
votes
0 answers

Should data be sent all at once, or one by one in the WHOIS protocol?

Should data be sent all at once, or one by one in the WHOIS protocol? So, when I create a whois server, should I do this: Client sends "example.tld" to server Server sends "Some info about example.tld" to the client Server sends "Some more info…
0
votes
1 answer

WHAT NAMESERVER IN A WHOIS QUERY REFEER TO?

When i query the domain RepublicOfKoffee.com (This comes from a tryhackme room) , there are two name server listed in the raw data of the response. My question was, what does these two name servers refer to? RepublicOfKoffee.com whois query From…
0
votes
1 answer

Get Expiration date without Whois

I was wondering how would you be able to get an expiration date of a domain name without using whois? I been looking into this for awhile but I still haven't been able to figure out a way around it.
0
votes
1 answer

using whois with Django

I am trying to use the external library of whois but i am getting the error [WinError 2] The system cannot find the file specified I have included the package in my settings file. Here is the code for views: class PreviousSearchView(View): def…
indianLeo
  • 153
  • 1
  • 11
0
votes
1 answer

Find out Provider name with whois in bash

TL;DR I would like to extract the Provider, range Start, range End and the name of the provider from the output of whois in an automated way, but that output varies by provider, so I would like help extracting those three pieces of information for…