Files
nip/bin/make_all
Brian Cunnie e5450f579a ns-ovh-sg → ns-do-sg; +ns-gce
We replace `ns-ovh-sg` with `ns-do-sg`; this is a purely financial
decision: `ns-ovh-sg` costs $60/month, $720/year.

`ns-do-sg` (Digital Ocean), is also a Singapore-based DNS server. It's a
basic-regular-2vcpu-4GiB RAM-80GB SSD-4TiB bandwidth for $24/month,
$288/year.

That's a yearly savings of $432.

I had originally overspec'ed the Singapore server because I suspected
that there was a ton of traffic in Asia; I was wrong. It's not even 20%
the traffic of Europe or North America. I am confident the Digital Ocean
server will be able to handle it.

I also reintroduce `ns-gce` as the second server in North America, backing
up `ns-hetzner`. My hope is that `ns-hetzner` carries most of the load,
and `ns-gce` carries the rest, but not so much as to trigger Google
Cloud Platform's (GCP's) expensive bandwidth billing.

| DNS server | Queries / second |
|:-----------|-----------------:|
| ns-hetzner |          10706.4 |
| ns-ovh     |          10802.0 |
| ns-ovh-sg  |           1677.7 |
2025-05-20 20:56:47 -04:00

24 lines
671 B
Bash
Executable File

#!/bin/bash -x
#
# Build binaries for macOS, Windows, Linux, FreeBSD
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/..
ldflags="-X xip/xip.VersionSemantic=3.2.8 \
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
-X xip/xip.VersionGitHash=$(git rev-parse --short HEAD)"
export GOOS GOARCH
# Bring in ARM64 for my AWS Graviton2 instance
for GOARCH in amd64 arm64; do
for GOOS in darwin linux freebsd; do
go build \
-ldflags="$ldflags" \
-o $DIR/sslip.io-dns-server-$GOOS-$GOARCH \
main.go &
done
GOOS=windows
go build -o $DIR/sslip.io-dns-server-$GOOS-$GOARCH.exe main.go &
done
wait