Skip to content

Instantly share code, notes, and snippets.

@shuhaowu
Created May 16, 2016 18:05
Show Gist options
  • Save shuhaowu/0a6f5a296e79d585c782a46c20026b69 to your computer and use it in GitHub Desktop.
Save shuhaowu/0a6f5a296e79d585c782a46c20026b69 to your computer and use it in GitHub Desktop.
Debug dnsmasq by logging its queries
#!/bin/bash
echo 'log-queries' > /etc/dnsmasq.conf
service network-manager restart
tail -f /var/log/syslog
@jbielick
Copy link

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

@InterBilly
Copy link

bye bye config :(

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