How Do I Change My Fully Qualified Domain Name in Linux?
Contents How Do I Change My Domain Name in Linux? Setting Your Domain: Then, in /Etc/Resolvconf/Resolv. Conf. D/Head, You’ll Add Then Line Domain Your. Domain...
Contents
How do I change my domain name in Linux?
Setting your domain:
- Then, in /etc/resolvconf/resolv. conf. d/head , you’ll add then line domain your.domain.name (not your FQDN, just the domainname).
- Then, run sudo resolvconf -u to update your /etc/resolv. conf (alternatively, just reproduce the previous change into your /etc/resolv. conf ).
Must Read
How do I find the FQDN in Linux?
To view the name of the DNS domain and FQDN (Fully Qualified Domain Name) of your machine, use the -f and -d switches respectively. And the -A enables you to see all the FQDNs of the machine. To display the alias name (i.e., substitute names), if used for the host name, use the -a flag.