Disclosure up front: I run IPYE, a company that leases IP space. Most of this article is practical how-to; IPYE appears where a free /48, LOA, or ROA helps you try the work, with a short call to action at the end.

If your domain's nameservers live inside the domain itself, as with ns1.example.net serving example.net, resolvers face a chicken-and-egg problem: to find the address of ns1.example.net they would need to ask ns1.example.net. Glue records solve it. The parent zone, such as .net, publishes the nameserver addresses alongside the delegation. This article covers setting up glue with IPv6 addresses for nameservers numbered from a free IPv6 /48 from IPYE, and the checks that keep it correct. The examples use example.net, with ns1 at 2001:db8:100::53 and ns2 at a second provider.

Do not put every nameserver in one /48

Before the mechanics, a design rule: at least one nameserver should be outside your own network. If all of them sit in your /48 and the /48 becomes unreachable through a routing problem, a filter, or an upstream outage, your domain disappears too. That also takes out mail and anything else that depends on the domain, often making the outage harder to fix. Use a secondary at a different provider, in a different network, as ns2.

Register host objects at the registrar

Registrars call glue "host records", "child nameservers" or "register nameserver". Create one for each in-domain nameserver, with both address families if you have them:

  • ns1.example.net: 2001:db8:100::53 and 192.0.2.53

Then set the domain's nameservers to ns1.example.net and ns2.example.net, with ns2.example.net also registered if it is in-domain. Some registrars only accept IPv4 glue through their web interface and need a support request for IPv6. If yours does, ask. IPv6 glue is fully supported by the major top-level domains.

Matching records in your zone

The child zone must agree with the parent:

example.net. IN NS ns1.example.net. example.net. IN NS ns2.example.net. ns1.example.net. IN AAAA 2001:db8:100::53 ns1.example.net. IN A 192.0.2.53 ns2.example.net. IN AAAA 2001:db8:ffff::53 ns2.example.net. IN A 198.51.100.53 

If the glue at the parent says one address and the zone says another, resolvers may use either, and you get intermittent failures that are hard to reproduce. Change both together, and when moving a nameserver, run the old and new addresses in parallel until caches expire.

Check the delegation from the top

Query the parent's servers directly with recursion disabled, so you see what they publish:

dig +norec @a.gtld-servers.net example.net NS 

The authority section lists the nameservers, and the additional section shows the glue records, including AAAA entries if IPv6 glue is registered. Then check that your server answers authoritatively over IPv6 specifically:

dig -6 +norec @2001:db8:100::53 example.net SOA dig -6 +norec @2001:db8:100::53 example.net NS 

The answers should carry the aa flag, and the NS set should match what the parent publishes.

Test resolution over IPv6 only

From a host with IPv6 only, or with IPv4 temporarily disabled, resolve a name in the zone through a public resolver and through a full trace:

dig +trace -6 www.example.net AAAA 

+trace follows the delegation from the root, using only IPv6 with -6. If it fails at the step for your zone, the IPv6 glue is missing, the server is not reachable over IPv6, or a firewall blocks UDP or TCP 53.

Allow TCP 53 as well as UDP. Large responses, including DNSSEC answers and responses with several AAAA records, fall back to TCP, and IPv6 makes fragmentation of large UDP responses more fragile.

DNSSEC with in-domain nameservers

Glue records are not signed. They are hints for reaching the server. The child zone's own A and AAAA records for ns1 are signed and are what validators trust in the end, which is another reason to keep both copies identical. The DS record at the registrar is a separate step covered by your DNSSEC setup.

Keep the nameserver address stable

A nameserver address is one of the hardest things to change later, because it lives at the registrar and in resolver caches. Give it a dedicated /128 on a dummy interface, out of a block you will not renumber, so you can move the service between machines without touching the registrar. With your own /48, the address stays yours even when you change hosting providers, as long as the new provider routes the prefix.

Routing comes first

Glue pointing at 2001:db8:100::53 is useless until the /48 is reachable. That needs the announcement, the LOA from the IPYE dashboard for your upstream, and a valid ROA, which is created automatically while the prefix sits on IPYE's ARIN or APNIC accounts.

Do this next

Claim your free /48, set up ns1 on a dedicated address with a secondary elsewhere, register IPv6 glue, and run dig +trace -6 to confirm. Questions: ipye@turnel.com.

About IPYE

IPYE (https://ipye.com) leases IPv4, IPv6 and ASN space with instant setup. Your first IPv6 /48 is free for the first year, a real allocation you can announce on your own ASN, with a LOA from the portal and the ROA created automatically. ASN and region changes apply automatically. IPv4 /24 to /22 leases include LOA, ROA and per-/24 rDNS; WHOIS is editable on IPv6 /44 and larger. Locations: Los Angeles, New York, Ashburn, Salt Lake City, London, Amsterdam, Frankfurt. Claim your free /48: https://my.ipye.com/products/ipv6-rental. Questions: ipye@turnel.com.

Disclosure: I run IPYE