[Dnsmasq-discuss] Fw: two stupid questions

Jan Psota jasiu at belsznica.pl
Mon Nov 16 20:59:02 GMT 2009


Christopher Scott <cscott at agencypja.com> wrote:
> 1.
> The '--test' option as described in the manpage doesn't appear to do  
> anything (on my Mac OS X 10.5-based box); am I doing something
> wrong? shouldn't the command be:
> 
> /usr/local/sbin/dnsmasq --test
Works as expected on Gentoo Linux:

gandalf ~ # dnsmasq --test
dnsmasq: syntax check OK.
gandalf ~ # dnsmasq --test -kasj

dnsmasq: bad command line options: try --help

> 2.
> I'm unclear on how to review the logs - I see references in the  
> documentation to sending SIGUSR1 and SIGUSR2 commands but don't  
> understand HOW to do that.
If Mac OS X is as close to UNIX as I expect, running:
	killall -USR1 dnsmasq
as privileged user should provoke dnsmasq to write to log
(/var/log/messages for us) something like:

Nov 16 21:21:21 gandalf dnsmasq[5553]: time 1258402881
Nov 16 21:21:21 gandalf dnsmasq[5553]: cache size 150, 0/0 cache insertions re-used unexpired cache entries.
Nov 16 21:21:21 gandalf dnsmasq[5553]: queries forwarded 0, queries answered locally 0
Nov 16 21:21:21 gandalf dnsmasq[5553]: server 192.168.7.5#53: queries sent 0, retried or failed 0
Nov 16 21:21:21 gandalf dnsmasq[5553]: server 192.168.1.1#53: queries sent 0, retried or failed 0

Alternatively you can check dnsmasq's PID with 'ps' command and then
use
	kill -USR1 [PID]
like:
gandalf ~ # ps -C dnsmasq
  PID TTY          TIME CMD
 6136 ?        00:00:00 dnsmasq
gandalf ~ # kill -USR1 6136
gandalf ~ #
#[take a look on logs]

-- 
Jan Psota



More information about the Dnsmasq-discuss mailing list