You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot use Lexicon with a domain that is pending (not active) in Cloudflare. It's useful to to be able to manipulate DNS records for pending domains before changing nameservers to minimize disruption.
Context
Add a domain (e.g., example.com) in Cloudflare.
Do not change the nameservers for example.com to point to Cloudflare so that it remains with a pending status.
Add an API token in Cloudflare with Zone.DNS Edit and Zone.Zone Read permissions.
Example
$ lexicon --version
lexicon 3.12.0
$ lexicon cloudflare --auth-token abc...XYZ list example.com A
Traceback (most recent call last):
File "/home/user/.local/bin/lexicon", line 8, in<module>sys.exit(main())
File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/cli.py", line 132, in main
results = client.execute()
File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/client.py", line 81, in execute
self.provider.authenticate()
File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/providers/base.py", line 73, in authenticate
self._authenticate()
File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/providers/cloudflare.py", line 51, in _authenticate
raise AuthenticationError("No domain found")
lexicon.exceptions.AuthenticationError: No domain found
The text was updated successfully, but these errors were encountered:
I cannot use Lexicon with a domain that is
pending
(notactive
) in Cloudflare. It's useful to to be able to manipulate DNS records forpending
domains before changing nameservers to minimize disruption.Context
example.com
) in Cloudflare.example.com
to point to Cloudflare so that it remains with apending
status.Example
The text was updated successfully, but these errors were encountered: