Bind9 - “标签太长”

时间:2014-05-15 14:04:47

标签: dns debian bind subdomain nameservers

有没有办法增加pri.example.com文件中子域(A记录)的密度,这样Bind9就可以加载一个长子域而不显示“标签太长”,例如:

this-is-a-subdomain-number-one   $ATTL IN A XXX.XXX.XXX.XXX
this-is-a-subdomain-number-two   $ATTL IN A XXX.XXX.XXX.XXX
this-is-a-subdomain-number-three-that-one-of-my-clients-wish-to-use-for-his-website-but-bind9-upon-loading-is-displaying-label-to-long-error   $ATTL IN A XXX.XXX.XXX.XXX
this-is-a-subdomain-number-four   $ATTL IN A XXX.XXX.XXX.XXX

this-is-a-subdomain-number-one.example.com this-is-a-subdomain-number-two.example.com 和< strong> this-is-a-subdomain-number-four.com 工作正常,但bind9无法加载这是一个子域号 - 三个那个我的一个-clients-wish-to-use-for-his-website-but-bind9-upon-loading-is-displaying-label-to-long-error.example.com :(

有什么想法吗?

1 个答案:

答案 0 :(得分:2)

来自&#39; pedia

Each label may contain up to 63 characters. The full domain name may not exceed the length of 253 characters in its textual representation. In the internal binary representation of the DNS the maximum length requires 255 octets of storage, since it also stores the length of the name.