Fat client does not have domain name set (hostname -d empty)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LTSP5 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Even if my dhcp sends the domain, FAT client does not put it in /etc/hosts, so the command:
$ hostname -d
returns empty string, and
$ hostname -f
returns only the hostname (i.e. ltsp101 for instance).
This caused problems when I set NFS4 for mounting /home, since idmapd on the server used the host domain, and idmapd in the client, being it empty, falled back to "localdomain", so no username mapping was possible.
I used a workaround (set in the server /etc/idmapd.conf the line Domain = localdomain) but neverless, to avoid possble troubles in the future or with other setups, "good practice" in networking suggestes to have FQDN working.
As you can see here:
http://
the first place where the resolver looks at is the /etc/hosts file.
The "search domain" in /etc/resolv.conf, that is set correctly by LTESP, has NO importance in FQDN of the host itself
Changed in ltsp: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Don't know if I better open another issue, but I also noticed that in /etc/hosts the IP is wrong: domain_ name host_name
127.0.0.2 host_name
instead of the usual
127.0.1.1host_name
So if you fulfil my request, instead of:
127.0.0.2 host_name
there must be something like
127.0.1.1 host_name.
or, if NO domain_name available, simply
127.0.1.1 host_name