* Test :
uname -n
hostname -a
hostname -s
hostname -d
hostname -f
hostname
* Configuration :
/etc/hosts
DHCP
127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox
STATIC IP
127.0.0.1 localhost.localdomain localhost
192.168.0.1 mybox.mydomain.com mybox hostname mybox.mydomain.com
cat /etc/HOSTNAME
mybox.mydomain.com
DYN. DEBIAN : /etc/network/interfaces
iface ethX inet dhcp
hostname mybox.mydomain.com
cat /proc/sys/kernel/hostname
echo mybox.mydomain.com > /proc/sys/kernel/hostname
Autres articles susceptibles de vous intéresser :
Follow Me!