On 29/01/2022 13:44, Gordon Messmer wrote:
On 1/28/22 06:08, Robert Nichols wrote:
Where does Fedora get its domain name? When I type "hostname --fqdn" I get "hostname: Name or service not known". The CentOS 8 VM apparently gets its domain name from the /etc/hostname file, which contains "cent9-vm.local". This does not appear to work in Fedora 35.
If I put a fqdn in /etc/hostname, that will show up as the static hostname, but "domainname" still returns "(none)" and everything else is the same.
Set the system hostname using "hostnamectl hostname <static>.local". Once you do, hostnamectl, domainname and most importantly "nfsidmap -d" should all output the expected domain. In the latter case, that will be "local", and at that point NFS4 should map names correctly.
I have no problems with NFSv4 even with....
[root@fedora ~]# nfsidmap -d localdomain [root@fedora ~]# hostnamectl hostname fedora.local
But I do have nfs-idmapd.service with "Domain = localdomain" in its configuration file. If I change that to "Domain = local" and restart nfs-idmapd.service I do get
[root@fedora ~]# nfsidmap -d local
But everything works no matter what the setting
-- Did 황준호 die?