[sr-dev] [kamailio/kamailio] hostname in kubernetes (#2119)

sergey-safarov notifications at github.com
Thu Nov 7 04:53:15 CET 2019


if you prefer DNS method, then this may be used
```sh
/ # ip -4 addr show dev eth0
3: eth0 at 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 or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2119#issuecomment-550670177
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191106/7e8e57bb/attachment.html>


More information about the sr-dev mailing list