josephxsxn

_ disallowed in HostName

Mar 16th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1.  
  2. https://bugs.openjdk.java.net/browse/JDK-8170265
  3.  
  4. https://tools.ietf.org/html/rfc952
  5.  
  6. A "name" (Net, Host, Gateway, or Domain name) is a text string up
  7. to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
  8. sign (-), and period (.).
  9.  
  10. http://ietf.org/rfc/rfc2782.txt
  11. The symbolic name of the desired protocol, with an underscore
  12. (_) prepended to prevent collisions with DNS labels that occur
  13. in nature. _TCP and _UDP are at present the most useful values
  14. for this field, though any name defined by Assigned Numbers or
  15. locally may be used (as for Service). The Proto is case
  16. insensitive.
  17. http://domainkeys.sourceforge.net/underscore.html
  18.  
  19. Host names are not allowed to have underscores in them. In DNS, host names are the name fields of A or MX records or the data fields of the SOA and NS records. Thus, there are many DNS entries that are not hostnames.
  20.  
  21. Thus, the "_" is purposedly used to disambiguate hosts from other attributes in the DNS. In fact that's the very reason that the "_" prefix was chosen to differentiate selectors and to avoid collisions with existing namespace.
  22. Similarly, O'Reilly's DNS and Bind states in Chapter 4, section 5, 'Names that are not host names can consist of any printable ASCII character.'​
Advertisement
Add Comment
Please, Sign In to add comment