Skip to content

Instantly share code, notes, and snippets.

@teddyking
Created February 26, 2014 07:50
Show Gist options
  • Save teddyking/9225394 to your computer and use it in GitHub Desktop.
Save teddyking/9225394 to your computer and use it in GitHub Desktop.
Troubleshooting bosh-lite 'java.net.UnknownHostException: uaa.10.244.0.34.xip.io'
# login container
root@6d5e6e7c-3f5b-4c93-8788-b776e43571bd:~# nslookup uaa.10.244.0.34.xip.io
Server: 10.0.2.2
Address: 10.0.2.2#53
** server can't find uaa.10.244.0.34.xip.io: REFUSED
# login container
root@6d5e6e7c-3f5b-4c93-8788-b776e43571bd:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=61 time=25.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=61 time=34.1 ms
# bosh-lite box
root@bosh-lite:~# nslookup uaa.10.244.0.34.xip.io
Server: 10.0.2.2
Address: 10.0.2.2#53
** server can't find uaa.10.244.0.34.xip.io: REFUSED
# bosh-lite box
root@bosh-lite:~# iptables -S -t nat | grep SNAT
-A warden-postrouting -s 10.244.0.0/19 -j SNAT --to-source 10.0.2.15
root@bosh-lite:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:63:b5:53
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment