Created
May 16, 2016 18:05
-
-
Save shuhaowu/0a6f5a296e79d585c782a46c20026b69 to your computer and use it in GitHub Desktop.
Debug dnsmasq by logging its queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'log-queries' > /etc/dnsmasq.conf | |
service network-manager restart | |
tail -f /var/log/syslog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo 'log-queries' >
will overwrite your dnsmasq.conf contents. Are you sure you don't want to simply append with>>
?