AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1138607
Accepted
Arctic Emerald
Arctic Emerald
Asked: 2019-04-28 02:52:55 +0800 CST2019-04-28 02:52:55 +0800 CST 2019-04-28 02:52:55 +0800 CST

重复的whois输出

  • 772

我似乎对 whois 有问题,它似乎在复制输出,不幸的是,这干扰了我的一个脚本。

我已经在我的个人笔记本电脑和 Ubuntu 服务器上对此进行了测试,我也在全新安装的 Ubuntu 上进行了测试。

这在我的 CentOs7 服务器上不是问题。但是,我没有在不同的发行版上对此进行测试。

与 CentO 相比,我对 ubuntu 的了解并不多,但我认为这些实用程序之间不会有那么大的差异。

这是我运行 a 时的示例whois:

╔═══[Date: Sat Apr 27 Time: 05:04 AM]═[[email protected]]
╠══[Total Commands: 977]═[Issued Commands: 4]=[Logins: 2]
╠═[~]
╚[λ]-[$]>-➤ whois foxdale.net
   Domain Name: FOXDALE.NET
   Registry Domain ID: 1830382905_DOMAIN_NET-VRSN
   Registrar WHOIS Server: whois.namecheap.com
   Registrar URL: http://www.namecheap.com
   Updated Date: 2018-09-08T06:15:03Z
   Creation Date: 2013-10-08T18:25:51Z
   Registry Expiry Date: 2019-10-08T18:25:51Z
   Registrar: NameCheap, Inc.
   Registrar IANA ID: 1068
   Registrar Abuse Contact Email: [email protected]
   Registrar Abuse Contact Phone: +1.6613102107
   Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
   Name Server: NS1.FOXDALE.NET
   Name Server: NS2.FOXDALE.NET
   DNSSEC: unsigned
   URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/
>>> Last update of whois database: 2019-04-27T10:37:41Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar.  Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.

TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.

The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
Domain name: foxdale.net
Registry Domain ID: 1830382905_DOMAIN_NET-VRSN
Registrar WHOIS Server: whois.namecheap.com
Registrar URL: http://www.namecheap.com
Updated Date: 2018-09-08T06:15:03.74Z
Creation Date: 2013-10-08T18:25:51.00Z
Registrar Registration Expiration Date: 2019-10-08T18:25:51.00Z
Registrar: NAMECHEAP INC
Registrar IANA ID: 1068
Registrar Abuse Contact Email: [email protected]
Registrar Abuse Contact Phone: +1.6613102107
Reseller: NAMECHEAP INC
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Registry Registrant ID:
Registrant Name: WhoisGuard Protected
Registrant Organization:
Registrant Street: P.O. Box 0823-03411
Registrant City: Panama
Registrant State/Province: Panama
Registrant Postal Code:
Registrant Country: PA
Registrant Phone: +507.8365503
Registrant Phone Ext:
Registrant Fax: +51.17057182
Registrant Fax Ext:
Registrant Email: [email protected]
Registry Admin ID:
Admin Name: WhoisGuard Protected
Admin Organization:
Admin Street: P.O. Box 0823-03411
Admin City: Panama
Admin State/Province: Panama
Admin Postal Code:
Admin Country: PA
Admin Phone: +507.8365503
Admin Phone Ext:
Admin Fax: +51.17057182
Admin Fax Ext:
Admin Email: [email protected]
Registry Tech ID:
Tech Name: WhoisGuard Protected
Tech Organization:
Tech Street: P.O. Box 0823-03411
Tech City: Panama
Tech State/Province: Panama
Tech Postal Code:
Tech Country: PA
Tech Phone: +507.8365503
Tech Phone Ext:
Tech Fax: +51.17057182
Tech Fax Ext:
Tech Email: [email protected]
Name Server: ns1.foxdale.net
Name Server: ns2.foxdale.net
DNSSEC: unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2019-04-27T03:17:32.93Z <<<

!highlight!For more information on Whois status codes, please visit https://icann.org/epp
server whois 19.04
  • 2 2 个回答
  • 102 Views

2 个回答

  • Voted
  1. terdon
    2019-04-28T06:13:03+08:002019-04-28T06:13:03+08:00

    我可以在我的 Arch 机器上确认这种行为,whois版本为 5.4.2。看起来开发人员whois已经决定查询大写和小写域名很有用。我不明白为什么,域名实现规范(RFC 1035)指出(强调我的):

    2.3.3。人物案例

    对于作为官方协议一部分的 DNS 的所有部分,字符串(例如,标签、域名等)之间的所有比较都以不区分大小写的方式进行。目前,该规则无一例外地在整个域系统中生效。但是,超出当前使用的未来添加可能需要在名称中使用完整的二进制八位字节功能,因此应避免尝试以 7 位 ASCII 存储域名或使用特殊字节来终止标签等。

    当数据进入域系统时,应尽可能保留其原始大小写。在某些情况下,这是无法做到的。例如,如果两个 RR 存储在一个数据库中,一个在 xy,一个在 XY,它们实际上存储在数据库中的同一位置,因此将只保留一个套管。基本规则是只有当数据用于定义数据库中的结构时才可以丢弃大小写,并且在不区分大小写的方式下比较两个名称时相同。

    鉴于上述情况,whois开发人员的决定似乎很奇怪,但我不是网络专家,所以他们可能知道一些我不知道的事情。

    大概,你的 CentOS 有一个旧版本,whois它没有这种行为。CentOS 不是最先进的发行版,通常落后于其他发行版更频繁地发布新版本工具的发行版。由于我可以在我的 Arch 系统上重现它,这似乎是whois开发人员做出的上游决定,而不是 Ubuntu 的问题。

    对于它的价值,这似乎已添加到 whois v5.2.17,至少,这是我在 github 存储库https://github.com/rfc1036/whois中找到的第一个显示此行为的版本。

    • 1
  2. Best Answer
    Minty
    2019-04-28T05:25:04+08:002019-04-28T05:25:04+08:00

    我在我的 Ubuntu 18.04 机器和针对 google.com 的 CentOS 7 VM 上运行了这个命令,输出不完全相同,但我没有遇到任何重复问题。相反,Ubuntu 实例似乎正在执行两个查询:首先是全部大写,然后是全部小写。时间戳还表明这是两个单独的查询。我建议像这样在你的脚本中添加一个管道:

    whois foxdale.net | tail -n 60

    由于 CentOS 的输出只有 60 行,而前 60 行左右似乎是相同的,所以您应该能够使用它来将输出格式化为可用的东西。您还可以在您的 CentOS 机器上重复使用该脚本而无需修改。

    • 0

相关问题

  • 使用 dpkg 手动安装软件包是否会阻止未来的升级路径?

  • 如何从命令行刻录双层 dvd iso

  • 如果在服务器机器上运行 Ubuntu 桌面版,性能损失是多少?

  • 将桌面版剥离为服务器版的最简单方法是什么?

  • 如何与无头服务器进行图形交互?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve