Set up Custom Nameservers #
Posted 23rd November, 2018
Usually these nameservers are defined by a web host, or by the domain registrar. However, for established sites, you may want to set up custom nameservers, sometimes called vanity nameservers.
These add no additional functionality, but anyone lookup up DNS will see your nameservers as
ns2.yourdomain.com rather than
Setting up custom nameservers can be done as follows:
- Make a note of the IP addresses of nameservers. These should ideally be separate IP addresses on two distinct servers.
- Decide the subdomain you wish to use for your nameservers. We will assume
ns2, but they can be anything.
- Add DNS glue records with your domain registrar. These allow delegation from the root. You will need to add the nameserver record and the IP address.
- Add DNS A records for the two subdomains pointing to the same IP address.
- Set NS records for your domain pointing to the new nameservers.
The nameservers are now ready to use, but some time should be left to allow for propagation and caching. We advise twenty four hours.