From 5398c543e73e96ec3b2b8ee5eb50e9a95cacd2c7 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Wed, 2 Feb 2022 12:36:14 -0800 Subject: [PATCH] =?UTF-8?q?Bump=20SOA=20=E2=86=92=202022020200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mostly because I love the idea of an SOA that's only twos and zeros. This makes me happy. --- .../sslip.io-dns-server/integration_test.go | 22 +++++++++---------- .../src/sslip.io-dns-server/xip/xip.go | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bosh-release/src/sslip.io-dns-server/integration_test.go b/bosh-release/src/sslip.io-dns-server/integration_test.go index 7ac5544..5cc0012 100644 --- a/bosh-release/src/sslip.io-dns-server/integration_test.go +++ b/bosh-release/src/sslip.io-dns-server/integration_test.go @@ -62,7 +62,7 @@ var _ = Describe("sslip.io-dns-server", func() { Entry("A (or lack thereof) for example.com", "@localhost example.com +short", `\A\z`, - `TypeA example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `TypeA example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry("A for www-127-0-0-1.sslip.io", "@localhost www-127-0-0-1.sslip.io +short", `\A127.0.0.1\n\z`, @@ -78,7 +78,7 @@ var _ = Describe("sslip.io-dns-server", func() { Entry("AAAA not found for example.com", "@localhost example.com aaaa +short", `\A\z`, - `TypeAAAA example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `TypeAAAA example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry("AAAA for www-2601-646-100-69f0-1c09-bae7-aa42-146c.sslip.io", "@localhost www-2601-646-100-69f0-1c09-bae7-aa42-146c.sslip.io aaaa +short", `\A2601:646:100:69f0:1c09:bae7:aa42:146c\n\z`, @@ -95,23 +95,23 @@ var _ = Describe("sslip.io-dns-server", func() { Entry("CNAME not found for example.com", "@localhost example.com cname +short", `\A\z`, - `TypeCNAME example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `TypeCNAME example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry("MX for example.com", "@localhost example.com mx +short", `\A0 example.com.\n\z`, `TypeMX example.com. \? 0 example.com.\n$`), Entry("SOA for sslip.io", "@localhost sslip.io soa +short", - `\Asslip.io. briancunnie.gmail.com. 2022012200 900 900 1800 180\n\z`, - `TypeSOA sslip.io. \? sslip.io. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `\Asslip.io. briancunnie.gmail.com. 2022020200 900 900 1800 180\n\z`, + `TypeSOA sslip.io. \? sslip.io. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry("SOA for example.com", "@localhost example.com soa +short", - `\Aexample.com. briancunnie.gmail.com. 2022012200 900 900 1800 180\n\z`, - `TypeSOA example.com. \? example.com. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `\Aexample.com. briancunnie.gmail.com. 2022020200 900 900 1800 180\n\z`, + `TypeSOA example.com. \? example.com. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry("SRV (or other record that we don't implement) for example.com", "@localhost example.com srv +short", `\A\z`, - `TypeSRV example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `TypeSRV example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry(`TXT for version.status.sslip.io is the version number of the xip software (which gets overwritten during linking)`, "@127.0.0.1 version.status.sslip.io txt +short", `\A"0.0.0"\n"0001/01/01-99:99:99-0800"\n"cafexxx"\n\z`, @@ -123,11 +123,11 @@ var _ = Describe("sslip.io-dns-server", func() { Entry(`TXT is the querier's IPv4 address and the domain is NOT "ip.sslip.io"`, "@127.0.0.1 example.com txt +short", `\A\z`, - `TypeTXT example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `TypeTXT example.com. \? nil, SOA example.com. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry(`getting a non-existent value: TXT for my-key.k-v.io"`, "@127.0.0.1 my-key.k-v.io txt +short", `\A\z`, - `TypeTXT my-key.k-v.io. \? nil, SOA my-key.k-v.io. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `TypeTXT my-key.k-v.io. \? nil, SOA my-key.k-v.io. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), Entry(`putting a value: TXT for put.MyValue.MY-KEY.k-v.io"`, "@127.0.0.1 put.MyValue.MY-KEY.k-v.io txt +short", `"MyValue"`, @@ -143,7 +143,7 @@ var _ = Describe("sslip.io-dns-server", func() { Entry(`getting a non-existent value: TXT for my-key.k-v.io"`, "@127.0.0.1 my-key.k-v.io txt +short", `\A\z`, - `TypeTXT my-key.k-v.io. \? nil, SOA my-key.k-v.io. briancunnie.gmail.com. 2022012200 900 900 1800 180\n$`), + `TypeTXT my-key.k-v.io. \? nil, SOA my-key.k-v.io. briancunnie.gmail.com. 2022020200 900 900 1800 180\n$`), ) }) Describe("for more complex assertions", func() { diff --git a/bosh-release/src/sslip.io-dns-server/xip/xip.go b/bosh-release/src/sslip.io-dns-server/xip/xip.go index a81b714..abdcc2c 100644 --- a/bosh-release/src/sslip.io-dns-server/xip/xip.go +++ b/bosh-release/src/sslip.io-dns-server/xip/xip.go @@ -707,7 +707,7 @@ func SOAResource(name dnsmessage.Name) dnsmessage.SOAResource { return dnsmessage.SOAResource{ NS: name, MBox: mbox, - Serial: 2022012200, + Serial: 2022020200, // cribbed the Refresh/Retry/Expire from google.com. // MinTTL was 300, but I dropped to 180 for faster // key-value propagation