LinuxでHostNameとDNSDomainを操作する

1.RHEL OS
vim /etc/sysconfig/network
HOSTNAME=server.domain.com

/etc/hosts
IP server.domain.com server

hostname server.domain.com
service network restart
2.Debian OS
vim /etc/hostname
server

vim /etc/hosts
IP server.domain.com server

/etc/init.d/hostname.sh

Linux

Posted by arkgame