Repository navigation
Conversation
poettering
left a comment
There was a problem hiding this comment.
I'd really prefer if we'd synthesize JSON from the cache instead, and return that to clients. It would be processable then, and shouldn't be too difficult to synthesize. i.e. add dns_resource_key_to_json() and dns_resource_key_from_json() or so, and similar for dns_resource_record(). Pass the RR RDATA stuff as base64 blob.
| x = *a; | ||
| y = *b; | ||
| x_str = dns_resource_key_to_string(x->rr ? x->rr->key : x->key); | ||
| y_str = dns_resource_key_to_string(y->rr ? y->rr->key : y->key); |
There was a problem hiding this comment.
dns_resource_key_compare_func() + dns_resource_record_compare_func() already exist
|
Since @yuwata gave thumbsup for the json idea, let's mark this as "needs rework". |
|
This reminds me of #19451 a bit, i.e. generate server-side json, pass to client via dbus, and then just prettify and output it there. |
… all of resolved's RR caches This adds a simple varlink call io.systemd.Resolve.Monitor.DumpCache to the existing io.systemd.Resolve.Monitor service. It compiles a JSON object containing the per-scope cache entries and returns it. Replaces: systemd#20053 systemd#19104 Fixes: systemd#14796
|
I implemented this based on the varlink monitoring interface now, which makes this quite nice and relatively minimal I think. See #28012. Let's continue there. |
… all of resolved's RR caches This adds a simple varlink call io.systemd.Resolve.Monitor.DumpCache to the existing io.systemd.Resolve.Monitor service. It compiles a JSON object containing the per-scope cache entries and returns it. Replaces: systemd#20053 systemd#19104 Fixes: systemd#14796
No description provided.