Hetzner - DokuWiki
Deutsch • English
- How to assign your own names for the Hetzner nameservers
- How you can set up a vanity nameserver entry
A vanity nameserver is a nameserver for which you can use a name of a domain (for example, nsl.example.com for www.example.com) instead of the actual name of the Hetzner nameserver.
Since the Hetzner nameserver is masked, a vanity nameserver allows you to make a more professional impression.
Having a vanity DNS server in operation differs completely from using your own nameserver on a virtual or dedicated server.
With vanity nameservers, the hostname for the Hetzner nameserver is masked. But IP addresses and the reverse DNS entries for the Hetzner nameserver remain the same.
- You have registered a domain.
- You have created all necessary glue records.
If you use Hetzner's Domain or Nameserver Robot, both requirements are already met.
Create the necessary DNS entries
First, you need to create the entries for the corresponding domain A or domain AAAA. Use the IP addresses for the Hetzner name server for these entries.
ns1 IN A 126.96.36.199 ns2 IN A 188.8.131.52 ns3 IN A 184.108.40.206 ns1 IN AAAA 2a01:4f8:0:a101::a:1 ns2 IN AAAA 2a01:4f8:d0a:2004::2 ns3 IN AAAA 2001:67c:192c::add:a3
Then you can replace the existing/old NS entries. Note: Do not forget the trailing dots!
@ IN NS ns1.example.com. @ IN NS ns2.example.com. @ IN NS ns2.example.com.
Create glue records
The last step changes depending on the domain registrar and the TLD that you are using. Generally, you need to create your own glue record for each separate name server.
Using the Hetzner Nameserver Robot
With .com/.net/.org/.biz/.info/.eu domains, you must first register the nameserver. You can do this by going to Robot and then to "DNS Entries" -> "Registered nameservers".
ns1.example.com 220.127.116.11 ns2.example.com 18.104.22.168 ns3.example.com 22.214.171.124
With .de and .at domains, you can add the glue record directly into the input field for the the nameservers. Use the following format: nameserver's hostname + empty space + nameserver's IP address.
ns1.testen.de 126.96.36.199 2a01:4f8:0:a101::a:1 ns2.testen.de 188.8.131.52 2a01:4f8:d0a:2004::2 ns3.testen.de 184.108.40.206 2001:67c:192c::add:a3
Once the changes have been successfully applied, it can still take up to 72 hours for the changes to be seen worldwide.