Agent Wranglers

WEB-166Recommended

Be reachable over IPv6

Make the site and its DNS reachable over IPv6 with AAAA records, as well as over IPv4.

How to do it

Turn on IPv6 on the server and listen on [::]:443 and [::]:80. Add AAAA records for the site and its name servers. Give IPv6 the same firewall rules as IPv4, as Deny all traffic unless a rule allows it says.

Examples

nginx example

server {
  listen 443 ssl;
  listen [::]:443 ssl;
  server_name example.com;
}

Plain text example

example.com.  3600  IN  A     203.0.113.10
example.com.  3600  IN  AAAA  2001:db8::10

How to check

curl -6 -sI https://example.com/ answers like curl -4. internet.nl reports IPv6 for the site and its name servers.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/hosting-and-network/ipv6">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.