1.原理非常简单,域名的查询主要是基于RFC 954提供的WHOIS协议。在上述过程中,我们实际上是访问了InterNIC站点的WHOIS服务器,该服务器从WHOIS数据库中查询我们所需要的内容。
WHOIS服务器是一个基于"查询/响应"的TCP事务服务器,它运行在SRI-NIC机器上(26.0.0.73或10.0.0.51),向用户提供internet范围内的目录服务。本地主机上的用户程序可以通过Internet访问该服务器,其过程主要有下面三步:
(1)在TCP服务端口43(十进制)连接SRI-NIC服务主机;
(2)发送一个命令,以回车和换行(<CRLF>)结尾;
(3)接受相应命令的返回信息,一旦输出结束,服务器将关闭连接。
命令的格式非常简单。可以直接输入域名,例如,可以使用"sohu.com"查询"搜狐"网站的域名信息;也可以使用"help"得到详细的帮助信息。

2.全球列表

.br.com       whois.centralnic.com
.cn.com       whois.centralnic.com
.de.com       whois.centralnic.com
.eu.com       whois.centralnic.com
.gb.com       whois.centralnic.com
.gb.net       whois.centralnic.com
.hu.com       whois.centralnic.com
.no.com       whois.centralnic.com
.qc.com       whois.centralnic.com
.ru.com       whois.centralnic.com
.sa.com       whois.centralnic.com
.se.com       whois.centralnic.com
.se.net       whois.centralnic.com
.uk.com       whois.centralnic.com
.uk.net       whois.centralnic.com
.us.com       whois.centralnic.com
.uy.com       whois.centralnic.com
.za.com       whois.centralnic.com
.com.au       whois.ausregistry.net.au
.net.au       whois.ausregistry.net.au
.org.au       whois.ausregistry.net.au
.asn.au       whois.ausregistry.net.au
.id.au        whois.ausregistry.net.au
.ac.uk        whois.ja.net
.gov.uk       whois.ja.net
.museum       whois.museum
.asia         whois.crsnic.net
.info         whois.afilias.net
.name         whois.nic.name
.aero         whois.information.aero
.coop         whois.nic.coop
.com          whois.crsnic.net
.net          whois.crsnic.net
.org          whois.publicinterestregistry.net
.edu          whois.educause.net
.gov          whois.nic.gov
.int          whois.iana.org
.mil          whois.nic.mil
.biz          whois.neulevel.biz
.as           whois.nic.as
.ac           whois.nic.ac
.al           whois.ripe.net
.am           whois.amnic.net
.at           whois.nic.at
.au           whois.aunic.net
.az           whois.ripe.net
.ba           whois.ripe.net
.be           whois.dns.be
.bg           whois.ripe.net
.br           whois.nic.br
.by           whois.ripe.net
.ca           whois.cira.ca
.cc           whois.nic.cc
.cd           whois.nic.cd
.ch           whois.nic.ch
.cl           whois.nic.cl
.cn           whois.cnnic.net.cn
.cx           whois.nic.cx
.cy           whois.ripe.net
.cz           whois.ripe.net
.de           whois.denic.de
.dk           whois.dk-hostmaster.dk
.dz           whois.ripe.net
.ee           whois.eenet.ee
.eg           whois.ripe.net
.es           whois.ripe.net
.eu           whois.eu
.fi           whois.ripe.net
.fo           whois.ripe.net
.fr           whois.nic.fr
.gb           whois.ripe.net
.ge           whois.ripe.net
.gr           whois.ripe.net
.gs           whois.adamsnames.tc
.hk           whois.apnic.net
.hr           whois.ripe.net
.hu           whois.ripe.net
.ie           whois.domainregistry.ie
.il           whois.isoc.org.il
.in           whois.ncst.ernet.in
.ir           whois.nic.ir
.is           whois.ripe.net
.it           whois.nic.it
.jp           whois.jp
.kh           whois.nic.net.kh
.kr           whois.krnic.net
.li           whois.nic.ch
.lt           whois.ripe.net
.lu           whois.dns.lu
.lv           whois.ripe.net
.ma           whois.ripe.net
.md           whois.ripe.net
.mk           whois.ripe.net
.ms           whois.adamsnames.tc
.mt           whois.ripe.net
.mx           whois.nic.mx
.nl           whois.domain-registry.nl
.no           whois.norid.no
.nu           whois.nic.nu
.nz           whois.srs.net.nz
.pl           whois.dns.pl
.pt           whois.ripe.net
.ro           whois.ripe.net
.ru           whois.ripn.ru
.se           whois.nic-se.se
.sg           whois.nic.net.sg
.si           whois.ripe.net
.sh           whois.nic.sh
.sk           whois.ripe.net
.sm           whois.ripe.net
.su           whois.ripn.net
.tc           whois.adamsnames.tc
.tf           whois.adamsnames.tc
.th           whois.thnic.net
.tj           whois.nic.tj
.tn           whois.ripe.net
.to           whois.tonic.to
.tr           whois.ripe.net
.tv           whois.tv
.tw           whois.twnic.net
.ua           whois.ripe.net
.uk           whois.nic.uk
.us           whois.nic.us
.va           whois.ripe.net
.vg           whois.adamsnames.tc
.ws           whois.nic.ws

whois协议的更多相关文章

  1. TCP/UDP端口列表

    http://zh.wikipedia.org/wiki/TCP/UDP%E7%AB%AF%E5%8F%A3%E5%88%97%E8%A1%A8 TCP/UDP端口列表     本条目可通过翻译外语维 ...

  2. Nmap备忘单:从探索到漏洞利用(Part3)

    众所周知NMAP是经常用来进行端口发现.端口识别.除此之外我们还可以通过NMAP的NSE脚本做很多事情,比如邮件指纹识别,检索WHOIS记录,使用UDP服务等. 发现地理位置 Gorjan Petro ...

  3. 笔记之《用python写网络爬虫》

    1 .3 背景调研 robots. txt Robots协议(也称为爬虫协议.机器人协议等)的全称是"网络爬虫排除标准"(Robots Exclusion Protocol),网站 ...

  4. 《用Python写爬虫》学习笔记(一)

    注:纯文本内容,代码独立另写,属于本人学习总结,无任何商业用途,在此分享,如有错误,还望指教. 1.为什么需要爬虫? 答:目前网络API未完全放开,所以需要网络爬虫知识. 2.爬虫的合法性? 答:爬虫 ...

  5. TCP/UDP 常用端口列表

    计算机之间依照互联网传输层TCP/IP协议不同的协议通信,都有不同的对应端口.所以,利用短信(datagram)的UDP,所采用的端口号码不一定和采用TCP的端口号码一样.以下为两种通信协议的端口列表 ...

  6. TCP/UDP端口列表(WIKIpedia)

    计算机之间依照互联网传输层TCP/IP协议不同的协议通信,都有不同的对应端口.所以,利用短信(datagram)的UDP,所采用的端口号码不一定和采用TCP的端口号码一样.以下为两种通信协议的端口列表 ...

  7. Python网络爬虫学习总结

    1.检查robots.txt 让爬虫了解爬取该网站时存在哪些限制. 最小化爬虫被封禁的可能,而且还能发现和网站结构相关的线索. 2.检查网站地图(robots.txt文件中发现的Sitemap文件) ...

  8. Python代码样例列表

    扫描左上角二维码,关注公众账号 数字货币量化投资,回复“1279”,获取以下600个Python经典例子源码 ├─algorithm│       Python用户推荐系统曼哈顿算法实现.py│    ...

  9. 被动信息收集1——DNS基础 + DNS解析工具 NSLOOKUP使用

    被动信息收集 特点: 基于公开渠道 与目标不直接接触 避免留下一切痕迹 标准參考--OSINT: 美国军方 北大西洋公约组织 名词解释 DNS--Domain Name System 域名系统 因特网 ...

随机推荐

  1. C++实践积累

    C++ STL vector 如何彻底清空一个vector? 实践证明,vector.clear()并不能把vector容量清空,只会让vector.size()变为零,依然很占内存.那如何让vect ...

  2. 【转载】OpenMAXIL介绍与其体系

    1 OpenMAX IL介绍与其体系 这一部分的文档描述 OpenMAX IL的特性与体系. 1.1 OpenMAX IL 简述 OpenMAX IL 软件接口层定义了一套API,用于访问系统中的组件 ...

  3. 运行SparkStreaming的NetworkWordCount实例出错:Error connecting to localhost:9999 java.net.ConnectException: Connection refused 解决办法

    一.背景 首先按照Spark的官方文档来运行此实例,具体方法参见这里,当运行命令$ nc -lk 9999开启端口后,再运行命令$ ./bin/run-example streaming.Networ ...

  4. Hibernate (开源对象关系映射框架)

    一.基本介绍1.它对JDBC进行了非常轻量级的对象封装,它将POJO与数据库表建立映射关系,是一个全自动的orm(对象关系映射)框架,hibernate可以自动生成SQL语句,自动执行: Hibern ...

  5. SCU 4441 Necklace

    最长上升子序列,枚举. 因为$10000$最多只有$10$个,所以可以枚举采用哪一个$10000$,因为是一个环,所以每次枚举到一个$10000$,可以把这个移到最后,然后算从前往后的$LIS$和从后 ...

  6. Python函数系列-一个简单的生成器的例子

    def consumer(): while True: x = yield print('处理了数据:',x) def producer(): pass c = consumer() #构建一个生成器 ...

  7. Python之路【第七篇】:常用模块

    一. 模块介绍 1. 什么是模块 在前面的几个章节中我们基本上是用 python 解释器来编程,如果你从 Python 解释器退出再进入,那么你定义的所有的方法和变量就都消失了. 为此 Python ...

  8. HashMap实现原理及常见问题

    1.简介 HashMap是基于哈希表的Map接口的实现,用来存放键值对(Entry<Key,Value>),并提供可选的映射操作.使用put(Key,Value)存储对象到HashMap中 ...

  9. SpringBoot学习(七)

    静态资源处理 spring Boot 默认的处理方式就已经足够了,默认情况下Spring Boot 使用WebMvcAutoConfiguration中配置的各种属性. 建议使用Spring Boot ...

  10. 【BZOJ 4361】 4361: isn (DP+树状数组+容斥)

    4361: isn Time Limit: 10 Sec  Memory Limit: 256 MBSubmit: 218  Solved: 126 Description 给出一个长度为n的序列A( ...