The issue is: opensips uses dig -t NAPTR sip.xxxxx.com so you need do that first and get the real terminating hosts and add them to /etc/hosts then, it works
On Tue, Sep 5, 2023 at 3:43 AM Karsten Wemheuer <[email protected]> wrote: > Hi, > > Am Montag, dem 04.09.2023 um 07:56 -0400 schrieb Saint Michael: > > Using opensips 3.1, I am sending calls to a carrier whose address is > > sip.xxxxx.com. I add an entry to /etc/hosts/ that redirects > > sip.xxxxx.com to a different address, and I test with "resolvectl > > query sip.xxxxx.com" an it works as I need it. But opensips keeps > > sending calls to the DNS address, not to my new address. > > I tried restarting opensips but the issue does not go away. > > I tried restarting systemd-resolved, and nothing > > I tried opensipsctl fifo cache_flush and it does hang. > > > > So how does Opensips obtains DNS information? > > Beside the system resolver also check the settings of the systemd > resolver (/etc/systemd/resolver.conf) (if systemd is in use). There is > a setting to ignore the hosts file, if I remember correctly. > > HTH, > Karsten > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
