WHOIS 中的奇怪网络路径
作为一个自学项目,我正在实现一个 C++ whois 客户端。我使用几个古老的 C 实现作为参考,例如 koders.com。
有件事让我困惑。除了预期的路径格式(例如 example.com、example.co.uk、192.0.32.10 或 2620:0:2d0:200::10)之外,旧的 C 实现还接受一些其他格式:
- 以以下格式之一开头的路径字符串: “net-”、“netblk-”、“asn-”、“as-”、“lim-”、“coco-”、“coho-”或“core-”。
我认为这些看起来像“netblk-example”,但我没有有效的示例。
- 以下列字符串之一结尾的路径: “-au-dom”、“-dom”、“-org”、“-hst”、“-arin”、“-ripe”、“-mnt”、“-gandi”、“-ap”、“-au ”、“-ti”、“-is”、“-6bone”、“-norid”、“-ripn”、“-sgnic”、“-metu”、“-cknic”或“-kg”。
同样,我认为这些看起来像“example-arin”,但我不确定。
(最后)回答我的问题:有人知道这些路径是什么吗?它们还被使用吗?有人有像这样的有效路径的合法示例吗?
2011 年 5 月 23 日更新 添加了 C++ 标签(我的实现语言),因为似乎没有人会在没有语言的情况下查看“网络编程”。
As a self-learning project, I'm implementing a C++ whois client. I'm using a couple of ancient C implementations for reference, e.g. koders.com.
One thing puzzles me. As well as the expected path format, like example.com, example.co.uk, 192.0.32.10 or 2620:0:2d0:200::10, the old C implementations accept some other formats:
- Paths beginning with one of the following strings:
"net-", "netblk-", "asn-", "as-", "lim-", "coco-", "coho-" or "core-".
I presume these look something like "netblk-example" but I don't have a working example.
- Paths ending in one of the following strings:
"-au-dom", "-dom", "-org", "-hst", "-arin", "-ripe", "-mnt", "-gandi", "-ap", "-au", "-ti", "-is", "-6bone", "-norid", "-ripn", "-sgnic", "-metu", "-cknic" or "-kg".
Again, I presume these look like "example-arin" but I'm not certain.
To (finally) get to my question: does anybody know what these paths are? Are they still used? Does anybody have legit examples of valid paths like these?
Update 23 May 2011
Added C++ tag (my implementation language) as nobody seems to even view "network-programming" without a language.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些额外的字符串(主要)用于识别区域互联网注册管理机构维护的对象类型,例如 RIPE、ARIN、APNIC。
他们的数据库也可以通过
whois
协议访问,即使其中的条目不是域名。These extra strings are (mostly) for recognising the object types maintained by the Regional Internet Registries, such as RIPE, ARIN, APNIC.
Their databases are also accessible via the
whois
protocol, even though the entries within them are not domain names.