<HTML dir=ltr><HEAD><TITLE>Re: [Dnsmasq-discuss] Can I serve two different DHCP domains from a single dnsmasq server?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText18868 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Santiago,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I've indeed tested it extensively before posting, at least as much as I can without disturbing the production environments around.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>With the configuration below, and ensuring that there were no leases around to mess up anything, the machine in the bar domain would instead get a random ip in the foo domain, no hostname, and foo dns domain.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>On Sunday, when production is stopped, I can swap the order of the domain lines to see if dnsmasq recognises only the first, and do other more dangerous tests.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV></DIV>
<DIV id=idSignature13059 dir=ltr>
<DIV><FONT face=Arial color=#000000 size=2>
<DIV>
<DIV><FONT face=Arial size=2><STRONG>Alberto Cuesta-Canada</STRONG></FONT></DIV></DIV>
<DIV><FONT face=Arial size=1>GaaS Team Lead</FONT></DIV>
<DIV><FONT face=Arial size=1>Excelian Ltd.</FONT></DIV>
<DIV><FONT face=Arial size=1>+44 (0) 7942633361</FONT></DIV></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> santiago.j.zarate@gmail.com on behalf of Santiago Zarate<BR><B>Sent:</B> Thu 05/08/2010 15:56<BR><B>To:</B> Alberto Cuesta-Canada<BR><B>Cc:</B> dnsmasq-discuss@lists.thekelleys.org.uk<BR><B>Subject:</B> Re: [Dnsmasq-discuss] Can I serve two different DHCP domains from a single dnsmasq server?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>if i'm not mistaken, this is possible... but its matter of begin testing...<BR><BR><BR><BR>2010/8/5 Alberto Cuesta-Canada &lt;alberto.cuesta@excelian.com&gt;:<BR>&gt; Hi all,<BR>&gt;<BR>&gt; does anyone know if it is possible to send via DHCP hostnames in two different domains from a single dnsmasq server?<BR>&gt;<BR>&gt; It should be something like:<BR>&gt;<BR>&gt; domain=foo,192.168.0.0/24<BR>&gt; domain=bar,192.168.1.0/24<BR>&gt;<BR>&gt; dhcp-range=foo-range,192.168.0.0,192.168.0.255,infinite<BR>&gt; dhcp-range=bar-range,192.168.1.0,192.168.1.255,infinite<BR>&gt;<BR>&gt; dhcp-host=02:00:0A:00:00:00,net:foo-range,host1,192.168.0.1,static<BR>&gt; dhcp-host=02:00:0A:00:10:00,net:bar-range,host2,192.168.1.1,static<BR>&gt;<BR>&gt; So what I would have is that host1 would get the fqdn host1.foo and the 192.168.0.1 address, while host2 would be host2.bar and get the 192.168.1.1 address.<BR>&gt;<BR>&gt; Many thanks,<BR>&gt;<BR>&gt; Alberto Cuesta-Canada<BR>&gt; GaaS Team Lead<BR>&gt; Excelian Ltd.<BR>&gt; +44 (0) 7942633361<BR>&gt;<BR>&gt; ________________________________<BR>&gt;<BR>&gt; Date: Wed, 04 Aug 2010 20:02:07 -0700<BR>&gt; From: Paul Chambers &lt;dnsmasq@lists.bod.org&gt;<BR>&gt; Subject: [Dnsmasq-discuss] wildcard subdomains for a DHCP-assigned<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp;host<BR>&gt; To: Dnsmasq List &lt;dnsmasq-discuss@lists.thekelleys.org.uk&gt;<BR>&gt; Message-ID: &lt;4C5A29AF.9050802@lists.bod.org&gt;<BR>&gt; Content-Type: text/plain; charset=UTF-8; format=flowed<BR>&gt;<BR>&gt; &nbsp;This may be a dumb question, but I'm no wiser after skimming the man<BR>&gt; page and experimenting a little...<BR>&gt;<BR>&gt; I have a development box I'm using to develop some virtual host stuff.<BR>&gt; I'd like to set up a wildcard subdomain for it. Essentially<BR>&gt; &lt;anything&gt;.dev.foo.bar would resolve to dev.foo.bar's IP address<BR>&gt; (assigned by DHCP). Its IP address does move on occasion, just often<BR>&gt; enough to be irritating/fragile to use an IP directly.<BR>&gt;<BR>&gt; For now, I've worked around it by adding 'address=/dev.foo.bar/&lt;current<BR>&gt; IP addr&gt;' to the config, but that's fragile and seems like a bad idea. I<BR>&gt; could give the box a static IP I suppose, but I much prefer keeping the<BR>&gt; number of static assignments to a minimum. Plus it's a laptop, so I'd<BR>&gt; keep it configured for DHCP and set up a static DHCP assignment based on<BR>&gt; MAC address. Somehow none of this feels very satisfying, just workarounds.<BR>&gt;<BR>&gt; Is there a better way I've missed? If not, is there a reason dnsmasq<BR>&gt; doesn't do this? would it be hard to add? (perhaps support wildcards for<BR>&gt; cname?)<BR>&gt;<BR>&gt; -- Paul<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; ------------------------------<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Dnsmasq-discuss mailing list<BR>&gt; Dnsmasq-discuss@lists.thekelleys.org.uk<BR>&gt; <A href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</A><BR>&gt;<BR>&gt;<BR>&gt; End of Dnsmasq-discuss Digest, Vol 63, Issue 4<BR>&gt; **********************************************<BR>&gt;<BR>&gt;<BR>&gt; The information contained in this email and any attached files are confidential and intended solely for the addressee(s). The email may be legally privileged or prohibited from disclosure and unauthorised use. If you are not the named addressee you may not use, copy, or disclose this information to any other person. If you received this message in error please notify the sender immediately and delete it from your system.<BR>&gt;<BR>&gt; Any opinion or views contained in this email message are those of the sender, and do not represent those of the Company in any way and reliance should not be placed upon its contents. Unless otherwise stated, this email message is not intended to be contractually binding. Where an Agreement exists between our respective companies and there is conflict between the contents of this email message and the Agreement then the terms of that Agreement shall prevail.<BR>&gt;<BR>&gt; Excelian<BR>&gt; 50 Featherstone Street<BR>&gt; London<BR>&gt; EC1Y 8RT<BR>&gt; Tel: +44 (0) 20 7336 9595<BR>&gt; Fax: +44 (0) 20 7336 9596<BR>&gt; www.Excelian.com<BR>&gt; _____________________________________________________________________<BR>&gt; This e-mail has been scanned for viruses by MessageLabs. For further information visit <A href="http://www.messagelabs.com/">http://www.messagelabs.com</A><BR>&gt;<BR>&gt; Excelian subscribes to cleaner and greener methods of working. Help take responsibility for the environment. Please don't print this email unless you absolutely have to.<BR>&gt; _______________________________________________<BR>&gt; Dnsmasq-discuss mailing list<BR>&gt; Dnsmasq-discuss@lists.thekelleys.org.uk<BR>&gt; <A href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</A><BR>&gt;<BR>&gt;<BR></FONT></P></DIV><BR>
The information contained in this email and any attached files are confidential and intended solely for the addressee(s). The email may be legally privileged or prohibited from disclosure and unauthorised use. If you are not the named addressee you may not use, copy, or disclose this information to any other person. If you received this message in error please notify the sender immediately and delete it from your system. <BR>
<BR>
Any opinion or views contained in this email message are those of the sender, and do not represent those of the Company in any way and reliance should not be placed upon its contents. Unless otherwise stated, this email message is not intended to be contractually binding. Where an Agreement exists between our respective companies and there is conflict between the contents of this email message and the Agreement then the terms of that Agreement shall prevail.<BR>
<BR>
Excelian<BR>
50 Featherstone Street<BR>
London<BR>
EC1Y 8RT<BR>
Tel: +44 (0) 20 7336 9595<BR>
Fax: +44 (0) 20 7336 9596<BR>
www.Excelian.com<BR>
_____________________________________________________________________<BR>
This e-mail has been scanned for viruses by MessageLabs. For further information visit http://www.messagelabs.com<BR>
<BR>
Excelian subscribes to cleaner and greener methods of working. Help take responsibility for the environment. Please don't print this email unless you absolutely have to.<BR>
</BODY></HTML>