Skip to content

Commit

Permalink
3.2.1: Return NS records in random order
Browse files Browse the repository at this point in the history
  • Loading branch information
cunnie committed Sep 17, 2024
1 parent 1b5f4d6 commit adb0d5a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/make_all
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/..
ldflags="-X xip/xip.VersionSemantic=3.2.0 \
ldflags="-X xip/xip.VersionSemantic=3.2.1 \
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
-X xip/xip.VersionGitHash=$(git rev-parse --short HEAD)"
export GOOS GOARCH
Expand Down
9 changes: 5 additions & 4 deletions docs/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ These instructions are meant primarily for me when deploying a new release;
they might not make sense unless you're on my workstation.

```bash
export OLD_VERSION=3.1.0
export VERSION=3.2.0
export OLD_VERSION=3.2.0
export VERSION=3.2.1
cd ~/workspace/sslip.io
git pull -r --autostash
# update the version number for the TXT record for version.status.sslip.io
Expand All @@ -18,7 +18,7 @@ sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" \
k8s/Dockerfile-sslip.io-dns-server
```

Optional: Update the version for the ns-aws, ns-azure install scripts
Optional: Update the version for the ns-aws, ns-azure, ns-gce, ns-ovh install scripts

```bash
pushd ~/bin
Expand All @@ -42,10 +42,11 @@ Test from another window:

```bash
export DNS_SERVER_IP=127.0.0.1
export VERSION=3.2.0
export VERSION=3.2.1
# quick sanity test
dig +short 127.0.0.1.example.com @$DNS_SERVER_IP
echo 127.0.0.1
# NS ordering might be rotated
dig +short ns example.com @$DNS_SERVER_IP
printf "ns-aws.sslip.io.\nns-azure.sslip.io.\nns-gce.sslip.io.\nns-ovh.sslip.io.\n"
dig +short mx example.com @$DNS_SERVER_IP
Expand Down
2 changes: 1 addition & 1 deletion k8s/Dockerfile-sslip.io-dns-server
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LABEL org.opencontainers.image.authors="Brian Cunnie <brian.cunnie@gmail.com>"
RUN dnf install -y bind-utils

ARG TARGETARCH # amd64, arm64 (so I can run on AWS graviton2)
RUN curl -f -L https://github.com/cunnie/sslip.io/releases/download/3.2.0/sslip.io-dns-server-linux-$TARGETARCH \
RUN curl -f -L https://github.com/cunnie/sslip.io/releases/download/3.2.1/sslip.io-dns-server-linux-$TARGETARCH \
-o /usr/sbin/sslip.io-dns-server; \
chmod 755 /usr/sbin/sslip.io-dns-server

Expand Down
2 changes: 1 addition & 1 deletion k8s/document_root_sslip.io/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h3 id="server">But I Want My Own DNS Server!</h3>
our server within a docker container:</p>
<pre>
docker run -it --rm fedora
curl -L https://github.com/cunnie/sslip.io/releases/download/3.2.0/sslip.io-dns-server-linux-amd64 -o dns-server
curl -L https://github.com/cunnie/sslip.io/releases/download/3.2.1/sslip.io-dns-server-linux-amd64 -o dns-server
chmod +x dns-server
./dns-server 2&gt; dns-server.log &
dnf install -y bind-utils
Expand Down
2 changes: 1 addition & 1 deletion spec/check-dns_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_whois_nameservers(domain)
end

domain = ENV['DOMAIN'] || 'example.com'
sslip_version = '3.2.0'
sslip_version = '3.2.1'
whois_nameservers = get_whois_nameservers(domain)

describe domain do
Expand Down

0 comments on commit adb0d5a

Please sign in to comment.