1
0
Fork 0
Go to file
Ambrose Chua 8b0d071549
Create LICENSE
2017-12-24 05:16:24 +08:00
LICENSE Create LICENSE 2017-12-24 05:16:24 +08:00
README.md Update usage 2017-12-20 15:21:49 +08:00
dns64.go Set correct TTL 2017-12-24 04:17:57 +08:00
dns64_test.go Initial commit based on @miekg's work 2017-12-20 15:16:50 +08:00
setup.go Improve RFC compatibility and cleanup 2017-12-24 03:45:11 +08:00
setup_test.go Initial commit based on @miekg's work 2017-12-20 15:16:50 +08:00

README.md

dns64

The dns64 middleware implements the DNS64 IPv6 transition mechanism. From Wikipedia:

DNS64 describes a DNS server that when asked for a domain's AAAA records, but only finds A records, synthesizes the AAAA records from the A records.

The synthesis in only performed if the query came in via IPv6.

Syntax

dns64 {
    upstream ADDRESS...
    prefix IPV6
}
  • upstream specifies the upstream resolver.
  • prefix specifies any local IPv6 prefix to use, in addition to the well known prefix (64:ff9b::/96).

Examples

dns64 {
    upstream 8.8.8.8:53
}
proxy . 8.8.8.8:53

Perform dns64 AAAA synthesizing using 8.8.8.8 for resolving any A records.

See Also

https://en.wikipedia.org/wiki/IPv6_transition_mechanism#DNS64 and RFC 6147.