Re: [Dnsmasq-discuss] bugreport: log-queries must be used with no-daemon

2010-11-18 Thread Simon Kelley
任晓磊 wrote: > On Wed, Nov 17, 2010 at 7:44 PM, Simon Kelley wrote: >> No. --no-daemon OR --log-queries is sufficient. That was true with the >> code in 2.55 too, but the use of bitwise operators makes it less >> obvious. I suspect the part of your patch which made it work for you was >> the changin

Re: [Dnsmasq-discuss] bugreport: log-queries must be used with no-daemon

2010-11-18 Thread 任晓磊
On Wed, Nov 17, 2010 at 7:44 PM, Simon Kelley wrote: > No. --no-daemon OR --log-queries is sufficient. That was true with the > code in 2.55 too, but the use of bitwise operators makes it less > obvious. I suspect the part of your patch which made it work for you was > the changing of the log faci

Re: [Dnsmasq-discuss] bugreport: log-queries must be used with no-daemon

2010-11-17 Thread Simon Kelley
任晓磊 wrote: > I see > if (option_bool(OPT_DEBUG) || option_bool(OPT_LOG)) > in the 2.65test15 source. Must I use --no-daemon and --log-queries both? No. --no-daemon OR --log-queries is sufficient. That was true with the code in 2.55 too, but the use of bitwise operators makes it less obvious. I

Re: [Dnsmasq-discuss] bugreport: log-queries must be used with no-daemon

2010-11-17 Thread 任晓磊
I see if (option_bool(OPT_DEBUG) || option_bool(OPT_LOG)) in the 2.65test15 source. Must I use --no-daemon and --log-queries both? But manpages didn't said that. On Wed, Nov 17, 2010 at 5:47 AM, Simon Kelley wrote: > I think this is fixed in > > http://www.thekelleys.org.uk/dnsmasq/test-release

Re: [Dnsmasq-discuss] bugreport: log-queries must be used with no-daemon

2010-11-16 Thread Simon Kelley
任晓磊 wrote: > I use > dnsmasq --log-queries > > After I kill USR1 signal to its pid, it did NOT dump cache content as > manpage said, only statistics in syslog. > File attached with mail is my patch to fix this. > > According to original source, we should use > dnsmasq --no-daemon --log-queries >

[Dnsmasq-discuss] bugreport: log-queries must be used with no-daemon

2010-11-16 Thread 任晓磊
I use dnsmasq --log-queries After I kill USR1 signal to its pid, it did NOT dump cache content as manpage said, only statistics in syslog. File attached with mail is my patch to fix this. According to original source, we should use dnsmasq --no-daemon --log-queries before fix it. -- Ren Xiaolei d