How to save dns logs made with dns forwarding?

How do I save logs, or where are the logs of queries made with DNS forwarding? I’m running vyos 1.4-rolling, and I’ve configured the DNS as in the quick start guide:

    dns {
        forwarding {
            allow-from 192.168.155.0/24
            cache-size 0
            listen-address 192.168.155.1
        }
    }

Hi!

You can check the logs using the command below:

$ show log dns forwarding

You can find more about dns forwarding here.

Hi, @j.landicho

Thanks for your prompt reply.

When I run the command, I get

Apr 30 21:55:46 systemd[1]: Starting pdns-recursor.service - PowerDNS Recursor...
Apr 30 21:55:47 pdns-recursor[2108]: PowerDNS Recursor 4.8.4 (C) 2001-2022 PowerDNS.COM BV
Apr 30 21:55:47 pdns-recursor[2108]: Using 64-bits mode. Built using gcc 12.2.0.
Apr 30 21:55:47 pdns-recursor[2108]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Apr 30 21:55:47 pdns-recursor[2108]: msg="Enabling IPv4 transport for outgoing queries" subsystem="config" level="0" prio="Notice" tid="0" ts="1682891747.309"
Apr 30 21:55:47 pdns-recursor[2108]: msg="Enabling IPv6 transport for outgoing queries" subsystem="config" level="0" prio="Notice" tid="0" ts="1682891747.310"
Apr 30 21:55:47 pdns-recursor[2108]: msg="Setting access control" subsystem="config" level="0" prio="Info" tid="0" ts="1682891747.368" acl="allow-from" addresses="192.168.155.0/24"
Apr 30 21:55:47 pdns-recursor[2108]: msg="Will not send queries to" subsystem="config" level="0" prio="Notice" tid="0" ts="1682891747.387" addresses="127.0.0.0/8 10.0.0.0/8 100.64.0.0/10 169.254.0.0/16 192.168.0.0/16 172.16.0.0/12 ::1/128 fc00::/7 fe80::/10 0.0.0.0/8 192.0.0.0/24 192.0.2.0/24 198.51.100.0/24 203.0.113.0/24 240.0.0.0/4 ::/96 ::ffff:0:0/96 100::/64 2001:db8::/32 0.0.0.0 ::"
Apr 30 21:55:47 pdns-recursor[2108]: msg="Reading zone forwarding information" subsystem="config" level="0" prio="Notice" tid="0" ts="1682891747.388" file="recursor.forward-zones.conf"
 count="0" file="recursor.forward-zones.conf"
e="localhost"

But what I want is a log of all queries made as when using dnsmasq and which looks more like this:

Jun 3 05:56:49 10-2-34-54 pdns_server: Remote 123.123.123.123 wants 'example.com|A', do = 0, bufsize = 1232 (4096): packetcache MISS 

Normally achieving this can be done by changing the pdns.conf line

log-dns-queries=yes
loglevel=5