Quais caracteres / valores têm permissão para usar no DNS?

1

Enquanto procurava as RFCs do DNS por causa da implementação para verificar o sublinhado nos registros CNAME, encontrei essa discussão interessante e a RFC com um ponto interessante:

https://www.ietf.org/mail-archive/web/dnsop/current/msg01449.html

RFC 2181 11. Name syntax: The DNS itself places only one restriction on the particular labels that can be used to identify resource records. That one restriction relates to the length of the label and the full name. The length of any one label is limited to between 1 and 63 octets. A full domain name is limited to 255 octets (including the separators). The zero length full name is defined as representing the root of the DNS tree, and is typically written and displayed as ".". Those restrictions aside, any binary string whatever can be used as the label of any resource record. Similarly, any binary string can serve as the value of any record that includes a domain name as some or all of its value (SOA, NS, MX, PTR, CNAME, and any others that may be added). Implementations of the DNS protocols must not place any restrictions on the labels that can be used. In particular, DNS servers must not refuse to serve a zone because it contains labels that might not be acceptable to some DNS client programs. A DNS server may be configurable to issue warnings when loading, or even to refuse to load, a primary zone containing labels that might be considered questionable, however this should not happen by default.

Então, minha pergunta é: se eu entender corretamente, isso significa que podemos usar em registros DNS como MX, CNAME, etc. algo assim?

Se pedirmos: (imagine que pode haver qualquer string binária)

the?weird?record,___*-+\k8a#$%...domain.ext

Isso pode retornar um mashup de caracteres similar (por exemplo, strig binário?). É permitido?

Naturalmente, não estou perguntando sobre as regras de "nomes de host" e sobre convenções de nomenclatura "preferenciais", mas sobre o uso "permitido" de caracteres no DNS.

    
por Matej Ridzon 07.05.2018 / 12:32

0 respostas