Skip to content

resolve: add support to read mDNS cache - #20053

Closed
aditiambadkar wants to merge 2 commits into
systemd:mainfrom
aditiambadkar:aditi/resolved_mdns_cache_support
Closed

aditiambadkar wants to merge 2 commits into
systemd:mainfrom
aditiambadkar:aditi/resolved_mdns_cache_support

Conversation

@aditiambadkar

@aditiambadkar aditiambadkar commented Jun 28, 2021 •

Copy link
Copy Markdown

Add support to read mDNS cache

  • Add support to read mDNS cache via D-Bus method "ShowCaches"
  • Add support to read mDNS cache via command-line tool "resolvectl show-caches"
  • Emit D-Bus signals ItemNew, ItemRemove, CacheExhausted, and AllForNow based on events

Comment thread units/systemd-resolved.service.in Resolved
@aditiambadkar
aditiambadkar force-pushed the aditi/resolved_mdns_cache_support branch from 2b5c698 to 8b0578d Compare June 28, 2021 11:10
@bluca

This comment has been minimized.

@yuwata

yuwata commented Jun 29, 2021

Copy link
Copy Markdown
Member

Maybe conflict with #19104?

@aditiambadkar

This comment has been minimized.

@bluca

This comment has been minimized.

@aditiambadkar

This comment has been minimized.

@bluca

This comment has been minimized.

@aditiambadkar

This comment has been minimized.

@bluca

This comment has been minimized.

@aditiambadkar

This comment has been minimized.

@bluca

This comment has been minimized.

@aditiambadkar

This comment has been minimized.

@bluca

This comment has been minimized.

@aditiambadkar
aditiambadkar force-pushed the aditi/resolved_mdns_cache_support branch from 8b0578d to 225696f Compare June 29, 2021 12:05
@bluca

bluca commented Jun 29, 2021

Copy link
Copy Markdown
Member

Maybe conflict with #19104?

Yeah, there's overlap

@yuwata

yuwata commented Jun 29, 2021

Copy link
Copy Markdown
Member

Maybe conflict with #19104?

Yeah, there's overlap

Thanks. So, @aditiambadkar I do not want to block your work, but please see the suggestion in #19104 by @poettering about to use json format.

@aditiambadkar

Copy link
Copy Markdown
Author

@bluca - 3 of my checks have failed:

  1. CentOS CI (Arch Linux) — build failed
  2. ci/semaphoreci/pr: Debian autopkgtest (LXC) — The build failed on Semaphore 2.0.
  3. mkosi / ci (debian) (pull_request) Failing after 11m — ci (debian)

Do you know the reason and can you provide any suggestions?

@aditiambadkar aditiambadkar changed the title Aditi/resolved mdns cache support resolve: add support to read mDNS cache Jun 30, 2021
@bluca

bluca commented Jun 30, 2021

Copy link
Copy Markdown
Member

The network tests failed, it looks like it might be related:

======================================================================
ERROR: test_resolved_domain_restricted_dns (__main__.DnsmasqClientTest)
resolved: domain-restricted DNS servers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc._32nfdkz/downtmp/build.ENM/src/test/networkd-test.py", line 684, in test_resolved_domain_restricted_dns
    out = subprocess.check_output(['resolvectl', 'query', 'megasearch.net'])
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['resolvectl', 'query', 'megasearch.net']' returned non-zero exit status 1.

======================================================================
ERROR: test_resolved_etc_hosts (__main__.DnsmasqClientTest)
resolved queries to /etc/hosts
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc._32nfdkz/downtmp/build.ENM/src/test/networkd-test.py", line 750, in test_resolved_etc_hosts
    out = subprocess.check_output(['resolvectl', 'query', '--type=MX', 'example.com'])
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['resolvectl', 'query', '--type=MX', 'example.com']' returned non-zero exit status 1.

Full log at: https://the-real-systemd.semaphoreci.com/jobs/de1d9f4a-676e-4e59-b23c-b8a40313e45a/plain_logs.txt

@bluca

bluca commented Jun 30, 2021

Copy link
Copy Markdown
Member

In the other CI resolved crashes, again looks like it could be related:

14:33:47 (gdb) 
14:33:47 Thread 1 (Thread 0x7fe09af85a40 (LWP 2123)):
14:33:47 #0  0x00005636aeaac21c in dns_transaction_prepare (t=t@entry=0x5636b042ca10, ts=<optimized out>) at ../build/src/resolve/resolved-dns-transaction.c:1707
14:33:47 #1  0x00005636aeaacc46 in dns_transaction_go (t=0x5636b042ca10) at ../build/src/resolve/resolved-dns-transaction.c:1930
14:33:47 #2  0x00005636aea97d05 in dns_query_candidate_go (c=c@entry=0x5636affa0e60) at ../build/src/resolve/resolved-dns-query.c:183
14:33:47 #3  0x00005636aea9812f in dns_query_go (q=0x5636b042c7c0) at ../build/src/resolve/resolved-dns-query.c:811
14:33:47 #4  0x00005636aeac8c07 in vl_method_resolve_hostname (link=0x5636aff024b0, parameters=0x5636aff9c250, flags=<optimized out>, userdata=<optimized out>) at ../build/src/resolve/resolved-varlink.c:339
14:33:47 #5  0x00007fe09b23637c in varlink_dispatch_method (v=v@entry=0x5636aff024b0) at ../build/src/shared/varlink.c:872
14:33:47 #6  0x00007fe09b23676b in varlink_process (v=0x5636aff024b0) at ../build/src/shared/varlink.c:947
14:33:47 #7  0x00007fe09b2373d5 in defer_callback (s=<optimized out>, userdata=<optimized out>) at ../build/src/shared/varlink.c:1862
14:33:47 #8  0x00007fe09b323428 in source_dispatch (s=s@entry=0x5636aff32350) at ../build/src/libsystemd/sd-event/sd-event.c:3526
14:33:47 #9  0x00007fe09b32386b in sd_event_dispatch (e=e@entry=0x5636aff3fbb0) at ../build/src/libsystemd/sd-event/sd-event.c:4066
14:33:47 #10 0x00007fe09b323ac0 in sd_event_run (e=e@entry=0x5636aff3fbb0, timeout=timeout@entry=18446744073709551615) at ../build/src/libsystemd/sd-event/sd-event.c:4127
14:33:47 #11 0x00007fe09b323b26 in sd_event_loop (e=0x5636aff3fbb0) at ../build/src/libsystemd/sd-event/sd-event.c:4148
14:33:47 #12 0x00005636aeac9f71 in run (argc=<optimized out>, argv=0x7ffcc85766d8) at ../build/src/resolve/resolved.c:92
14:33:47 #13 0x00005636aeaca2c1 in main (argc=<optimized out>, argv=<optimized out>) at ../build/src/resolve/resolved.c:99
14:33:47 (gdb) #0  0x00005636aeaac21c in dns_transaction_prepare (t=t@entry=0x5636b042ca10, 
14:33:47     ts=<optimized out>)
14:33:47     at ../build/src/resolve/resolved-dns-transaction.c:1707
14:33:47         r = <optimized out>
14:33:47         __PRETTY_FUNCTION__ = "dns_transaction_prepare"
14:33:47 #1  0x00005636aeaacc46 in dns_transaction_go (t=0x5636b042ca10)
14:33:47     at ../build/src/resolve/resolved-dns-transaction.c:1930
14:33:47         ts = 34935788
14:33:47         r = <optimized out>
14:33:47         key_str = "\023\000\000\000\000\000\000\000!\000\000\000\000\000\000\000P\001\000\000\000\000\000\000\004\000\000\000\000\000\000\000\023\000\000\000\064", '\000' <repeats 27 times>, "|\000\000\000w\000\000\000n\000\000\000[\000\000\000\320aW\310\374\177\000\000\000+\350\257\066V\000\000\264\313B\260\066V\000\000\060\313B\260\066V\000\000\260aW\310\374\177\000\000\270L'\233\340\177\000\000\060\313B\260\066V\000\000I\316%\233\340\177\000\000\370\373\363\257\066V\000\000\001\000\000\000\000\000\000\000\060\325\350\257\066V\000\000\000\000\000\000\000\000\000\000\360aW\310\374\177\000\000\337\316%\233\340\177\000\000\220\320\003\000\000\000\000\000"...
14:33:47         __PRETTY_FUNCTION__ = "dns_transaction_go"
14:33:47         __func__ = "dns_transaction_go"
14:33:47 #2  0x00005636aea97d05 in dns_query_candidate_go (c=c@entry=0x5636affa0e60)
14:33:47     at ../build/src/resolve/resolved-dns-query.c:183
14:33:47         __unique_prefix_i6 = {idx = 3, next_key = 0x5636b042c8f0}
14:33:47         keep_c = 0x5636affa0e60
14:33:47         t = 0x5636b042ca10
14:33:47         r = <optimized out>
14:33:47         n = 0
14:33:47         __PRETTY_FUNCTION__ = "dns_query_candidate_go"
14:33:47 #3  0x00005636aea9812f in dns_query_go (q=0x5636b042c7c0)
14:33:47     at ../build/src/resolve/resolved-dns-query.c:811
14:33:47         found = DNS_SCOPE_MAYBE
14:33:47         s = <optimized out>
14:33:47         first = 0x5636aff07dc0
14:33:47         c = 0x5636affa0e60
14:33:47         r = 0
14:33:47         __PRETTY_FUNCTION__ = "dns_query_go"
14:33:47         __func__ = "dns_query_go"
14:33:47 #4  0x00005636aeac8c07 in vl_method_resolve_hostname (link=0x5636aff024b0, 
14:33:47     parameters=0x5636aff9c250, flags=<optimized out>, 
14:33:47     userdata=<optimized out>) at ../build/src/resolve/resolved-varlink.c:339
14:33:47         dispatch_table = {{name = 0x5636aeaee23c "ifindex", 
14:33:47             type = JSON_VARIANT_UNSIGNED, 
14:33:47             callback = 0x7fe09b1e980f <json_dispatch_int32>, offset = 0, 
14:33:47             flags = 0}, {name = 0x5636aeaf0581 "name", 
14:33:47             type = JSON_VARIANT_STRING, 
14:33:47             callback = 0x7fe09b1e99db <json_dispatch_string>, offset = 48, 
14:33:47             flags = JSON_MANDATORY}, {name = 0x5636aeae227d "family", 
14:33:47             type = JSON_VARIANT_UNSIGNED, 
14:33:47             callback = 0x7fe09b1e980f <json_dispatch_int32>, offset = 16, 
14:33:47             flags = 0}, {name = 0x5636aeadf261 "flags", 
14:33:47             type = JSON_VARIANT_UNSIGNED, 
14:33:47             callback = 0x7fe09b1e952f <json_dispatch_uintmax>, offset = 8, 
14:33:47             flags = 0}, {name = 0x0, type = JSON_VARIANT_STRING, 
14:33:47             callback = 0x0, offset = 0, flags = 0}}
14:33:47         question_idna = 0x0
14:33:47         question_utf8 = 0x5636affa0610
14:33:47         p = {ifindex = 0, flags = 31, family = 0, address = {in = {
14:33:47               s_addr = 0}, in6 = {__in6_u = {
14:33:47                 __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 
14:33:47                   0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
14:33:47             bytes = '\000' <repeats 15 times>}, address_size = 0, 
14:33:47           name = 0x5636b040fe90 "www.heise.de"}
14:33:47         q = 0x5636b042c7c0
14:33:47         m = 0x5636afe8c9c0
14:33:47         r = <optimized out>
14:33:47         __PRETTY_FUNCTION__ = "vl_method_resolve_hostname"
14:33:47 #5  0x00007fe09b23637c in varlink_dispatch_method (v=v@entry=0x5636aff024b0)
14:33:47     at ../build/src/shared/varlink.c:872
14:33:47         parameters = 0x5636aff9c250
14:33:47         flags = 0
14:33:47         method = 0x5636b02b82b0 "io.systemd.Resolve.ResolveHostname"
14:33:47         error = 0x7fe09b3520d0 "org.varlink.service.MethodNotFound"
14:33:47         e = <optimized out>
14:33:47         callback = <optimized out>
14:33:47         k = <optimized out>
14:33:47         r = 0
14:33:47         __PRETTY_FUNCTION__ = "varlink_dispatch_method"
14:33:47         invalid = <optimized out>
14:33:47         __func__ = "varlink_dispatch_method"
14:33:47         _x = <optimized out>
14:33:47         _x = <optimized out>
14:33:47 #6  0x00007fe09b23676b in varlink_process (v=0x5636aff024b0)
14:33:47     at ../build/src/shared/varlink.c:947
14:33:47         r = 0
14:33:47         __PRETTY_FUNCTION__ = "varlink_process"
14:33:47         __func__ = "varlink_process"
14:33:47 #7  0x00007fe09b2373d5 in defer_callback (s=<optimized out>, 
14:33:47     userdata=<optimized out>) at ../build/src/shared/varlink.c:1862
14:33:47         v = <optimized out>
14:33:47         __PRETTY_FUNCTION__ = "defer_callback"
14:33:47 #8  0x00007fe09b323428 in source_dispatch (s=s@entry=0x5636aff32350)
14:33:47     at ../build/src/libsystemd/sd-event/sd-event.c:3526
14:33:47         saved_event = 0x5636aff3fbb0
14:33:47         saved_type = SOURCE_DEFER
14:33:47         r = 0
14:33:47         __PRETTY_FUNCTION__ = "source_dispatch"
14:33:47         __func__ = "source_dispatch"
14:33:47 #9  0x00007fe09b32386b in sd_event_dispatch (e=e@entry=0x5636aff3fbb0)
14:33:47     at ../build/src/libsystemd/sd-event/sd-event.c:4066
14:33:47         ref = 0x5636aff3fbb0
14:33:47         p = 0x5636aff32350
14:33:47         r = <optimized out>
14:33:47         __PRETTY_FUNCTION__ = "sd_event_dispatch"
14:33:47 #10 0x00007fe09b323ac0 in sd_event_run (e=e@entry=0x5636aff3fbb0, 
14:33:47     timeout=timeout@entry=18446744073709551615)
14:33:47     at ../build/src/libsystemd/sd-event/sd-event.c:4127
14:33:47         r = 1
14:33:47         __PRETTY_FUNCTION__ = "sd_event_run"
14:33:47         ref = 0x5636aff3fbb0
14:33:47 #11 0x00007fe09b323b26 in sd_event_loop (e=0x5636aff3fbb0)
14:33:47     at ../build/src/libsystemd/sd-event/sd-event.c:4148
14:33:47         r = <optimized out>
14:33:47         __PRETTY_FUNCTION__ = "sd_event_loop"
14:33:47         ref = <optimized out>
14:33:47 #12 0x00005636aeac9f71 in run (argc=<optimized out>, argv=0x7ffcc85766d8)
14:33:47     at ../build/src/resolve/resolved.c:92
14:33:47         m = 0x5636afe8c9c0
14:33:47         notify_stop = 0x5636aeaee598 "STOPPING=1\nSTATUS=Shutting down..."
14:33:47         r = 0
14:33:47         __PRETTY_FUNCTION__ = "run"
14:33:47         __func__ = "run"
14:33:47 #13 0x00005636aeaca2c1 in main (argc=<optimized out>, argv=<optimized out>)
14:33:47     at ../build/src/resolve/resolved.c:99
14:33:47         r = <optimized out>

@bluca bluca added the ci-fails/needs-rework 🔥 Please rework this, the CI noticed an issue with the PR label Jun 30, 2021
@aditiambadkar
aditiambadkar force-pushed the aditi/resolved_mdns_cache_support branch 2 times, most recently from 00d694e to 617e26b Compare July 6, 2021 10:40
@aditiambadkar

Copy link
Copy Markdown
Author

The network tests failed, it looks like it might be related:

======================================================================
ERROR: test_resolved_domain_restricted_dns (__main__.DnsmasqClientTest)
resolved: domain-restricted DNS servers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc._32nfdkz/downtmp/build.ENM/src/test/networkd-test.py", line 684, in test_resolved_domain_restricted_dns
    out = subprocess.check_output(['resolvectl', 'query', 'megasearch.net'])
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['resolvectl', 'query', 'megasearch.net']' returned non-zero exit status 1.

======================================================================
ERROR: test_resolved_etc_hosts (__main__.DnsmasqClientTest)
resolved queries to /etc/hosts
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc._32nfdkz/downtmp/build.ENM/src/test/networkd-test.py", line 750, in test_resolved_etc_hosts
    out = subprocess.check_output(['resolvectl', 'query', '--type=MX', 'example.com'])
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['resolvectl', 'query', '--type=MX', 'example.com']' returned non-zero exit status 1.

Full log at: https://the-real-systemd.semaphoreci.com/jobs/de1d9f4a-676e-4e59-b23c-b8a40313e45a/plain_logs.txt

@bluca :
I have tried to execute the commands "resolvectl query megasearch.net" and "resolvectl query --type=MX example.com" on my Raspberry Pi 4 which has the changes that I have added. I am not getting any failures and it is working perfectly alright. Why are these 2 commands failing in the checks?
Here is the screenshot
MicrosoftTeams-image (6)

Comment thread src/resolve/resolved-dns-scope.c Resolved
@aditiambadkar
aditiambadkar force-pushed the aditi/resolved_mdns_cache_support branch 2 times, most recently from cdfbcc4 to 4c1a7d6 Compare July 13, 2021 06:16
@mrc0mmand

mrc0mmand commented Jul 14, 2021 •

Copy link
Copy Markdown
Member

@mrc0mmand - Thank you for the logs which you provided. Based on that, I have put checks for scope->link. Now the ci/semaphoreci/pr: Debian autopkgtest (LXC) has passed. However, the CentOS CI (Arch Linux) and bionic-amd64 are still failing. Can you please point out the exact issue?

Sure thing!

# systemctl service-log-level systemd-resolved debug
# resolvectl query megasearch.net
megasearch.net: resolve call failed: Message recipient disconnected from message bus without replying
journal
-- Journal begins at Wed 2021-07-14 08:59:22 UTC, ends at Wed 2021-07-14 09:17:00 UTC. --
Jul 14 09:16:57 systemd-resolved[15370]: Got message type=method_call sender=:1.125 destination=org.freedesktop.resolve1 path=/org/freedesktop/LogControl1 interface=org.freedesktop.DBus.Properties member=Set cookie=3 reply_cookie=0 signature=ssv error-name=n/a error-message=n/a
Jul 14 09:16:57 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=GetConnectionUnixUser cookie=8 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Jul 14 09:16:57 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.122 path=n/a interface=n/a member=n/a cookie=8 reply_cookie=8 signature=u error-name=n/a error-message=n/a
Jul 14 09:16:57 systemd-resolved[15370]: Setting log level to debug.
Jul 14 09:16:57 systemd-resolved[15370]: Sent message type=method_return sender=n/a destination=:1.125 path=n/a interface=n/a member=n/a cookie=9 reply_cookie=3 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_call sender=:1.126 destination=org.freedesktop.resolve1 path=/org/freedesktop/resolve1 interface=org.freedesktop.resolve1.Manager member=ResolveHostname cookie=2 reply_cookie=0 signature=isit error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: idn2_lookup_u8: megasearch.net → megasearch.net
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=GetConnectionUnixProcessID cookie=10 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.122 path=n/a interface=n/a member=n/a cookie=9 reply_cookie=10 signature=u error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: D-Bus hostname resolution request from client PID 15387 (n/a) with UID 4294967295
Jul 14 09:17:00 systemd-resolved[15370]: Looking up RR for megasearch.net IN A.
Jul 14 09:17:00 systemd-resolved[15370]: Looking up RR for megasearch.net IN AAAA.
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=11 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=GetNameOwner cookie=12 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.122 path=n/a interface=n/a member=n/a cookie=11 reply_cookie=12 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Switching to DNS server 192.168.121.1 for interface eth0.
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.127 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN A
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 59701 for <megasearch.net IN A> scope dns on */* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 59701.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 59701.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 59701 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.128 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN AAAA
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 6048 for <megasearch.net IN AAAA> scope dns on */* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 6048.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 6048.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 6048 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.129 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN AAAA
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 8340 for <megasearch.net IN AAAA> scope dns on eth0/* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 8340.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 8340.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 8340 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.130 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN A
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 1578 for <megasearch.net IN A> scope dns on eth0/* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 1578.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 1578.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 1578 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 852, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 852 on transaction 59701 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Verified we get a response at feature level UDP+EDNS0+DO from DNS server 192.168.121.1.
Jul 14 09:17:00 systemd-resolved[15370]: Requesting SOA to validate transaction 59701 (megasearch.net, unsigned non-SOA/NS RRset <megasearch.net IN A 207.148.248.143>).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.131 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN SOA
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 57400 for <megasearch.net IN SOA> scope dns on */* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 57400.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 57400.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 57400 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 852, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 852 on transaction 1578 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Verified we get a response at feature level UDP+EDNS0+DO from DNS server 192.168.121.1.
Jul 14 09:17:00 systemd-resolved[15370]: Requesting SOA to validate transaction 1578 (megasearch.net, unsigned non-SOA/NS RRset <megasearch.net IN A 207.148.248.143>).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.132 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN SOA
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 55602 for <megasearch.net IN SOA> scope dns on eth0/* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 55602.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 55602.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 55602 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.122 path=n/a interface=n/a member=n/a cookie=10 reply_cookie=11 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Match type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0=':1.126' successfully installed.
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 43, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 43 on transaction 6048 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting SOA (→ megasearch.net) to validate transaction 6048 (megasearch.net, unsigned empty non-SOA/NS/DS response).
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 43, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 43 on transaction 8340 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting SOA (→ megasearch.net) to validate transaction 8340 (megasearch.net, unsigned empty non-SOA/NS/DS response).
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 43, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 43 on transaction 57400 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS (→ megasearch.net) to validate transaction 57400 (megasearch.net, unsigned empty SOA/NS response).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.133 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN DS
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 23468 for <megasearch.net IN DS> scope dns on */* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 23468.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 23468.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 23468 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 43, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 43 on transaction 55602 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS (→ megasearch.net) to validate transaction 55602 (megasearch.net, unsigned empty SOA/NS response).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.134 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for megasearch.net IN DS
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 26286 for <megasearch.net IN DS> scope dns on eth0/* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 26286.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 26286.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 26286 of size 66.
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 860, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 860 on transaction 23468 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 23468 (net, RRSIG with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.135 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for net IN DNSKEY
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 43656 for <net IN DNSKEY> scope dns on */* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 43656.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 43656.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 43656 of size 55.
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 23468 (A1RT98BS5QGC9NFI51S9HCI47ULJG6JH.net, RRSIG with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 23468 (RV12E0V5BTHM1I36O46IPK6AHS5FI5UE.net, RRSIG with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 860, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 860 on transaction 26286 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 26286 (net, RRSIG with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.136 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for net IN DNSKEY
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 21313 for <net IN DNSKEY> scope dns on eth0/* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 21313.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 21313.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 21313 of size 55.
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 26286 (A1RT98BS5QGC9NFI51S9HCI47ULJG6JH.net, RRSIG with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 26286 (RV12E0V5BTHM1I36O46IPK6AHS5FI5UE.net, RRSIG with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 953, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 953 on transaction 43656 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 43656 (net, DNSKEY with key tag: 35886).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.137 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for net IN DS
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 3674 for <net IN DS> scope dns on */* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 3674.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 3674.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 3674 of size 55.
Jul 14 09:17:00 audit[15370]: ANOM_ABEND auid=4294967295 uid=978 gid=978 ses=4294967295 pid=15370 comm="3" exe="/usr/lib/systemd/systemd-resolved" sig=11 res=1
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 43656 (net, DNSKEY with key tag: 65378).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 43656 (net, DNSKEY with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 953, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 953 on transaction 21313 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 21313 (net, DNSKEY with key tag: 65378).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.138 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for net IN DS
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 20806 for <net IN DS> scope dns on eth0/* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 20806.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 20806.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 20806 of size 55.
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 21313 (net, DNSKEY with key tag: 6203).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 21313 (net, DNSKEY with key tag: 35886).
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 367, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 367 on transaction 3674 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 3674 (net, RRSIG with key tag: 26838).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.139 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 kernel: show_signal_msg: 6 callbacks suppressed
Jul 14 09:17:00 kernel: 3[15370]: segfault at 90 ip 0000565337e61e3b sp 00007ffdfc93d9d0 error 4 in systemd-resolved[565337e43000+55000]
Jul 14 09:17:00 kernel: Code: 48 8b 02 83 78 18 00 74 cb f6 43 19 04 74 06 83 7a 10 00 75 bf 80 78 1c 00 0f 84 85 00 00 00 48 8b 3b 44 8b 77 08 48 8b 47 18 <4c> 8b a8 90 00 00 00 4c 8b 4b 28 4d 8d a1 84 00 00 00 45 8b 59 7c
Jul 14 09:17:00 kernel: audit: type=1701 audit(1626254220.287:516): auid=4294967295 uid=978 gid=978 ses=4294967295 pid=15370 comm="3" exe="/usr/lib/systemd/systemd-resolved" sig=11 res=1
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for . IN DNSKEY
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 50904 for <. IN DNSKEY> scope dns on */* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 50904.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 50904.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 50904 of size 51.
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 367, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 367 on transaction 20806 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DNSKEY to validate transaction 20806 (net, RRSIG with key tag: 26838).
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state UNSET → OPENING
Jul 14 09:17:00 systemd-resolved[15370]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state OPENING → AUTHENTICATING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state AUTHENTICATING → HELLO
Jul 14 09:17:00 systemd-resolved[15370]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.140 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state HELLO → RUNNING
Jul 14 09:17:00 systemd-resolved[15370]: Bus n/a: changing state RUNNING → CLOSED
Jul 14 09:17:00 systemd-resolved[15370]: Cache miss for . IN DNSKEY
Jul 14 09:17:00 systemd-resolved[15370]: Firing regular transaction 16263 for <. IN DNSKEY> scope dns on eth0/* (validate=yes).
Jul 14 09:17:00 systemd-resolved[15370]: Using feature level UDP+EDNS0+DO+LARGE for transaction 16263.
Jul 14 09:17:00 systemd-resolved[15370]: Using DNS server 192.168.121.1 for transaction 16263.
Jul 14 09:17:00 systemd-resolved[15370]: Announcing packet size 1472 in egress EDNS(0) packet.
Jul 14 09:17:00 systemd-resolved[15370]: Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Jul 14 09:17:00 systemd-resolved[15370]: Sending query packet with id 16263 of size 51.
Jul 14 09:17:00 systemd-resolved[15370]: Received dns UDP packet of size 864, ifindex=2, ttl=0, fragsize=0
Jul 14 09:17:00 systemd-resolved[15370]: Processing incoming packet of size 864 on transaction 50904 (rcode=SUCCESS).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 50904 (., DNSKEY with key tag: 20326).
Jul 14 09:17:00 systemd-resolved[15370]: Requesting DS to validate transaction 50904 (., DNSKEY with key tag: 26838).
Jul 14 09:17:00 systemd-resolved[15370]: Validating response from transaction 50904 (. IN DNSKEY).
Jul 14 09:17:00 systemd-resolved[15370]: Looking at . IN DNSKEY 257 3 RSASHA256 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbz
Jul 14 09:17:00 systemd-resolved[15370]:                             xeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlN
Jul 14 09:17:00 systemd-resolved[15370]:                             Vz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3E
Jul 14 09:17:00 systemd-resolved[15370]:                             gVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+
Jul 14 09:17:00 systemd-resolved[15370]:                             sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXx
Jul 14 09:17:00 systemd-resolved[15370]:                             uOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555
Jul 14 09:17:00 systemd-resolved[15370]:                             KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU=
Jul 14 09:17:00 systemd-resolved[15370]:         -- Flags: SEP ZONE_KEY
Jul 14 09:17:00 systemd-resolved[15370]:         -- Key tag: 20326: validated
Jul 14 09:17:00 systemd-resolved[15370]: Found verdict for lookup . IN DNSKEY: secure

Details from the coredump:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000565337e61e3b in dns_transaction_cache_answer (t=t@entry=0x5653396ccbc0) at ../build/src/resolve/resolved-dns-transaction.c:817
817	        dns_cache_put(&t->scope->cache,
(gdb) list 812,834
812	        /* Packet from localhost? */
813	        if (!t->scope->manager->cache_from_localhost &&
814	            in_addr_is_localhost(t->received->family, &t->received->sender) != 0)
815	                return;
816	
817	        dns_cache_put(&t->scope->cache,
818	                      t->scope->manager->enable_cache,
819	                      dns_transaction_key(t),
820	                      t->answer_rcode,
821	                      t->answer,
822	                      DNS_PACKET_CD(t->received) ? t->received : NULL, /* only cache full packets with CD on,
823	                                                                        * since our usecase for caching them
824	                                                                        * is "bypass" mode which is only
825	                                                                        * enabled for CD packets. */
826	                      t->answer_query_flags,
827	                      t->answer_dnssec_result,
828	                      t->answer_nsec_ttl,
829	                      t->received->family,
830	                      &t->received->sender,
831	                      t->scope->link->ifname,
832	                      t->scope->protocol);
833	}
834	
(gdb) set print pretty 
(gdb) p *(t->scope)
$3 = {
  manager = 0x5653391269c0,
  protocol = DNS_PROTOCOL_DNS,
  family = 0,
  dnssec_mode = DNSSEC_ALLOW_DOWNGRADE,
  dns_over_tls_mode = DNS_OVER_TLS_NO,
  link = 0x0,
  cache = {
    by_key = 0x0,
    by_expiry = 0x0,
    n_hit = 0,
    n_miss = 7
  },
  zone = {
    by_key = 0x0,
    by_name = 0x0
  },
  conflict_queue = 0x0,
  conflict_event_source = 0x0,
  announce_event_source = 0x0,
  ratelimit = {
    interval = 1000000,
    burst = 1000,
    num = 0,
    begin = 0
  },
  resend_timeout = 100000,
  max_rtt = 0,
  query_candidates = 0x5653391e4610,
  transactions_by_key = 0x5653391275a0,
  transactions = 0x5653396ccbc0,
  scopes_next = 0x0,
  scopes_prev = 0x5653391a0e70,
  announced = false
}
(gdb) p t->scope->link
$4 = (Link *) 0x0

Looks like a similar issue - t->scope->link is NULL causing t->scope->link->ifname to crash resolved.

@aditiambadkar
aditiambadkar force-pushed the aditi/resolved_mdns_cache_support branch from b11a7d6 to 95a59bc Compare July 14, 2021 11:40
Aditi Ambadkar added 2 commits July 14, 2021 17:26
-"ShowCaches" takes no parameters and returns an array of structures
- Each structure represents a cache entry and comprises - Interface, Protocol, Name, Type and Domain
- Emit D-Bus signals ItemNew, ItemRemove, CacheExhausted and AllForNow on the basis of events
- sd-bus API implements the D-Bus methods and signals
-"resolvectl show-caches" displays the mDNS cache entries on the terminal
-Each cache entry comprises: Interface, Protocol, Name, Type and Domain
@aditiambadkar
aditiambadkar force-pushed the aditi/resolved_mdns_cache_support branch from 95a59bc to 8e25a3c Compare July 14, 2021 12:00
@aditiambadkar

Copy link
Copy Markdown
Author

@mrc0mmand - Thank you for the guidance! I have resolved all the issues and all the checks have passed.
@bluca, @yuwata - I will start looking into the JSON format.

@aditiambadkar

aditiambadkar commented Jul 19, 2021 •

Copy link
Copy Markdown
Author

Thanks. So, @aditiambadkar I do not want to block your work, but please see the suggestion in #19104 by @poettering about to use json format.

@poettering - Where exactly should the JSON format be used in my case? Should it be used in the ShowCaches D-Bus method or the resolvectl show-caches command-line tool or both?
@yuwata @bluca - can you also give me more information on this?

@aditiambadkar

aditiambadkar commented Aug 4, 2021 •

Copy link
Copy Markdown
Author

@bluca @poettering @yuwata - I have implemented the JSON format for the cache entries. Currently, I am sending the cache entries in form of a JSON string similar to PR #19451 over the D-Bus and displaying them using the json_variant_dump method.
Here is a sample -
MicrosoftTeams-image (7)

My question is - is it sufficient to display the cache in JSON format only or should it also be displayed in a tabular format?

@bluca

bluca commented Aug 4, 2021

Copy link
Copy Markdown
Member

the command line tool output should be in table format, as all other tools are already doing, with a --json switch to output pure json

@aditiambadkar

Copy link
Copy Markdown
Author

the command line tool output should be in table format, as all other tools are already doing, with a --json switch to output pure json

@bluca

Going forward, there are two possible options:

(1) resolved --> D-Bus (native format) --> resolvectl (D-Bus native to tab format or D-Bus native to JSON)

or

(2) resolved --> D-Bus (JSON) --> resovectl (JSON to tab or JSON output)

Which option is preferable?

@bluca

bluca commented Aug 5, 2021

Copy link
Copy Markdown
Member

The second one, see: #19104 (comment)

@poettering

Copy link
Copy Markdown
Member

What is the usecase for this?

I mean I can see that it is useful to dump the cache, but have a live view of it? what#s the point?

D-Bus really sucs for bulk data and for high-frequency updates. it's not for that, it's for control msgs.

I'd probably put the cache dumping in the varlink server we already expose. unlike dbus it supports bulk data and via the "continues" stuff also allows us to notify clients efficeintly.

BTW, please make sure to always follow coding style. Glancing over the PR shows not even the most basic indenting rules are followed. as your additions follow a completely diffeent indentation then the rest of the file.

https://systemd.io/CODING_STYLE

@poettering poettering added needs-discussion 🤔 reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks labels Aug 13, 2021
@aditiambadkar

Copy link
Copy Markdown
Author

What is the usecase for this?

I mean I can see that it is useful to dump the cache, but have a live view of it? what#s the point?

D-Bus really sucs for bulk data and for high-frequency updates. it's not for that, it's for control msgs.

I'd probably put the cache dumping in the varlink server we already expose. unlike dbus it supports bulk data and via the "continues" stuff also allows us to notify clients efficeintly.

BTW, please make sure to always follow coding style. Glancing over the PR shows not even the most basic indenting rules are followed. as your additions follow a completely diffeent indentation then the rest of the file.

https://systemd.io/CODING_STYLE

@poettering
It would be good if you can provide me with your opinion on how I can mimic the Avahi API (AvahiServiceBrowser) behaviour within the systemd-resolved. I have come across your comment on PR #18355 resolvectl: Add show-multicast verb to show discovered LLMNR/mDNS hosts Can you please provide more guidance with respect to the same?

What is your recommendation to implement something like avahi-browse that will be acceptable upstream and usable by us?

@poettering

Copy link
Copy Markdown
Member

So I understand you intend to browse for DNS-SD/mDNS services?

we should have a proper, high-level API for that in resolved, modelled after the existing ResolveXYZ APIs, but called BrowseServices(), and since browsing is a long-running op this must allocate some server side object that fires service add/service remove signals, and then is destroy with another call BrowseServicesClose().

BrowseServices() should implement service browsing as is described in the DNS-SD/mDNS pair of RFCs.

@aditiambadkar

aditiambadkar commented Aug 26, 2021 •

Copy link
Copy Markdown
Author

So I understand you intend to browse for DNS-SD/mDNS services?

we should have a proper, high-level API for that in resolved, modelled after the existing ResolveXYZ APIs, but called BrowseServices(), and since browsing is a long-running op this must allocate some server side object that fires service add/service remove signals, and then is destroy with another call BrowseServicesClose().

BrowseServices() should implement service browsing as is described in the DNS-SD/mDNS pair of RFCs.

@poettering
Please provide your opinion on the following -

  1. The client will call the BrowseServices() API.
  2. If the cache already has some entries present - iterate over the cache and send each entry as a D-Bus signal.
  3. If a new entry is added to the cache - emit an ItemNew signal for that.
  4. If an entry is removed from the cache - emit an ItemRemove signal for that.

The client would call the BrowseServices() API and subscribe to the D-Bus signals (ItemNew, ItemRemove).
The client would call the BrowseServicesClose() API to unsubscribe.

Does this overall workflow sound okay?

@aditiambadkar

Copy link
Copy Markdown
Author

So I understand you intend to browse for DNS-SD/mDNS services?
we should have a proper, high-level API for that in resolved, modelled after the existing ResolveXYZ APIs, but called BrowseServices(), and since browsing is a long-running op this must allocate some server side object that fires service add/service remove signals, and then is destroy with another call BrowseServicesClose().
BrowseServices() should implement service browsing as is described in the DNS-SD/mDNS pair of RFCs.

@poettering
Please provide your opinion on the following -

  1. The client will call the BrowseServices() API.
  2. If the cache already has some entries present - iterate over the cache and send each entry as a D-Bus signal.
  3. If a new entry is added to the cache - emit an ItemNew signal for that.
  4. If an entry is removed from the cache - emit an ItemRemove signal for that.

The client would call the BrowseServices() API and subscribe to the D-Bus signals (ItemNew, ItemRemove).
The client would call the BrowseServicesClose() API to unsubscribe.

Does this overall workflow sound okay?

@poettering I request you to please look at this

@vishwanathchandapur

Copy link
Copy Markdown

@poettering

We are re-implementing this PR however before just want to reconfirm that you would like to have implementation of BrowseServices API for mDNS/DNS-SD in varlink IPC rather than SMBUS IPC like io.systemd.Resolve.ResolveHostname and io.systemd.Resolve.ResolveAddress?

@vishwanathchandapur

Copy link
Copy Markdown

@poettering
As you recommended in past comments we have implemented using varlink IPC. and also as now we dumping existing cache in the varlink server, However to implement as RFC6762 section 5.2 do you recommend to use same cache or implement new cache.

poettering added a commit to poettering/systemd that referenced this pull request Jun 12, 2023
… 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
@poettering

Copy link
Copy Markdown
Member

#28012 contains a "resolvectl show-caches" verb that implements much of what was requested here, and builds on the varlink stuff recently added for the query monitoring stuff. Let's continue there.

@poettering poettering closed this Jun 12, 2023
@github-actions github-actions Bot removed reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks ci-fails/needs-rework 🔥 Please rework this, the CI noticed an issue with the PR needs-discussion 🤔 labels Jun 12, 2023
poettering added a commit to poettering/systemd that referenced this pull request Jun 12, 2023
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

6 participants