Introduction
A simple Node DNS Server proxy based on Peteris Rocks tutorial, which serves IPv6 records if a CDN is matched.
Running locally
Clone the repo
git clone https://gh6.mortzu.de/miyurusankalpa/IPv6-dns-server.git
Build the project
npm install
Starting the server
npm start
Changing DNS Resolvers
Change the dns_resolver
variable in the app.js file.
Disable IPv6 for a domain
Add the domain to noaaaa
array in the app.js file.
Add a custom IPv6 for a domain
Add the domain to addaaaa
object with IPv6 address in the app.js file.
Turn off aggressive mode
Change the aggressive_v6
variable to false in the app.js file. See individual services below to see what aggressive mode does.
Turn on IPv6 only mode
Change the v6_only
variable to true in the app.js file.
Testing if DNS proxy is working
Cloudflare
- Test domains: db-ip.com
- IPv6 Type: Anycast
- Usability: Stable
- Coverage: All
- Aggressive mode: All cloudflare services which uses their DNS service, regardless of cloudflare proxy has been disabled(grey cloud) will get a Cloudflare IPv6 address.
Akamai
- Test domains: www.last.fm, www.amd.com
- IPv6 Type: Unicast
- Coverage: All
- Usability: Stable
Fastly
- Test domains: imgur.com, www.twitch.tv
- IPv6 Type: Anycast, Unicast
- Coverage: All
- Usability: Stable
Amazon S3
- Test domains: s3.amazonaws.com, github-production-release-asset-2e65be.s3.amazonaws.com
- IPv6 Type: Unicast
- Coverage: *.s3.amazonaws.com hostnames/cnames only.
- Usability: Stable
Amazon Cloudfront
- Test domains: www.amazon.com, vod-secure.twitch.tv
- IPv6 Type: Unicast
- Coverage: All
- Usability: Stable
Bunnycdn
- Test domains: cdn-b-east.streamable.com
- IPv6 Type: Unicast
- Coverage: IPv6 is not available in some locations. All on Aggressive mode.
- Usability: Stable
- Aggressive mode: When IPv6 address is not available, adds AMS POP IPv6 address in aggressive mode.
Highwinds
- Test domains: code.jquery.com
- IPv6 Type: Anycast
- Coverage: All
- Usability: Stable
Microsoft Edge
- Test domains: onedrive.live.com
- IPv6 Type: Anycast
- Coverage: Only on some services
- Usability: Stable
Microsoft Windows (Edgecast)
- Test domains: software-download.microsoft.com
- IPv6 Type: Unicast
- Coverage: Only on some services
- Usability: Unknown
Github.io (Fastly)
- Test domains: twitter.github.io
- IPv6 Type: Anycast
- Coverage: Only *.github.io domains. All on Aggressive mode.
- Usability: Stable
- Aggressive mode: HTTPS breaks on custom domains
Stack Exchange sites (Fastly)
- Test domains: stackoverflow.com
- IPv6 Type: Anycast
- Coverage: All+Only on Aggressive mode.
- Usability: Logout or delete cookies
- Aggressive mode: Errors on some pages