Page 2 of 2

Re: Python giving wrong FQDN

Posted: 2021/07/13 16:59:57
by TrevorH
You can have multiple lines in /etc/hosts that name the same ip address and it will match on any of them. It should be noted that the syntax of hosts lines is

ip-address f.q.d.n alias1 alias2 aliasN

Re: Python giving wrong FQDN

Posted: 2021/07/13 20:48:52
by pjsr2
You could call her "fred.localdomain"
Appendix G of RFC 6762 ( https://datatracker.ietf.org/doc/html/r ... appendix-G ) recommends use of one of of the following top level domain names:
  • .intranet.
  • .internal.
  • .private.
  • .corp.
  • .home.
  • .lan.