OPNsense Forum

English Forums => General Discussion => Topic started by: baho on April 15, 2023, 07:41:47 AM

Title: Unbound DNS not responding to SRV lookups for Matrix Chat service
Post by: baho on April 15, 2023, 07:41:47 AM
Hello everyone,

I'm experiencing an issue with my Matrix Chat service, which uses DNS SRV lookups for server discovery. I'm currently using Unbound DNS as my DNS resolver, but it doesn't seem to be responding to SRV lookups by default.

I'm aware that I can manually override this behavior by adding specific DNS entries for my Matrix Chat service, but I'm hoping to find a more general solution. Ideally, Unbound DNS should be able to handle SRV lookups for any service without requiring manual configuration.

It's worth noting that Matrix is a federated service, with unpredictable hostnames that need to be looked up via DNS SRV records. You can find more information about this in the Matrix Chat server-server API documentation (https://spec.matrix.org/latest/server-server-api/#server-discovery).

I've already searched the forum and GitHub issues for similar problems, but most of the issues I found are related to Microsoft's KMS or AD solutions, or to SIP in Fritz.Box, which doesn't seem to apply to my case.

I would appreciate any advice or suggestions on how to resolve this issue. Has anyone else experienced this problem with Unbound DNS and SRV lookups? Is there a specific configuration I need to enable for Unbound DNS to handle SRV lookups correctly?

Thank you for your help!
Title: Re: Unbound DNS not responding to SRV lookups for Matrix Chat service
Post by: zincy on May 19, 2023, 09:29:02 PM
I have the same problem with Unbound on my OpenWrt router. Did you find a solution?

Edit: Never mind. Turns out I had dnsmasq (which is forwarding DNS requests to unbound) set to "Filter SRV/SOA service discovery" for some reason. Unset that and it's working now.