Skip to content

Review swarm name for local swarm discovery #3184

@Frando

Description

@Frando

For local swarm discovery (mDNS) we currently hard-code the service name passed to swarm-discovery to iroh.local.swarm.
With the way swarm-discovery encodes things, this results in a mDNS query domain of _iroh.local.swarm._udp.local., and response records of the form f4neyiri6azvb73uyprghwk5fbpmjtwsly32x4mv2ez3scg4ft5a._iroh.local.swarm._udp.local.

IMO, the local.swarm serves no purpose and makes the DNS packets needlessly longer. The default service name could just be iroh, so that the search domain would be _iroh._udp.local.

This would be a wire breaking change so if we want to do this, it should be done together with our other wire breaking changes.

Additionally, I think we should make the service name configurable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wire-breakingchanges that would potentially break iroh's wire protocols

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions