[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Domain name weirdness
Hi all,
If on a host there doesn't appear to be a domain name set, check
/etc/hosts. You should find an entry, either in the 127.0.0.1 line or
on a line of its own for the hostname. Either make sure its got a
domain name, or remove the host completely.
>From the dnsdomainname(1) man page:
THE FQDN
You can't change the FQDN (as returned by hostname
--fqdn) or the DNS domain name (as returned by dnsdomainname)
with this command. The FQDN of the system is the name that
the resolver(3) returns for the host name.
Technically: The FQDN is the name gethostbyname(2)
returns for the host name returned by gethostname(2).
The DNS domain name is the part after the first dot.
Therefore it depends on the configuration (usually in
/etc/host.conf) how you can change it. Usually (if the
hosts file is parsed before DNS or NIS) you can change it
in /etc/hosts.
Thanks,
Brad
--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
|Brad Marshall | Plugged In Software|
|Senior Systems Administrator | http://www.pisoftware.com|
|mailto:bmarshal@pisoftware.com | GPG Key Id: 47951BD0 / 1024b|
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
Fingerprint: BAE3 4794 E627 2EAF 7EC0 4763 7884 4BE8 4795 1BD0