Create Domain Name Server Linux. You can set up four different types of DNS servers. Click on the domain name you used for your newly-created Name Servers.
Now set the new name you want to assign for the server. Even if you just want to create a custom nameserver on your own domain name without ever thinking about starting a hosting business these steps will help you to do that. Below are the steps to create your own custom domain name instead of using localhost in Ubuntu.
Get Host name With hostname Command.
You can set up four different types of DNS servers. This will only list host name and will not print domain related information. Create a new TXT record. It specifies which hosts or IP address are allowed to send emails on behalf of a domain.