<p>if you prefer DNS method, then this may be used</p>
<div class="highlight highlight-source-shell"><pre>/ <span class="pl-c"><span class="pl-c">#</span> ip -4 addr show dev eth0</span>
3: eth0@if13: <span class="pl-k"><</span>BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN<span class="pl-k">></span> 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
/ <span class="pl-c"><span class="pl-c">#</span> nslookup 172.21.0.141</span>
nslookup: can<span class="pl-s"><span class="pl-pds">'</span>t resolve <span class="pl-pds">'</span></span>(null)<span class="pl-s"><span class="pl-pds">'</span>: Name does not resolve</span>
<span class="pl-s"></span>
<span class="pl-s">Name:      172.21.0.141</span>
<span class="pl-s">Address 1: 172.21.0.141 test-st-0.test-st.ippbx.svc.cluster.local</span></pre></div>
<p>Generally container may have multiple NIC and IP addresses.<br>
Think need to execute until first susses result returned.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2119?email_source=notifications&email_token=ABO7UZN4U3X7EDXPEVJ4AB3QSOGKXA5CNFSM4JHLXPF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDJI6YI#issuecomment-550670177">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOPS6ZL4YSNAB3E6ATQSOGKXANCNFSM4JHLXPFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZK2TEBDJCD66OG6HUDQSOGKXA5CNFSM4JHLXPF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDJI6YI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2119?email_source=notifications\u0026email_token=ABO7UZN4U3X7EDXPEVJ4AB3QSOGKXA5CNFSM4JHLXPF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDJI6YI#issuecomment-550670177",
"url": "https://github.com/kamailio/kamailio/issues/2119?email_source=notifications\u0026email_token=ABO7UZN4U3X7EDXPEVJ4AB3QSOGKXA5CNFSM4JHLXPF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDJI6YI#issuecomment-550670177",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>