whois

python whois for windows

不打扰是莪最后的温柔 提交于 2019-12-02 04:24:41
I try to get whois in python. I use this http://code.google.com/p/pywhois/ but it run only in linux. Is it posible to run it on windows? currently i get errors (because internal linux command whois used) On Windows just like on Linux, pywhois gives an error if the whois program is not installed. You could try this whois , for example. The reason, of course, is in pywhois/ init .py , line 11: r = subprocess.Popen(['whois', domain], stdout=subprocess.PIPE) Clearly this line needs to run some existing, installed whois command-line program (which accepts the domain to look up as a commandline

(子)域名收集

不想你离开。 提交于 2019-12-01 13:51:35
一、域名收集 域名(Domain Name),是由一串用点分隔的名字组成的Internet上某一台计算机或计算机组的名称,用于在数据传输时标识计算机的电子方位。 例如:baidu.com。而 www.baidu.com 是该域名对应的子域名,www是主机头。 whois查询   whois是用来查询域名的IP及所有者等信息的传输协议。简单说,就是一个用来查询域名是否已经注册,以及注册域名的详细信息。 不同域名后缀的whois信息需要到不同的whois数据库查询。如.com和.edu的whois信息有对应的管理机构保存。   whois查询流程图如下: Whois查询的重要性:   通过Whois查询可以获得域名注册者邮箱地址等信息。一般情况下对于中小型网站域名注册者就是网站管理员。利用搜索引擎对Whois查询到的信息进行搜索,获取更多域名注册者的个人信息。 Whois查询方法: 1、Web接口查询: https://whois.aliyun.com/ 、 https://www.whois365.com/cn/ http://whois.chinaz.com/ 、 https://whois.aizhan.com/ 2、通过Whois命令行查询。   在Kali linux下自带了Whois查询工具,通过命令 whois 域名 进行查询。 二、备案信息查询 ICP备案介绍: ICP

Extract domain name from URL in C#

本秂侑毒 提交于 2019-12-01 03:46:53
问题 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: http://s1.website.co.uk/folder/querystring?key=value => website.co.uk Example 2: ftp://username:password@website.com => website.com The result should be the same when the owner in whois is the same so sub1.xyz.com and sub2.xyz.com both belong to who has the xyz.com

Whois works with fsockopen not with curl

笑着哭i 提交于 2019-11-29 17:14:44
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 = curl_init(); curl_setopt($ch, CURLOPT_URL, "whois.iis.se"); curl_setopt($ch, CURLOPT_PORT, 43); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "google.se\r\n"); $data = curl_exec($ch); curl_close($ch); echo nl2br($data); What is wrong with this curl function? The WHOIS service

What Python way would you suggest to check whois database records?

旧巷老猫 提交于 2019-11-29 13:54:54
问题 I'm trying to get a webservice up and running that actually requires to check whois databases. What I'm doing right now is ugly and I'd like to avoid it as much as I can: I call gwhois command and parse its output. Ugly. I did some search to try to find a pythonic way to do this task. Generally I got quite much nothing - this old discussion list link has a way to check if domain exist. Quite not what I was looking for... But still, it was best anwser Google gave me - everything else is just a

How to get WhoIs info by IP in Python 3?

99封情书 提交于 2019-11-29 02:57:32
问题 Note: This is not a library recommendation question. It is rather about possible approaches to the problem. Question: What approaches are possible to retreive WhoIs information from given IP address in Python 3? The result should contain at least: Registration country ISP name, address, abuse email If registered, the domain name Registration and expiery dates Bonus points if the result is not plain text and is the above info is structured I am not looking for wrappers around the shell "whois"

Getting a full copy of the WHOIS database [closed]

最后都变了- 提交于 2019-11-28 23:57:31
I'm interested in getting access to a full WHOIS database in order to expand on a domain-profile project I'm working on. I know ARIN provides this database only to non-commercial researchers and every WHOIS provider I know of (including ARIN itself) has rate-limiting. I also know, however, some commercial services that already exist (like the registrant lookup section of domaintools.com, which can search for domains by registrant name) which are impossible unless the site has direct access to a cached copy of the WHOIS database. Any idea how they got ahold of their data? There is no publicly

What is the best way to create a whois lookup? [closed]

青春壹個敷衍的年華 提交于 2019-11-28 20:29:36
I want add a domain registration in a website written with PHP. So I need a whois lookup service. What do I need to do? What's are its steps? Do I need a database, API or ... ? Help me please I cannot speak to the quality of any of the following services, but here are a few offerings: WhoAPI Hexillion Whois API DomainTools API WhoisXMLAPI 来源: https://stackoverflow.com/questions/8648794/what-is-the-best-way-to-create-a-whois-lookup

Checking domain name availability with DNS records

末鹿安然 提交于 2019-11-28 19:47:00
How accurately can a domain name's availibility be determined by checking for the existence of NS or SOA (Start of Authority) records? If not, how can I determine this as accurately as possible without resorting to WHOIS? For example, is it worth checking for MX records if no NS records exist? I am specifically interested in .co.za domains, but the only official, fool-proof way to check availability in the .co.za namespace is to use http://co.za/whois.shtml , which limits consecutive checking by IP address. The only 100% reliable way to check for domain availability is to query the registrar's

Get country location of an IP with native PHP

萝らか妹 提交于 2019-11-28 16:50:52
问题 Read on before you say this is a duplicate, it's not. (as far as I could see) I want to get the county code in php from the client. Yes I know you can do this using external sites or with the likes of "geoip_record_by_name" but I don't want to be dependent on an external site, and I can't install "pear" for php as im using shard Dreamhost hosting. I thought I could just do something like this: $output = shell_exec('whois '.$ip.' -H | grep country | awk \'{print $2}\''); echo "<pre>$output<