Hiếu Hoàng
Member
How do I change my hostname to FQDN in Linux?
Answer
Change a server’s hostname
Answer
Change a server’s hostname
- Using a text editor, open the server’s /etc/sysconfig/network file. …
- Modify the HOSTNAME= value to match your FQDN hostname, as shown in the following example: HOSTNAME=myserver.domain.com.
- Open the file at /etc/hosts. …
- Run the hostname command.