get-zones/preview not seeing all Cloudflare records #4138
-
|
I'm trying to migrate a test zone to dnscontrol with DNS hosted at Clouflare. The API token appears properly configured (more on that below). However, get-zones is not showing all records from Cloudflare DNS. I tried exporting from CF into a BIND-style file and converted that to DJS. dnscontrol preview is trying to create the "missing" records. Things I've tried:
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
I have an update. I think I was running into issue #3850 - but didn't realize that was expected behavior and was concerned if I didn't have those records in my JS, dnscontrol might delete them. Commenting them out fixed the preview - however, there is one CF SPF TXT record that wasn't marked readonly so I had to keep that in my JS. I figured this out by noting the readonly:true in the cloudflare api debug and looking at the code. I didn't notice anything about this on the Cloudflare page in the dnscontrol documentation. Could this be an enhancement for documentation? Regarding --debug, I still can't get that to do anything useful. |
Beta Was this translation helpful? Give feedback.
-
|
@welbow Reguarding the --debug flag: First, the --debug flag (and all global flag must be before the subcommand. That is, As far as Our flag parser will always pick The solution is to use |
Beta Was this translation helpful? Give feedback.
-
|
The other point I'd like to make about the
My suggestion is to manually update dnsconfig.js until "dnscontrol preview" runs clean.
I'd be interested in knowing which records you end up having to add manually. (and, yes, this should be better documented. Would you be interested in proposing a draft?). Tom CC @cafferata |
Beta Was this translation helpful? Give feedback.
-
|
Yes, the Thanks for the doc suggestion! Please take a look at #4146 and critque! |
Beta Was this translation helpful? Give feedback.
Yes, the
--debugfeature is inaccessible right now. Try an older version or wait until the next release. Sadly I can't figure out a workaround with the current release. (On the bright side (??)... the --debug flag does very little to help in this situation.)Thanks for the doc suggestion! Please take a look at #4146 and critque!