<div dir="ltr">If I (reluctantly) accept that DNS names that are not hostnames can have underscores in them, why does BIND not have an option to allow that, while still rejecting invalid hostnames?  Or have I missed something?  <div>
<br></div><div>If someone decides to add that feature, I would really like the option to only add the underscore to the allowed list, and not any other special characters, which would break all kinds of things, without adding any real value.</div>
<div><br></div><div class="gmail_extra"><div><br>-- <br>Bob Harold<br>hostmaster<br>Information and Technology Services (ITS)</div><div>University of Michigan<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On May 29, 2014, at 04:24 , hua peng <<a href="mailto:huapeng@arcor.de">huapeng@arcor.de</a>> wrote:<br>
<br>
> I found this is a valid RR:<br>
><br>
> _<a href="http://spf.yandex.ru" target="_blank">spf.yandex.ru</a>.         2768    IN      TXT     "v=spf1<br>
> include:_<a href="http://spf-ipv4.yandex.ru" target="_blank">spf-ipv4.yandex.ru</a> include:_<a href="http://spf-ipv6.yandex.ru" target="_blank">spf-ipv6.yandex.ru</a> ~all"<br>
><br>
><br>
> But for A, CNAME, AAAA etc, the underline in hostname is invalid.<br>
> Does this make a confusion?<br>
<br>
There is a distinction between domain names and host names.  Host names are a subset of domain names; a host name is any domain name that points to an actual host (i.e. has an address record).  The rules for the characters in domain names and host names are slightly different.<br>

<br>
Host names are only allowed the characters [a-z] (case insensitive), [0-9], and [-].  See RFCs 952 and 1123.<br>
<br>
Domain names may use any string as a label, so for example the underscore is perfectly legal.  See RFC 2181.<br>
<br></blockquote></div></div></div>