Skip to content

syncthing contacts _stun._udp.syncthing.net which is resolved to a reserved address #10939

Open

Description

@pfactum

What happened?

Hello.

I've noticed that my installation of syncthing tries to contact udp://192.0.2.42:9999 every 5 minutes for STUN. I believe this comes from <stunServer>default</stunServer>, where _stun._udp.syncthing.net. SRV is hardcoded to be used. The issue here, IMO, is that this SRV record points to an IP-address that is reserved for documentation use only:

[~]> q SRV _stun._udp.syncthing.net @tls://9.9.9.9
_stun._udp.syncthing.net. 13m3s SRV 10 10 9999 fyc5mja4mz5s0vmz1txx.syncthing.net.

[~]> q fyc5mja4mz5s0vmz1txx.syncthing.net @tls://9.9.9.9
fyc5mja4mz5s0vmz1txx.syncthing.net. 53m47s A 192.0.2.42

[~]> whois 192.0.2.42
…
Comment:        Addresses starting with "192.0.2.", "198.51.100.", or "203.0.113." are reserved for use in documentation and sample configurations.  They     should never be used in a live network configuration.  No one has permission to use these addresses on the Internet.
Comment:
Comment:        Network operators should add these address blocks to the list of non-routable address space, and if packet filters are deployed, then these address blocks should be added to packet filters.  These blocks are not for local use, and the filters may be used in both local and public contexts.
…

IMO, syncthing should not try to contact this IP address as it will always fail.

Could you please check if my understanding is correct?

Thank you.

Syncthing version

2.1.7

Platform & operating system

Linux amd64

Browser version

No response

Relevant log output

Activity

  1. added
    bug
    on Oct 26, 2026
  2. added theissue type on Oct 26, 2026
  3. added
    needs-triage
    on Oct 26, 2026
  4. nbros652 commented on Nov 9, 2026

    @nbros652

    I found my way here after reviewing traffic logs and noticing my system also hitting 192.0.2.42.

    Checking DNS logs showed requests for SRV records for _stun._udp.syncthing.net.

    I checked this manually in a shell:

    $ dig -t SRV _stun._udp.syncthing.net +short
    10 10 9999 fyc5mja4mz5s0vmz1txx.syncthing.net.
    $ dig fyc5mja4mz5s0vmz1txx.syncthing.net +short
    192.0.2.42

    There is nothing new in this post. I'm just confirming that I see the same issue.
    v2.1.7, Linux (64-bit Intel/AMD)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions