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
When trying to add a CNAME record to domain foo.com, pointing to server.bar.com using lexicon powerdns provider, the CNAME record gets added with content server.bar.com.foo.com, even when the content variable contains the trailing dot.
def _fqdn_name(self, record_name: str) -> str:
# strip trailing period from fqdn if present
record_name = record_name.rstrip(".")
# check if the record_name is fully specified
if not record_name.endswith(self.domain):
record_name = f"{record_name}.{self.domain}"
return f"{record_name}." # return the fqdn name
The text was updated successfully, but these errors were encountered:
When trying to add a CNAME record to domain
foo.com
, pointing toserver.bar.com
using lexicon powerdns provider, the CNAME record gets added with contentserver.bar.com.foo.com
, even when the content variable contains the trailing dot.I believe the culprit is
lexicon/lexicon/providers/powerdns.py
Line 154 in 65b09e9
lexicon/lexicon/providers/base.py
Line 202 in 65b09e9
The text was updated successfully, but these errors were encountered: