How Do I Change My Domain Name in Linux?
Contents

How do I change the hostname and domain name in Linux?

To change the server’s hostname, please use this procedure:

  1. Configure /etc/hosts: Open the file /etc/hosts with any text editor. …
  2. Setup the hostname using the command “hostname” Type this command to change the hostname; hostname host.domain.com.
  3. Edit the file /etc/sysconfig/network (Centos / Fedora)

25 окт. 2016 г.

How do I change DNS name in Linux?

How to Change DNS in Linux

  1. Access Terminal screen from Activities or press Ctrl +T to open the terminal.
  2. In most of the Linux operating systems, the DNS servers that the system use for name resolution are defined in /etc/resolv. …
  3. Type your sudo password and press Enter key to proceed to the next step.

4 мар. 2021 г.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest