-
Notifications
You must be signed in to change notification settings - Fork 37.7k
p2p: Use absolute FQDN for DNS seed domains #23268
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
Conversation
@practicalswift did all the research and helped me with testing. There was weird behavior with Fedora which is explained in #23193 (comment) I just created this PR and added dots in the domains used by DNS seeds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
You might consider rewriting this by appending the final period in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 04ef501
Concept ACK on fixing this issue @prayank23, you'll have to address all instances of I see three different approaches to fixing this:
|
Concept ACK. No strong opinion on where to add the dots. But I think there's something to be said in keeping the domain lookup functionality generic and adding the dots at the source in chainparams (in case people want to specify non-FQDN domains in the configuration for their own local use), as it is now. |
|
@prayank23 Still not complete I'm afraid: the signet DNS seed node is not changed :) This is the command I used locally to check the changes:
When doing the touch up you may drop me as co-author: I'm just an enthusiastic reviewer, and to not introduce confusion I think "co-author" tagging should be reserved to situations where the actual commit is written by multiple parties (such as when editing a cherry-picked commit from another author) :) |
@prayank23 Looks good now. Please squash into one commit and I'll do the final review :) |
@practicalswift I did something wrong with squashing. Will fix it. Signet domain wasn't there because PR branch wasn't synced with master when I created pull request. I had added you as co-author because its a small change and was suggested by you. Will remove it if you aren't okay with it. |
cr ACK ca2c313 Reviewed by comparing diff with |
code review ACK ca2c313 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK ca2c313.
ca2c313 Use absolute FQDN for DNS seed domains (Prayank) Pull request description: Fixes bitcoin#23193 by using absolute FQDN for domains used by DNS seeds. It improves security and should not break anything based on my research and testing. Few things about absolute FQDN are shared in https://superuser.com/questions/1467958/why-does-putting-a-dot-after-the-url-remove-login-information Master branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 127.0.0.1 ``` PR branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 159.89.108.149 ``` Reviewers can follow the steps mentioned in Issue to test: bitcoin#23193 (comment) ACKs for top commit: practicalswift: cr ACK ca2c313 laanwj: code review ACK ca2c313 promag: Code review ACK ca2c313. Tree-SHA512: 9818227332282a78c45b4470c2fc80bf899ed78aed76644ebf014e0fff1b139402ea023acdea162363a478b6f6613dbf1da57e214d2240ea0f04310473f57cca
ca2c313 Use absolute FQDN for DNS seed domains (Prayank) Pull request description: Fixes bitcoin#23193 by using absolute FQDN for domains used by DNS seeds. It improves security and should not break anything based on my research and testing. Few things about absolute FQDN are shared in https://superuser.com/questions/1467958/why-does-putting-a-dot-after-the-url-remove-login-information Master branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 127.0.0.1 ``` PR branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 159.89.108.149 ``` Reviewers can follow the steps mentioned in Issue to test: bitcoin#23193 (comment) ACKs for top commit: practicalswift: cr ACK ca2c313 laanwj: code review ACK ca2c313 promag: Code review ACK ca2c313. Tree-SHA512: 9818227332282a78c45b4470c2fc80bf899ed78aed76644ebf014e0fff1b139402ea023acdea162363a478b6f6613dbf1da57e214d2240ea0f04310473f57cca
ca2c313 Use absolute FQDN for DNS seed domains (Prayank) Pull request description: Fixes bitcoin#23193 by using absolute FQDN for domains used by DNS seeds. It improves security and should not break anything based on my research and testing. Few things about absolute FQDN are shared in https://superuser.com/questions/1467958/why-does-putting-a-dot-after-the-url-remove-login-information Master branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 127.0.0.1 ``` PR branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 159.89.108.149 ``` Reviewers can follow the steps mentioned in Issue to test: bitcoin#23193 (comment) ACKs for top commit: practicalswift: cr ACK ca2c313 laanwj: code review ACK ca2c313 promag: Code review ACK ca2c313. Tree-SHA512: 9818227332282a78c45b4470c2fc80bf899ed78aed76644ebf014e0fff1b139402ea023acdea162363a478b6f6613dbf1da57e214d2240ea0f04310473f57cca
ca2c313 Use absolute FQDN for DNS seed domains (Prayank) Pull request description: Fixes bitcoin#23193 by using absolute FQDN for domains used by DNS seeds. It improves security and should not break anything based on my research and testing. Few things about absolute FQDN are shared in https://superuser.com/questions/1467958/why-does-putting-a-dot-after-the-url-remove-login-information Master branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 127.0.0.1 ``` PR branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 159.89.108.149 ``` Reviewers can follow the steps mentioned in Issue to test: bitcoin#23193 (comment) ACKs for top commit: practicalswift: cr ACK ca2c313 laanwj: code review ACK ca2c313 promag: Code review ACK ca2c313. Tree-SHA512: 9818227332282a78c45b4470c2fc80bf899ed78aed76644ebf014e0fff1b139402ea023acdea162363a478b6f6613dbf1da57e214d2240ea0f04310473f57cca
ca2c313 Use absolute FQDN for DNS seed domains (Prayank) Pull request description: Fixes bitcoin#23193 by using absolute FQDN for domains used by DNS seeds. It improves security and should not break anything based on my research and testing. Few things about absolute FQDN are shared in https://superuser.com/questions/1467958/why-does-putting-a-dot-after-the-url-remove-login-information Master branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 127.0.0.1 ``` PR branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 159.89.108.149 ``` Reviewers can follow the steps mentioned in Issue to test: bitcoin#23193 (comment) ACKs for top commit: practicalswift: cr ACK ca2c313 laanwj: code review ACK ca2c313 promag: Code review ACK ca2c313. Tree-SHA512: 9818227332282a78c45b4470c2fc80bf899ed78aed76644ebf014e0fff1b139402ea023acdea162363a478b6f6613dbf1da57e214d2240ea0f04310473f57cca
ca2c313 Use absolute FQDN for DNS seed domains (Prayank) Pull request description: Fixes bitcoin#23193 by using absolute FQDN for domains used by DNS seeds. It improves security and should not break anything based on my research and testing. Few things about absolute FQDN are shared in https://superuser.com/questions/1467958/why-does-putting-a-dot-after-the-url-remove-login-information Master branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 127.0.0.1 ``` PR branch: ``` DNS seed x9.dnsseed.bitcoin.dashjr.org. responded with IP 159.89.108.149 ``` Reviewers can follow the steps mentioned in Issue to test: bitcoin#23193 (comment) ACKs for top commit: practicalswift: cr ACK ca2c313 laanwj: code review ACK ca2c313 promag: Code review ACK ca2c313. Tree-SHA512: 9818227332282a78c45b4470c2fc80bf899ed78aed76644ebf014e0fff1b139402ea023acdea162363a478b6f6613dbf1da57e214d2240ea0f04310473f57cca
…itcoin#23268, bitcoin#23287, bitcoin#23314, bitcoin#23320, bitcoin#23323, bitcoin#23341 ea107ac Merge bitcoin#23320: rpc: Add RPC help for getblock verbosity level 3 (W. J. van der Laan) 6df2fae Merge bitcoin#23341: RPC: Better safety with newkeypool command and wallet backups (Andrew Chow) 910f4c0 Merge bitcoin#23093: Add ability to flush keypool and always flush when upgrading non-HD to HD (W. J. van der Laan) cf6e969 Merge bitcoin#22539: Re-include RBF replacement txs in fee estimation (W. J. van der Laan) 5c226da Merge bitcoin#23323: doc: Add note on deleting past-EOL release branches (MarcoFalke) bf28e85 Merge bitcoin#23287: test: get and decode tx with a single `gettransaction` RPC call (MarcoFalke) 6f46f58 Merge bitcoin#22918: rpc: Add level 3 verbosity to getblock RPC call (bitcoin#21245 modified) (W. J. van der Laan) 4e8f6af Merge bitcoin#23268: p2p: Use absolute FQDN for DNS seed domains (fanquake) 135d650 Merge bitcoin#23314: build: explicitly disable libsecp256k1 openssl based tests (W. J. van der Laan) Pull request description: ## What was done? Just regular backports from Bitcoin Core v23. ## How Has This Been Tested? Run unit / functional tests ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: UdjinM6: utACK ea107ac Tree-SHA512: df36fc867d533366c7f46903e018048fc9f64ef01960e1d2338195f00203fe6a9c5ac9bd13120b949015846d10cf4969853990b6c6023fbf6f4c19e716747889
Fixes #23193 by using absolute FQDN for domains used by DNS seeds.
It improves security and should not break anything based on my research and testing. Few things about absolute FQDN are shared in https://superuser.com/questions/1467958/why-does-putting-a-dot-after-the-url-remove-login-information
Master branch:
PR branch:
Reviewers can follow the steps mentioned in Issue to test: #23193 (comment)