Re: [Dnsmasq-discuss] all I wanted to do was temporarily dnsMASQ some addresses

2013-12-14 Thread Albert ARIBAUD

Le 14/12/2013 00:32, jida...@jidanni.org a écrit :

OK I found a method to temporarily e.g., make doubleclick point to
localhost or back, without changing any of the Debian dnsmasq default
configuration:
# ed /etc/hosts
# /etc/init.d/dnsmasq restart


Why restart (which involves a long stop and start) when you could just 
e.g. killall -HUP dnsmasq?


Also, you could use -H (-addn-hosts) and place your 
doubleclick-to-localhost and other mappings in a custom hosts file 
rather than edit /etc/hosts.



Using instead switches mentioned on the man page probably requires
editing /etc/dnsmasq.conf first.


Amicalement,
--
Albert.

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] all I wanted to do was temporarily dnsMASQ some addresses

2013-12-13 Thread sven falempin
/etc/hosts is prime


On Fri, Dec 13, 2013 at 7:06 AM, jida...@jidanni.org wrote:

 Why is this such a giant hassle?

 All I want to do is convert these three commands,

 pdnsd-ctl add cname localhost radioscanningtw.jidanni.org 99
 pdnsd-ctl record radioscanningtw.jidanni.org delete
 pdnsd-ctl dump radioscanningtw.jidanni.org
 pdnsd-ctl dump #everything

 into their dnsmasq equivalents.
 The stuff on the dnsmasq page doesn't work.
 as resolveip shows me. nothing happens.

 I'm on Debian.
 Yes OK I will grudgingly do
 /etc/init.d/dnsmasq stop
 and the run a shell script.

 All I want to do is make those addresses resolve to localhost
 temporarily, do some work, and then remove the address diversion.

 I already submitted
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732049

 Please don't say I must change system files. I want to put everything in
 a shell script.

 Also despite the man page, I can't get a fine grained log of every
 little action on STDERR.

 Nor can I get a full dump of what is currently in dnsmasq's brain.

 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




-- 
-
() ascii ribbon campaign - against html e-mail
/\
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] all I wanted to do was temporarily dnsMASQ some addresses

2013-12-13 Thread Bill C Riemers

I'm abit confused here about the request.

He doesn't want to change system files so he can put everything in a shell 
script.

Why can't one change system files from a shell script???

That said, given his hypothesis that he can't do it, I would say then the 
solution is simply to specify alternate files in the command line.

e.g. A combination of -h and -H options would allow the specification of a 
temporary hosts file generated by the script...

Of course he still needs to update system files for the initial install of 
dnsmasq.   You aren't going to have any effect if you haven't update 
/etc/resolv.conf to point localhost...


Bill

- Original Message -
From: sven falempin sven.falem...@gmail.com
To: jida...@jidanni.org
Cc: dnsmasq-disc...@thekelleys.org.uk
Sent: Friday, December 13, 2013 8:54:41 AM
Subject: Re: [Dnsmasq-discuss] all I wanted to do was temporarily dnsMASQ   
some addresses

/etc/hosts is prime 


On Fri, Dec 13, 2013 at 7:06 AM,  jida...@jidanni.org  wrote: 


Why is this such a giant hassle? 

All I want to do is convert these three commands, 

pdnsd-ctl add cname localhost radioscanningtw.jidanni.org 99 
pdnsd-ctl record radioscanningtw.jidanni.org delete 
pdnsd-ctl dump radioscanningtw.jidanni.org 
pdnsd-ctl dump #everything 

into their dnsmasq equivalents. 
The stuff on the dnsmasq page doesn't work. 
as resolveip shows me. nothing happens. 

I'm on Debian. 
Yes OK I will grudgingly do 
/etc/init.d/dnsmasq stop 
and the run a shell script. 

All I want to do is make those addresses resolve to localhost 
temporarily, do some work, and then remove the address diversion. 

I already submitted 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732049 

Please don't say I must change system files. I want to put everything in 
a shell script. 

Also despite the man page, I can't get a fine grained log of every 
little action on STDERR. 

Nor can I get a full dump of what is currently in dnsmasq's brain. 

___ 
Dnsmasq-discuss mailing list 
Dnsmasq-discuss@lists.thekelleys.org.uk 
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss 



-- 
-
 
() ascii ribbon campaign - against html e-mail 
/\ 

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] all I wanted to do was temporarily dnsMASQ some addresses

2013-12-13 Thread jidanni
OK I found a method to temporarily e.g., make doubleclick point to
localhost or back, without changing any of the Debian dnsmasq default
configuration:
# ed /etc/hosts
# /etc/init.d/dnsmasq restart

Using instead switches mentioned on the man page probably requires
editing /etc/dnsmasq.conf first.

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss