element-hq / element-hq/synapse

Synapse does AAAA lookups even when IPv6 is disabled

Open
#14,299 0 comments 0 reactions 0 assignees View on GitHub
O-Uncommon S-Tolerable T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#14299](https://github.com/matrix-org/synapse/issues/14299).

---

### Description

I run Synapse on a host with IPv6 disabled globally by adding option `ipv6.disable=1` to the kernel command line, but Synapse still does AAAA lookups for federation destinations. This unnecessarily doubles DNS traffic and possibly increases latency by wasting time looking up addresses that can't be reached.

### Steps to reproduce

- disable IPv6 globally
- start Synapse with all listeners bound to address `0.0.0.0`
- Synapse looks up AAAA records

### Homeserver

self hosted

### Synapse Version

1.69.0

### Installation Method

pip (from PyPI)

### Platform

Linux 5.15.53-1-lts, Python 3.10.5

### Relevant log output

I don't see any Synapse logs related to DNS lookups even with debug logging enabled

### Anything else that would be useful to know?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.