Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Debug dnsmasq by logging its queries
#!/bin/bash
echo 'log-queries' > /etc/dnsmasq.conf
service network-manager restart
tail -f /var/log/syslog
@jbielick

This comment has been minimized.

Copy link

@jbielick jbielick commented Mar 27, 2019

echo 'log-queries' > will overwrite your dnsmasq.conf contents. Are you sure you don't want to simply append with >>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment