`flarectl dns update`'s flag `--id` - what to put in it?

Greetings, cloud-dwellers.

I’m moving a server with many domains, and adding them has been very easy thanks to flarectl - I have automatically added DNS for my sites with flarectl dns zone create --jumpstart and all that literally worked right first time, very slick there!

Soon I will need to change their DNS entries, but I haven’t figured out how to use flarectl dns update to do this.

I want to update this DNS record to point to another IP address

extremeny.com.	1	IN	A	162.209.6.164

I tried this:

flarectl dns update --zone extremeny.com --type A --name extremeny.com --content 23.239.10.50

but that gives me a clear error error: the required flag "id" was empty or not provided. I then added --id 1 to the end to get

flarectl dns update --zone extremeny.com --type A --name extremeny.com --content 23.239.10.50 --id 1

but now I get the cryptic error:

Error updating DNS record:  

and nothing else.

I get that same error for any numeric --id I used. If I try --id IN so the full command line is

flarectl dns update --zone extremeny.com --type A --name extremeny.com --content 23.239.10.50 --id IN

I get an error:

Error updating DNS record:  PATCH method not allowed for the api_token authentication scheme (10000)

I don’t think it’s an authentication issue, as I already created zone records with this token/key pair, but I just checked the long list of permissions for the token and added any that seemed even vaguely relevant, with no change.

Crickets.

Also, --jumpstart doesn’t work, and caused me considerable issues because I hadn’t realized that.

My enthusiasm for this tool has dimmed considerably.

When creating DNS records, you need: flarectl dns create. The ID it is asking for is the ID of an existing DNS record that you would be updating.

I successfully created DNS records that way, as I wrote in my comment:

I have automatically added DNS for my sites with flarectl dns zone create --jumpstart

Now I want to update that DNS record I successfully created - as I wrote:

I want to update this DNS record to point to another IP address

Sorry, you need to run flarectl dns list to list your records, then the ID of the records will be there. Get the ID of the record that you want, and then you can update it.

Aha! Thanks, that’s much clearer.

I have 41 domains, each with ~8 records, so that means I will need to somehow extract all those 328 keys, but not the MX keys, etc. I guess I’ll write a Python program to do that.

I was sort of hoping for a more automated solution (“for these 41 records, replace this IP with this other one”), but this is better than editing 41 records by hand.

Thanks again!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.