diff options
author | Alan Pearce | 2024-06-22 18:40:10 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-22 18:40:10 +0200 |
commit | e889c9fa9a00706e45a0b2cf7d5d33c017215d61 (patch) | |
tree | 877d6830c1e945dd0d386c39a95dd50756964dcf | |
parent | 704e20303f1f7036096ae0505225da98b3b52e5e (diff) | |
download | dns-e889c9fa9a00706e45a0b2cf7d5d33c017215d61.tar.lz dns-e889c9fa9a00706e45a0b2cf7d5d33c017215d61.tar.zst dns-e889c9fa9a00706e45a0b2cf7d5d33c017215d61.zip |
switch website hosting back to fly
-rw-r--r-- | dnsconfig.js | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/dnsconfig.js b/dnsconfig.js index d2578e4..8a3d3e1 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -17,25 +17,12 @@ function https(record) { .join(' ') } -// Fast, but no IPv6 support in 2024 -var vercelIPv4A = '76.76.21.241' -var vercelIPv4B = '76.76.21.98' - -// A bit slower but at least IPv6 is supported -var netlifyIPv4A = '75.2.60.5' -var netlifyIPv4B = '99.83.231.61' -var netlifyIPv6A = '2a05:d014:275:cb01::c8' -var netlifyIPv6B = '2a05:d014:275:cb00::c8' - /** * @param {string} name */ -function vercelv4Netlifyv6(name) { +function fly(name) { return [ - A(name, vercelIPv4A), - A(name, vercelIPv4B), - AAAA(name, netlifyIPv6A), - AAAA(name, netlifyIPv6B), + ALIAS(name, 'alanpearce-eu.fly.dev.'), // neither vercel nor netlify support HTTP/3 yet HTTPS(name, 1, '.', https({ alpn: ['h2'] })), ] @@ -85,7 +72,7 @@ var acmeLetsEncrypt = [ IGNORE('_acme-challenge.**', 'TXT'), ] -var websiteHosting = [vercelv4Netlifyv6('@'), vercelv4Netlifyv6('www')] +var websiteHosting = [fly('@'), fly('www')] // Providers: |