[OpenSIPS-Users] DNS question
Saint Michael
venefax at gmail.com
Tue Sep 5 08:21:55 UTC 2023
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 <kwem at gmx.de> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230905/1ca87e0f/attachment-0001.html>
More information about the Users
mailing list