Monitor last lines of Domain Name System (DNS) related services
Monitor last lines of DNS Forwarding service
journalctl --no-hostname --follow --boot --unit pdns-recursor.service
Show log for Domain Name System (DNS) related services
Show log for DNS Forwarding
journalctl --no-hostname --boot --unit pdns-recursor.service
Show Domain Name System (DNS) related information
Show DNS Forwarding information
Show DNS Forwarding statistics
sudo ${vyos_op_scripts_dir}/dns.py show_forwarding_statistics
Restart specific Domain Name System (DNS) related service
Restart DNS Forwarding service
if cli-shell-api existsActive service dns forwarding; then sudo systemctl restart pdns-recursor.service; else echo "DNS forwarding not configured"; fi
Reset Domain Name System (DNS) related service state
Reset DNS Forwarding cache
sudo ${vyos_op_scripts_dir}/dns.py reset_forwarding --domain $5
Reset DNS Forwarding cache for a domain
sudo ${vyos_op_scripts_dir}/dns.py reset_forwarding --all
Reset DNS Forwarding cache for all domains