mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-06 16:18:00 +08:00

- when DNS gets a permission error, it helpfully suggests using `sudo` - when DNS can't bind to `INADDR_ANY`, it's probably because it's Fedora running `systemd.resolved` on port 53 of 127.0.0.53, so we try to bind to each address individually. - we don't implement similar checks for the HTTP server: - if it's a permission problem, the DNS server has already warned the user. - if it's a binding problem, the user is probably running an HTTP server bound to `INADDR_ANY`, so we might as well exit. - we ported this code from main `sslip.io` DNS server.
BOSH Release
This is a BOSH Release of the Golang-based custom sslip.io DNS server. It's not meant to be used by anyone other than myself.
In the BOSH manifest, use this in the releases:
section:
- name: sslip.io
sha1: 3a59e21554da481463f292e2f11becf94e4a51aa
url: https://github.com/cunnie/sslip.io/releases/download/1.1.2/sslip.io-release-1.1.2.tgz
version: 1.1.2
And, in the instance_groups:
section:
jobs:
- name: sslip.io-dns-server
release: sslip.io
Here's a sample BOSH manifest.
After deploying, test the server. Let's assume the deployed VM's IP is 10.0.250.23:
dig +short 127.0.0.1.sslip.io @10.0.250.23
127.0.0.1