Re: [Dnsmasq-discuss] System tries to get its address by DHCP before dnsmasq starts up - how to stop it?

2012-10-05 Thread Jay Imerman
There is a NetworkManager.conf file, in there the line dns= should
Jane dnsmasq as the setting. I haven't noticed any delays in my setup,
same thing: 12.04 with static IP v4 settings, it is nice and snappy.



- Jay
Sent from my iPhone

On Oct 4, 2012, at 11:04, Dan Williams d...@redhat.com wrote:

 On Thu, 2012-10-04 at 12:20 +0100, Chris Green wrote:
 On Thu, Oct 04, 2012 at 10:23:33AM +0100, Chris Green wrote:
 I have a little server system running dnsmasq version 2.59 under Ubuntu
 12.04 (I have just upgraded it from Ubuntu 10.04).

 While booting it tries to get its network configuration (using DHCP
 presumably) from the LAN, since *it's* the DHCP server this doesn't work
 but it wastes a lot of time waiting for things to time out and produces
 various error messages on the way.

 How do I configure the system so that it doesn't do this?
 Further to this the delay is cause by /etc/init/failsafe.conf, even if I
 have static IP correctly configured in /etc/network/interfaces the silly
 init sequence still does all the waits in /etc/init/failsafe.conf
 waiting for DHCP.

 Google searches just produce the standard way to set up static IP but
 no workaround for the delays.

 Is the machine running NetworkManager?  If so it could be a
 misconfiguration issue or an Upstart dependency issue.

 Dan



 ___
 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] Pulling DHCP leases from an external script?

2012-10-05 Thread richardvo...@gmail.com
Non-authoritative summary:

Data goes from the dnsmasq server, to an dnsmasq helper process with
limited privileges, to the script.

No data comes back from the script, except during the startup phase.  This
is a security feature.

On Wed, Oct 3, 2012 at 2:14 PM, Brian Rak b...@gameservers.com wrote:

 I'm trying to set up a DHCP server so that on any request for a new lease
 I can execute a script and have the script return an IP address (and other
 information).

 Is this something that is currently possible with dnsmasq?  From reading
 the man page, I can't tell if I will get this behaviour with --dhcp-script
 --leasefile-ro.

 Basically, it would be impossible for me to specify all the possible DHCP
 leases at startup, but when a lease request is received I would be able to
 determine what IP to assign.

 __**_
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.**thekelleys.org.ukDnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.**uk/mailman/listinfo/dnsmasq-**discusshttp://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