Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: handle subdomains for ipfs.dns #1933

Merged
merged 1 commit into from
Mar 20, 2019

Conversation

niinpatel
Copy link
Contributor

@niinpatel niinpatel commented Mar 14, 2019

resolves #1932

dns.requireTxt throws 'ENODATA' if no txt records are found, so I included a condition to check for that error and check the _dnslink.<domain> so that subdomain is resolved correctly.

Also added a few tests for checking if subdomain resolves correctly.

@niinpatel niinpatel marked this pull request as ready for review March 14, 2019 13:02
Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thank you!

@alanshaw alanshaw merged commit 29072a5 into ipfs:master Mar 20, 2019
@niinpatel niinpatel deleted the fix/dns-subdomain branch March 20, 2019 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipfs.dns does not handle subdomains correctly
2 participants