Linux 下Firefox无法打开在'.domain'之前带有中划线的域名

时间:2023-03-10 06:37:55
Linux 下Firefox无法打开在'.domain'之前带有中划线的域名

问题

Linux系统下的Firefox无法打开在“.domain”之前带有中划线的域名 eg:"http://su---.diandian.com/"

问题原因

  • 域名不符合规范(参见 参考地址1)

The labels must follow the rules for ARPANET host names. They must
start with a letter, end with a letter or digit, and have as interior
characters only letters, digits, and hyphen. There are also some
restrictions on the length. Labels must be 63 characters or less.

临时解决方案

在/etc/hosts添加对应域名记录

参考地址

  1. http://www.ietf.org/rfc/rfc1035.txt
  2. https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/121467