From 602ba32c7bf5189f4fc01870416dce8615d2da09 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Fri, 22 Apr 2022 13:09:58 -0700 Subject: [PATCH] k-v.io has an A record, a pre-requisite for a website I've chosen to add the website to GKE, not Hetzner, because I get fewer strident abuse messages from GKE. I'm dismayed that when I make a small change to the DNS, I need to go through the laborious release process for it to take effect. Sigh. Maybe that's something I'll fix another day. --- src/sslip.io-dns-server/integration_test.go | 4 ++++ src/sslip.io-dns-server/xip/xip.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/sslip.io-dns-server/integration_test.go b/src/sslip.io-dns-server/integration_test.go index 76a2d79..b8658a5 100644 --- a/src/sslip.io-dns-server/integration_test.go +++ b/src/sslip.io-dns-server/integration_test.go @@ -64,6 +64,10 @@ var _ = Describe("sslip.io-dns-server", func() { Eventually(string(digSession.Out.Contents())).Should(MatchRegexp(digResults)) Eventually(serverSession.Err).Should(Say(serverLogMessage)) }, + Entry("A (customized) for k-v.io", + "@localhost k-v.io +short", + `\A104.155.144.4\n\z`, + `TypeA k-v.io. \? 104.155.144.4\n$`), Entry("A (customized) for sslip.io", "@localhost sslip.io +short", `\A78.46.204.247\n\z`, diff --git a/src/sslip.io-dns-server/xip/xip.go b/src/sslip.io-dns-server/xip/xip.go index 9e83d3e..c969463 100644 --- a/src/sslip.io-dns-server/xip/xip.go +++ b/src/sslip.io-dns-server/xip/xip.go @@ -154,6 +154,11 @@ var ( }, nil // Sender Policy Framework }, }, + "k-v.io.": { + A: []dnsmessage.AResource{ + {A: [4]byte{104, 155, 144, 4}}, + }, + }, // a global nameserver for sslip.io, a conglomeration of ns-{aws,azure,gce}.sslip.io "ns.sslip.io.": { A: []dnsmessage.AResource{