cloudflare / cloudflare/cloudflare-rs

Querying for a specific type of DNS record is broken

Open
#145 3 comments 6 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
316
Forks
111
PR merge metrics
No merged PRs in 30d

Description

You currently can't list DNS records of a specific type only, because the `ListDnsRecordsParams` takes a `DnsContent` enum as the parameter for filtering the type, but DnsContent not only contains the record type, but also the record content, which is why reqwest fails to build a query string from it. For the application I'm using this in, I've implemented the filtering locally *after* fetching the records like [this](https://git.jcg.re/jcgruenhage/cloudflare-ddns-service/src/branch/main/src/network.rs#L87-L93), but I'd be happy about a proper solution for this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.