if you prefer DNS method, then this may be used

/ # ip -4 addr show dev eth0
3: eth0@if13: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 9001 qdisc noqueue state UP 
    inet 172.21.0.141/32 brd 172.21.0.141 scope global eth0
       valid_lft forever preferred_lft forever
/ # nslookup 172.21.0.141
nslookup: can't resolve '(null)': Name does not resolve

Name:      172.21.0.141
Address 1: 172.21.0.141 test-st-0.test-st.ippbx.svc.cluster.local

Generally container may have multiple NIC and IP addresses.
Think need to execute until first susses result returned.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.