Last active
August 25, 2016 20:08
-
-
Save etki/77a9fd11e8e4d51276f7dbd511cbb55e to your computer and use it in GitHub Desktop.
Quick and dirty dummy DNS SRV record setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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