解决方法
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.NOTES
The address families hostname tries when looking up the FQDN,
aliases
and network addresses of the host are determined by the
configuration
of your resolver. For instance,on GNU Libc systems,the
resolver can
be instructed to try IPv6 lookups first by using the inet6
option in /etc/resolv.conf.FILES
/etc/hosts /etc/hostname This file should only contain domain name and not the full FQDN.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。