[Dnsmasq-discuss] dynamic dns server ?

Simon Kelley simon at thekelleys.org.uk
Mon Jun 16 20:41:58 UTC 2014


On 12/06/14 05:06, Colin Kincaid Williams wrote:
> On second thought a dhcp forwarder probably won't work, because I
> don't think I can set a dhcp server address in dhclient.conf. That
> leaves using dynamic-dnsmasq.pl as my only option, unless I'm
> overlooking something.
> 
> On Wed, Jun 11, 2014 at 8:34 PM, Colin Kincaid Williams <discord at uw.edu> wrote:
>> I've been asked to provide a dns solution for a lab environment.  In
>> the lab they are spinning up VM's with virtual network interfaces, the
>> problem is the machines need to be able to communicate with each
>> other. The lab has a certain network infrastructure that I cannot
>> change e.g. DHCP server.
>>
>> So for the VM hosts foo1.local, I would like it to resolv foo2.local,
>> foo3.local. More vms can be spun up all the time, and I cannot assume
>> i know their hostname.
>>
>> These hosts all receive their ips from another DHCP server, lets call
>> it dhcp.local. It might be nice if I could use dnsmasq to provide them
>> with an IP address, because I believe that it can also add that IP
>> dynamically to it's hostname / DNS table.However, I have to use
>> dhcp.local that is not using DHCP. I saw an option to use dnsmasq as a
>> DHCP relay. If I chose this option, will -dhcp-relay=<local
>> address>,<server address>[,<interface], will I be able to get an
>> adress from dhcp.local, and still have the fqdn and ip added to the
>> DNS table on the dnsmasq server, call it dnsmasq.local.
>>
>>
>> If this won't work another thing I was thinking I could do is use the
>> dynamic-dnsmasq.pl script to add the host to dnsmasq.local, on the
>> creation of the vm.
>>
>> I think I prefer using the DHCP relay, if that would work. I'm just
>> looking for some advice. Some other possibilities include the use of
>> mDNS or zeroconf...
> 


I think you really need to get some control of the lab DHCP server. If
nothing else needs to talk to the VMs, and they only need to talk to
each other and the rest of the world, you could, I suppose put them on a
private RFC1918 net with a dnsmasq instance as DHCP server and NAT them
to the lab network. Nasty, but it might work.


Simon.





More information about the Dnsmasq-discuss mailing list