Fat client does not have domain name set (hostname -d empty)

Bug #1093088 reported by Marco Menardi
6
This bug affects 1 person
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://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution
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

Revision history for this message
Marco Menardi (mmenaz) wrote :

Don't know if I better open another issue, but I also noticed that in /etc/hosts the IP is wrong:
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.domain_name host_name
or, if NO domain_name available, simply
127.0.1.1 host_name

Changed in ltsp:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Vagrant Cascadian (vagrantc) wrote :
Changed in ltsp:
status: Confirmed → Fix Committed
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Fix released in LTSP 5.5.5.

Changed in ltsp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.