Skip to content

Instantly share code, notes, and snippets.

@etki
Last active August 25, 2016 20:08
Show Gist options
  • Save etki/77a9fd11e8e4d51276f7dbd511cbb55e to your computer and use it in GitHub Desktop.
Save etki/77a9fd11e8e4d51276f7dbd511cbb55e to your computer and use it in GitHub Desktop.
Quick and dirty dummy DNS SRV record setup
dnsmasq:
image: andyshinn/dnsmasq:2.76
ports:
- 10053:53/tcp
- 10053:53/udp
command:
- -W
- _http._tcp.router.lipe-routing.svc.cluster.local,pod-1,80
- -W
- _http._tcp.router.lipe-routing.svc.cluster.local,pod-2,80
- -A
- /pod-1/10.0.0.1
- -A
- /pod-2/10.0.0.2
cap_add: [ NET_ADMIN ]
# retrieve pod-1 IP addresses
dig @localhost -p 10053 pod-1
# retrieve SRV record for service `http` served over `tcp` by a something FQDN'd as `router.lipe-routing.svc.cluster.local`
dig @localhost -p 10053 SRV _http._tcp.router.lipe-routing.svc.cluster.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment