From: Rafał Radecki <radecki.ra...@gmail.com>

> 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@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to