<p>Based on the docs Global Settings, <b>dns</b> and <b>rev_dns</b> control whether the sip server should lookup its own IP and Domain name. In testing for RFC1918, it is also looking up the dns and rev_dns for the client's public IP. If rev_dns=no then the client can register.</p>

<p>Some Troubleshooting Data:</p>

<p>Sometimes server is timing out/failing on setting rev_dns=yes. Function does not return or continue on to any other NAT tests.<br>
<code><br>
 IN core:ClientNatTest:test_source_address:received_test:check_ip_address.</code></p>

<p>INFO:core:check_ip_address: N1 rfc1918=10.34.37.108<br>
 INFO:core:check_ip_address: N2 public=xxx.xxx.xxx.xxx<br>
 INFO:core:check_ip_address: dns lookup<br>
 INFO:core:check_ip_address: rev. dns lookup<br>
</p>

<p>when rev_dns = no<br>
<code><br>
 IN core:ClientNatTest:test_source_address:received_test:check_ip_address.</code></p>

<p>INFO:core:check_ip_address: N1 rfc1918=10.34.37.108<br>
 INFO:core:check_ip_address: N2 public=xxx.xxx.xxx.xxx<br>
 INFO:core:check_ip_address: dns lookup<br>
 INFO:core:check_ip_address: lastly<br>
 INFO:nat_traversal:test_source_address: NAT different_ip=-1 via1_port=13923 different_port=1<br>
 INFO:nat_traversal:ClientNatTest: NAT success= flag 2<br>
</p>

<p>Should client_nat_test() check for the clients dns and rev_dns?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/401#issuecomment-72397119">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQdghjToatJQnsbJ0QW1Q6idNZW3ks5nns-XgaJpZM4DOPEM.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/401#issuecomment-72397119"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>