Re: Centos 6.4 hostname issues.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Rafał Radecki <radecki.rafal@xxxxxxxxx>

> I currently have a problem with hostname and fqdn.
> # hostname
> srv1.devel.test.com
> # hostname --fqdn
> devel.test.com

hostname's man page says:
"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."

So I would check your /etc/hosts.

JD
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux