éditer le fichier hostname
vi /etc/hostname 
en modifiant comme suit
your.full.qualified-domain-name.com
éditer le fichier hots
vi /etc/hosts
en modifiant comme suit
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
ip your.full.qualified-domain-name.com your.full
# The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
feo0::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

remplacer ip par votre ip, your.full.qualified-domain-name.com par le fqdn entier, your.full par la partie du fqdn avant qualified-domain-name.com

redémarrer le service hostname

/etc/init.d/hostname.sh stop
/etc/init.d/hostname.sh start