Real names for private IPs. Nothing to run. Any resolver works.
105 public DNS names for private IPs, so lab machines get real names without a DNS server. Add our reverse zones and the addresses resolve back to those names.
- 1
Pick a port
Every lit port below is a public DNS name.
- 2
Assign its IP
Put that address on a machine, VM, or container.
- 3
Use the name
Any resolver answers. Nothing to install.
Reverse zones you load yourself
Public DNS doesn't carry PTR records for private addresses, so dig -x 10.0.110.6 finds nothing out of the box. Load these on your own resolver, and logs, traceroute, SSH, and monitoring all show names. Forward lookups stay public, so every PTR matches its A record.
- BIND 9.20
- NSD 4.14
- Unbound 1.24
- dnsmasq 2.92
A cluster with names already assigned
10.0.100.0/24 is laid out for up to 5 UCP and 5 DTR nodes, with ucp and dtr reserved as load balancer addresses. The 20 workers are generic, so use them for Swarm, Kubernetes, Nomad, or anything else.
# names are sequential, so Ansible ranges work [managers] ucp-node[1:3].demo-gods.net [registry] dtr-node[1:3].demo-gods.net [workers] worker.demo-gods.net worker[2:6].demo-gods.net
Gotchas
-
Your resolver returns nothing
Rebinding protection drops public names that answer with private IPs. If
dig @1.1.1.1works and plaindigdoesn't, allow the domain:rebind-domain-ok=/demo-gods.net/in dnsmasq or Pi-hole,private-domain: "demo-gods.net"in Unbound. -
One address, one PTR
Where names share an IP, the zone answers with one.
gitlabandnodeappshare 172.28.128.31, so the PTR saysgitlab.loveyis an alias, so 10.0.110.5 answersmrs-howel. -
The subnet is already in use
If your LAN or VPN already routes one of these /24s, the addresses will collide with it. Pick a block you don't route, or isolate the lab.
-
Public TLS certificates won't issue
An HTTP-01 check can't reach a private IP, and DNS-01 needs control of this zone. Use an internal CA such as
step-caormkcert.