<div dir="auto"><div>Hi George, </div><div dir="auto"> </div><div dir="auto"><br></div><div dir="auto">you could set the used dns server in Kamailio to only one and setup an dnsmasq for example that is number one in /etc/resolve.conf. </div><div dir="auto"><br></div><div dir="auto">dnsmasq can handle /etc/hosts as source or you combine your dns domain with upstream dnserver (so dnsmasq ask for domain foo your server baa). </div><div dir="auto"><br>If you turn on dns request logging in dnsmasq you see what your server is doing / asking for. </div><div dir="auto"><br></div><div dir="auto">Just as an tricky hack. I needed that for one carrier that used split brain dns in public. </div><div dir="auto"><br></div><div dir="auto">Cheers </div><div dir="auto">Karsten </div><div dir="auto"><br></div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">George Diamantopoulos <<a href="mailto:georgediam@gmail.com">georgediam@gmail.com</a>> schrieb am Di., 19. Mai 2020, 16:43:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello all,</div><div><br></div><div>I've come across this today when trying to setup DMQ replication:</div><div style="margin-left:40px"><br></div><div style="margin-left:40px"><span style="font-family:monospace">root@sbcpub0-stage-lhe0-cn1:/root# systemctl restart kamailio<br>root@sbcpub0-stage-lhe0-cn1:/root# kamcmd dmq.list_nodes<br>{<br>        host: 172.30.154.189<br>        port: 5090<br>        resolved_ip: 172.30.154.189<br>        status: active<br>        last_notification: 0<br>        local: 1<br>}<br>root@sbcpub0-stage-lhe0-cn1:/root# getent hosts <a href="http://dmq-ng.services.domain.com" target="_blank" rel="noreferrer">dmq-ng.services.domain.com</a><br>172.30.154.189  <a href="http://dmq-ng.services.domain.com" target="_blank" rel="noreferrer">dmq-ng.services.domain.com</a><br>172.17.130.13   <a href="http://dmq-ng.services.domain.com" target="_blank" rel="noreferrer">dmq-ng.services.domain.com</a><br><br>root@sbcpub0-stage-lhe0-cn1:/root# grep dmq-ng /etc/kamailio/*<br>/etc/kamailio/kamailio-module-params.cfg:modparam("dmq", "notification_address", "sip:<a href="http://dmq-ng.services.domain.com:5090" target="_blank" rel="noreferrer">dmq-ng.services.domain.com:5090</a>")</span></div><div><br></div><div>In another case, where the resolving IPs for the DMQ service hostname were listed as A records in DNS, this worked as expected.</div><div></div><div>In this case, the second host of the DMQ group is not listed in dmq.list_nodes, despite its being set in /etc/hosts, as shown by the getent command.</div><div><br></div><div>Doesn't kamailio use nss for hostname resolution? Am I missing something else? Thanks!</div><div><br></div><div>BR,</div><div>George<br></div><div><br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div></div>