[OpenSIPS-Users] DNS question

Karsten Wemheuer kwem at gmx.de
Tue Sep 5 07:38:01 UTC 2023


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




More information about the Users mailing list