Hi,

On Wed, Nov 02, 2022 at 07:13:27AM -0700, Esra Hatice Yılmaz wrote:
Is there any specific configuration for DNS on prosody?

There is some configuration possibilities for the new libunbound based
DNS backend, but not for the older net.dns / adns.

I have been calling  a webservice from prosody. I defined the
webservice URL as abc.com. According to prosody logs abc.com is never
cached and always been trying to resolve from DNS every time.

This happens because a DNS resolver instance is created for each
connection attempt. This is meant to prevent DNS cache poisoning.

Prosody will usually be talking to a caching resolver, so the need for a
local cache inside Prosody itself is limited. Especially since with XMPP
server-to-server connections, the main use of DNS in Prosody, these tend
to be long-lived and any cached records would likely not be used again.

I would recommend that you install lua-unbound and ensure you're on
Prosody 0.12+. With lua-unbound, Prosody uses single long-lived
libunbound resolver instance with its own cache.

--
Kim "Zash" Alvefur

--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prosody-dev/Y2UkuLaD4t9K/Clt%40diploria.zash.se.

Reply via email to