TOSIT-IO / tdp-collection-prerequisites

Ansible collection with TDP prerequisites
Apache License 2.0
3 stars 10 forks source link

Add alias with FQDN trailing dot inside "/etc/hosts" #24

Closed rpignolet closed 1 year ago

rpignolet commented 2 years ago

From https://github.com/TOSIT-IO/tdp-collection/issues/440#issue-1362257506.

Documentation https://cwiki.apache.org/confluence/display/HADOOP2/UnknownHost:

If you are using /etc/hosts files instead of DNS-based lookups and your hosts files have FQDNs, you must ensure that the FQDN includes a trailing dot. Thus a correct hosts file entry for foo.example.com may look like this.

1.2.3.4  foo.example.com foo.example.com. foo

The Hadoop host resolver ensures hostnames are terminated with a trailing dot prior to lookup to avoid the security issue described in RFC 1535.

kpgtek commented 1 year ago

Tested on Rocky 8, I can not reproduce the error described from issue #440, with and without "trailing dot" in /etc/hosts file.