Hi all,
I am wondering if it is possible for the dispatcher module to monitor multiple endpoints that resolve from a single hostname using DNS. Can I configure a single DNS name in the dispatcher table which resolves to 3 IP addresses and have them monitored by OPTIONS pings, and then select the first one that is marked as active to route requests to? I haven't found much help online to know if this is possible/supported.
i.e. Does the dispatcher module support monitoring of multiple results returned from DNS NAPTR records?
Thanks, Tom
Hello Thomas,
You can configure the dispatcher module to skip DNS resolution at startup. Have a look to this docs section:
"16 (bit at index 4 - 1 <<4) - skip DNS A/AAAA resolve at startup, useful when the hostname of the destination address is a NAPTR or SRV record only. Such addresses cannot be matched anymore with ds_is_from_list(...)."
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Thomas Cavill Sent: Tuesday, March 3, 2020 5:04 PM To: sr-users@lists.kamailio.org Subject: [SR-Users] Using DNS hostname with the Dispatcher module to determine online routes
Hi all,
I am wondering if it is possible for the dispatcher module to monitor multiple endpoints that resolve from a single hostname using DNS. Can I configure a single DNS name in the dispatcher table which resolves to 3 IP addresses and have them monitored by OPTIONS pings, and then select the first one that is marked as active to route requests to? I haven't found much help online to know if this is possible/supported.
i.e. Does the dispatcher module support monitoring of multiple results returned from DNS NAPTR records?
Thanks, Tom