<div dir="ltr">Greetings.<div><br><div style>I have kamailio 3.3.3 setup on server behind the nat. Nat forwards ports for tls/tcp/udp.</div><div style><br></div><div style>This setup worked without rls ok.</div><div style>
I added necessary modules - rls, pua, xcap etc. </div><div style>Updated a config file and db.</div><div style><br></div><div style>Client application uploads xcap documents ok; after app sends subscribe request to list address.</div>
<div style>Rls/pua modules generate subscriptions to entries in list.<br></div><div style><br></div><div style>But dns resolver finds the public ip as target for subscription.</div><div style>The result is: sip packets cannot reach the server - they are sent to public ip of nat machine. I see it in ngrep output. Nat does not route them back.</div>
<div style><br></div><div style>I add the domain name and _sip._udp.domain with internal ip address to /etc/hosts.<br></div><div style>But kamailio does not use /etc/hosts when dns caching is active.</div><div style><br></div>
<div style>I do not want to loose dns caching.</div><div style>I made an attempt to run without caching but server was not stable. It crashed couple of times - so i stopped these attempts.</div><div style><br></div><div style>
Is there way to put eternal domain -&gt; ip bindings  into dns cache?<br></div><div style>I want to put bingings to internal ip - hope it will help.</div><div style><br></div><div style>Maybe there is another way to handle this problem?</div>
<div style><br></div><div style><br></div><div style><br></div><div style><br></div><div style><br></div><div style> </div><div style><br></div></div></div>