Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS lookup failed: no results for hostname lookup #16997

Closed
ne20002 opened this issue Mar 16, 2024 · 2 comments
Closed

DNS lookup failed: no results for hostname lookup #16997

ne20002 opened this issue Mar 16, 2024 · 2 comments

Comments

@ne20002
Copy link

ne20002 commented Mar 16, 2024

I'm not sure if this is a bug or not.

I'm trying to set up my own ntfy server in the local network and Synapse complains about not being able to lookup the hostname even though it is working using curl in the container.

This is the log line:
2024-03-16 12:58:54,612 - synapse.push.httppusher - 416 - WARNING - httppush.process-4 - Failed to push data to @stefan:****.ch/im.vector.app.android/https://ntfy.****.ch:8180/up3jGv5F9EzBJe?up=1: <class 'twisted.internet.error.DNSLookupError'> DNS lookup failed: no results for hostname lookup: ntfy.****.ch.

The ip to look up is the local ntfy server in my internal network. It is also added to the /etc/hosts in the container.

Setup:

  • using latest Synape (102) with official docker image
  • havin my own ntfy server in my internal network with a certificate from my own CA
  • copied my CA certificate to the synapse container
  • my own CA certificate works as prooven by curl

So why is this not working?

@clokep
Copy link
Contributor

clokep commented Mar 16, 2024

Synapse by default won't connect to private IPs, you need to update your configuration to allow it. See https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#ip_range_whitelist

@ne20002
Copy link
Author

ne20002 commented Mar 16, 2024

Thank you. That fixed it.

I now ran into the next problem. :(

@ne20002 ne20002 closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants