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

DDNS provider is not responding to error conditions correctly #1840

Open
alexhorner opened this issue Dec 20, 2023 · 0 comments
Open

DDNS provider is not responding to error conditions correctly #1840

alexhorner opened this issue Dec 20, 2023 · 0 comments

Comments

@alexhorner
Copy link

Whilst investigating an issue with acme.sh which I have configured to use lexicon as the provider, I have found that lexicon is not correctly handling errors from DDNS updates.

According to RFC2136, an RCode of 9 means NOTAUTH - The server is not authoritative for the zone named in the Zone Section.

Attempting to update a zone which does not exist on the target server returns this NOTAUTH RCode and results in no change being made on the server, however lexicon still reports:

RESULT
------
True

I do not know if lexicon is failing to handle other RCodes in the RFC, I have not tested this.

This can be tested with the following setup:

  • DNS server has a zone for domain.com
  • The following command is used to try and update the zone _acme-challenge.domain.com with the name _acme-challenge.domain.com and the value abcdefg which will fail silently with RCode 9:
    lexicon ddns create _acme-challenge.domain.com TXT --ddns-server 1.2.3.4 --auth-token my_token --name _acme-challenge.domain.com --content abcdefg
    
  • The following command is used to try and update the zone domain.com with the name _acme-challenge.domain.com and the value abcdefg which will succeed:
    lexicon ddns create domain.com TXT --ddns-server 1.2.3.4 --auth-token my_token --name _acme-challenge.domain.com --content abcdefg
    
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