Skip to content

dns: only allow one DNS announcement#4996

Merged
m-schmoock merged 1 commit into
ElementsProject:masterfrom
m-schmoock:dns/only_allow_one_dns
Jan 2, 2022
Merged

dns: only allow one DNS announcement#4996
m-schmoock merged 1 commit into
ElementsProject:masterfrom
m-schmoock:dns/only_allow_one_dns

Conversation

@m-schmoock
Copy link
Copy Markdown
Collaborator

@m-schmoock m-schmoock commented Jan 1, 2022

Since upcoming lightning/bolts#911 will likely contain - MUST NOT announce more than one "type 5" DNS hostname. we need to add this.

Changelog-None

@m-schmoock m-schmoock requested a review from cdecker as a code owner January 1, 2022 21:15
@cdecker
Copy link
Copy Markdown
Member

cdecker commented Jan 2, 2022

ACK 6df2e9c

@m-schmoock m-schmoock merged commit 019b31c into ElementsProject:master Jan 2, 2022
@m-schmoock
Copy link
Copy Markdown
Collaborator Author

@cdecker
Regardless of the RFC that does not restrict the number of announced IP and TOR addresses, should we (re)add such a restriction that limits it down to i.e. 3 IP addresses and 3 TOR address?

@TheBlueMatt and others mentioning that the network should really limit on gossip content, but currently nobody enforces anything so the limits were removed from the spec. So as a first step we can add a rule that at least our implementation can't be used to spam gossip by commandline.

@m-schmoock
Copy link
Copy Markdown
Collaborator Author

m-schmoock commented Jan 2, 2022

Also, currenlty RFC #911 does forsee to ignore and drop node_updates that contain more than one DNS name.

@m-schmoock m-schmoock deleted the dns/only_allow_one_dns branch January 3, 2022 13:05
@m-schmoock
Copy link
Copy Markdown
Collaborator Author

Update: Rust-Lightning seems picking up on this :D
lightningdevkit/rust-lightning#1329

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

Successfully merging this pull request may close these issues.

2 participants