From 8c89816eeb0a6fb685b3accec229443b677d7bf7 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Sun, 17 Nov 2024 06:54:33 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20ns.sslip.io=20=E2=86=92=20+ns-he?= =?UTF-8?q?tzner,=20-ns-azure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When I had introduced ns-hetzner, I forgot to update the records for ns.sslip.io, which continued to point to the old, deprecated ns-azure. This commit updates the ns.sslip.io records. --- integration_test.go | 7 ++++--- main.go | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/integration_test.go b/integration_test.go index d8e5c76..2277d01 100644 --- a/integration_test.go +++ b/integration_test.go @@ -236,20 +236,21 @@ var _ = Describe("sslip.io-dns-server", func() { digCmd = exec.Command("dig", strings.Split(digArgs, " ")...) digSession, err = Start(digCmd, GinkgoWriter, GinkgoWriter) Expect(err).ToNot(HaveOccurred()) - Eventually(digSession).Should(Say(`52.187.42.158`)) Eventually(digSession).Should(Say(`104.155.144.4`)) + Eventually(digSession).Should(Say(`5.78.115.44`)) Eventually(digSession).Should(Say(`51.75.53.19`)) Eventually(digSession, 1).Should(Exit(0)) - Eventually(string(serverSession.Err.Contents())).Should(MatchRegexp(`TypeA ns.sslip.io. \? 52.187.42.158, 104.155.144.4, 51.75.53.19\n`)) + Eventually(string(serverSession.Err.Contents())).Should(MatchRegexp(`TypeA ns.sslip.io. \? 104.155.144.4, 5.78.115.44, 51.75.53.19\n`)) }) It("returns all the AAAA records", func() { digArgs = "@localhost aaaa ns.sslip.io +short -p " + strconv.Itoa(port) digCmd = exec.Command("dig", strings.Split(digArgs, " ")...) digSession, err = Start(digCmd, GinkgoWriter, GinkgoWriter) Expect(err).ToNot(HaveOccurred()) + Eventually(digSession).Should(Say(`2600:1900:4000:4d12::`)) Eventually(digSession).Should(Say(`2001:41d0:602:2313::1`)) Eventually(digSession, 1).Should(Exit(0)) - Eventually(string(serverSession.Err.Contents())).Should(MatchRegexp(`TypeAAAA ns.sslip.io. \? 2600:1900:4000:4d12::, 2001:41d0:602:2313::1\n`)) + Eventually(string(serverSession.Err.Contents())).Should(MatchRegexp(`TypeAAAA ns.sslip.io. \? 2600:1900:4000:4d12::, 2a01:4ff:1f0:c920::, 2001:41d0:602:2313::1\n`)) }) }) When("there are multiple MX records returned (e.g. sslip.io)", func() { diff --git a/main.go b/main.go index eaf7541..befc735 100644 --- a/main.go +++ b/main.go @@ -22,9 +22,10 @@ func main() { var addresses = flag.String("addresses", "sslip.io=78.46.204.247,"+ "sslip.io=2a01:4f8:c17:b8f::2,"+ - "ns.sslip.io=52.187.42.158,"+ "ns.sslip.io=104.155.144.4,"+ "ns.sslip.io=2600:1900:4000:4d12::,"+ + "ns.sslip.io=5.78.115.44,"+ + "ns.sslip.io=2a01:4ff:1f0:c920::,"+ "ns.sslip.io=51.75.53.19,"+ "ns.sslip.io=2001:41d0:602:2313::1,"+ "ns-aws.sslip.io=52.0.56.137,"+