-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature Request: Ignore certain manually set records #158
Comments
Thanks for opening an issue! Before we proceed, I would like to know what exactly happened to the CNAME records. Could you please provide me with an example additionalRecord? What do you mean with "continuously updated for no apparent reason"? Many thanks, |
I created the following additionalRecords in
These records are provided by ProtonMail in the domain setup process. Once added the container logs showed the records were being continuously updated. Example logs below:
As you can see, the records seem to be updated every few seconds. Between the updates, nothing was changed, so the record wouldn't need updating from what I can see. The records are created correctly on CloudFlare. I do have another additionalRecord which works fine. So maybe the issue is related to the
The
Let me know if you need additional details. |
Thanks! Could you please try the following additionalRecord configuration: additionalRecords:
# ProtonMail example.com
- name: protonmail._domainkey.example.com
type: CNAME
content: protonmail.domainkey.<random string>.domains.proton.ch.
ttl: 120
- name: protonmail2._domainkey.example.com
type: CNAME
content: protonmail2.domainkey.<random string>.domains.proton.ch.
ttl: 120
- name: protonmail3._domainkey.example.com
type: CNAME
content: protonmail3.domainkey.<random string>.domains.proton.ch.
ttl: 120 I have added the |
Thanks for the quick reply! I tried your exact configuration, however this didn't seem to fix the issue:
The first 3 messages show the records being created, the next few are the mentioned updates (no configuration changes occurred, the is always the same as well). I then commented out the records in CloudFlare screenshot of the created records: |
Hmm... this must be some kind of a weird bug. I'm digging into it! |
I found the issue! It looks like either SyncFlaer or the Cloudflare API don't like the trailing Could you please try it again with the following config: additionalRecords:
# ProtonMail example.com
- name: protonmail._domainkey.example.com
type: CNAME
content: protonmail.domainkey.<random string>.domains.proton.ch # here I removed the dot
- name: protonmail2._domainkey.example.com
type: CNAME
content: protonmail2.domainkey.<random string>.domains.proton.ch # here I removed the dot
- name: protonmail3._domainkey.example.com
type: CNAME
content: protonmail3.domainkey.<random string>.domains.proton.ch # here I removed the dot Also make sure you use the latest version of SyncFlaer. |
Thank you! This fixed the issue. As for the original feature request; do you think you could add an exclude feature of some kind? |
I'm glad I was able to help! BTW: I just pushed v5.5.2, which should ignore any trailing dots. Do you have a specific use-case for an exclude feature? In general, SyncFlaer is designed to be the single source of truth for your A and CNAME DNS records (AAAA coming soon). If you would like to exclude certain domains, you can either use the |
If I understand correctly My use case would have been having certain records set manually in the Cloudflare web interface. For example ProtonMail requires TXT, MX and CNAME records. Of those I can only set the CNAME records using SyncFlaer. As SyncFlaer is designed to be the single source of truth, maybe having the ability to set TXT and MX records as well would be interesting? |
Yes, Our goal is to add support for all DNS record types in the near future. I will keep you posted! |
I would like to request a feature to exclude certain (manually created) DNS records from being managed (deleted) by SyncFlaer.
Use Case
I am using a domain for services proxied by traefik. SyncFlaerautomatically manages those records and the root record.
I have now started using the same domain for ProtonMail. ProtonMail requires certain CNAME records to be set on the domain.
Proposed Solution
I could set these records using SyncFlaer but I would prefer to be able to specify that SyncFlaer ignores certain records (ideally following a regex pattern). That way I could tell SyncFlaer to ignore (and therefor not delete) all records containing
protonmail
.In the config this could be similar to additionalRecords.
I have also tried just setting the required CNAME records using SyncFlaer additionalRecords, however for some reason those records are continuously updated for no apparent reason.
The text was updated successfully, but these errors were encountered: