Skip to content
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

henet 2FA Authentication #1068

Open
goose-ws opened this issue Jan 5, 2022 · 0 comments
Open

henet 2FA Authentication #1068

goose-ws opened this issue Jan 5, 2022 · 0 comments

Comments

@goose-ws
Copy link

goose-ws commented Jan 5, 2022

Hello!

I opted to enable 2FA on my HE DNS account, which has broken the ability to log in to my account to set the necessary TXT records for domain ownership verification with the DNS based certbot.

After reaching out to HE about solutions for this, they informed me that it's possible to work around this by using a TXT record which is enabled for dyndns.

In this scenario, rather than providing the username and password for authentication, one would provide the domain name and dyndns secret key. For reference, the dyndns secret key is generated by selecting the black circling arrows next to the DNS entry after enabling dyndns when setting the record up.

For example:

curl -skL "https://dyn.dns.he.net/nic/update" -d "hostname=sub.domain.tld" -d "password=dynDnsKey" -d "txt=verificationdata"

Would update an existing TXT record for sub.domain.tld with the value verificationdata. In actual practice:

[goose@Vergil: ~ ] $ dig -t txt test.goose.ws +short
"test"
[goose@Vergil: ~ ] $ curl -skL "https://dyn.dns.he.net/nic/update" -d "password=[removed]" -d "hostname=test.goose.ws" -d "txt=newtest"
good % 
[goose@Vergil: ~ ] $ dig -t txt test.goose.ws +short
"newtest"
[goose@Vergil: ~ ] $

The only catch here is that adjustments can only be made to an existing TXT record, and it has to be left in place afterwards for future verification.

Would it be possible to add this behavior to work around 2FA with HE DNS?

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

No branches or pull requests

1 participant