Records Table
Assumptions
- You have my-http-server deployed with an alias setup from the previous story
Recorded values from previous stories
BOSH_DNS_IP=<value>
NON_BOSH_DNS_IP=<value>
HTTP_SERVER_ALIAS=<value>
What
So how does Bosh DNS work? How does it figure out what IP to send traffic to?
How
📝 Find your alias in the Bosh DNS records table
- Bosh ssh onto any VM in your CF deployment.
- Look at the Bosh DNS records table. (You might need to install jq)
cat /var/vcap/instance/dns/records.json | jq .
- Find the data about HTTP_SERVER_ALIAS.
❓ Questions
- What data is present?
- If you delete this file does Bosh DNS still work on this machine?
- What is updating this file? (hint: read the Bosh DNS Docs)