有人告诉我,为了使我的DNS查询工作,我必须转换域名。即rit.edu -> rit3edu;www.google.com to 3www6google3com
我在RFC https://www.ietf.org/rfc/rfc1035.txt中找不到讨论这个问题的地方,因为我甚至尝试执行查找。在我发送到DNS服务器的数据包中。我留着“。”域名,我得到‘未知扩展标签’。我也找不到有用的线索。我在GitHub上找到了一个函数,但是没有讨论它的格式。有人有这方面的经验吗?
提前感谢
发布于 2018-03-07 06:03:39
您可以参考以下内容:label
在RFC1035中,你附加了:
4.1.2. Question section format
QNAME
a domain name represented as a sequence of labels, where
each label consists of a length octet followed by that
number of octets. The domain name terminates with the
zero length octet for the null label of the root....发布于 2018-02-10 20:01:46
在DNS查询中,域名的每个标签前面都应该有一个数字,表示标签的长度。因此,如果facebook.com是问题所在,那么DNS查询中的实际qname应该是8facebook3com。
https://stackoverflow.com/questions/48699252
复制相似问题