cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

Allow deletion of DNS routes via cloudflared command line tool💡

Open ftclausen opened this issue 2 years ago • 8 comments

Describe the feature you'd like There is already a feature in 32336859f82 to delete CIDR routes but not DNS routes. While the API can be used it would be more convenient to have this in cloudflared.

Describe alternatives you've considered The API should allow this to happen but it'll be easier to do this in the cloudflared cli tool. This issue requested the same but was closed. The comment here misinterpreted the changelog; that changelog entry was not for DNS routes but, rather, network (CIDR netblocks) routes.

Additional context This is useful for automated pipelines creating and deleting tunnels as part of CI/CD in service of developer testing.

ftclausen avatar Oct 14 '22 09:10 ftclausen

I'll let @abelinkinbio track this.

sudarshan-reddy avatar Oct 19 '22 09:10 sudarshan-reddy

This feature request makes sense. We'll look into it and keep you posted on any progress we make.

abelinkinbio avatar Oct 19 '22 19:10 abelinkinbio

Any news on this? This would be great to have, these DNS entries are really cluttering up our dns zone and it's not great to have to add another authentication mechanism and api interaction model into the pipeline just for removing the records.

luqasn avatar Apr 03 '23 07:04 luqasn

Any news on this?

neilborromeo avatar May 31 '23 03:05 neilborromeo

I'm looking for this feature too.

shadowjig avatar Jun 27 '23 11:06 shadowjig

Is this hard to implement?

smashah avatar Feb 19 '24 06:02 smashah

There is an overwrite option available, which could be helpful.

cloudflared tunnel route dns --overwrite-dns <UUID or NAME> <hostname>

for example:

cloudflared tunnel route dns --overwrite-dns 2f089xdf-5x7b-4563-80xf-9b786xec2248 app.example.com

remotemerge avatar Apr 23 '24 06:04 remotemerge

Any updates to this?

dattito avatar Jun 23 '24 05:06 dattito