[Dnsmasq-discuss] Can I serve two different DHCP domains from a single dnsmasq server?
alberto.cuesta at excelian.com
Thu Aug 5 15:34:16 BST 2010
does anyone know if it is possible to send via DHCP hostnames in two different domains from a single dnsmasq server?
It should be something like:
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.
GaaS Team Lead
+44 (0) 7942633361
Date: Wed, 04 Aug 2010 20:02:07 -0700
From: Paul Chambers <dnsmasq at lists.bod.org>
Subject: [Dnsmasq-discuss] wildcard subdomains for a DHCP-assigned
To: Dnsmasq List <dnsmasq-discuss at lists.thekelleys.org.uk>
Message-ID: <4C5A29AF.9050802 at lists.bod.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
This may be a dumb question, but I'm no wiser after skimming the man
page and experimenting a little...
I have a development box I'm using to develop some virtual host stuff.
I'd like to set up a wildcard subdomain for it. Essentially
<anything>.dev.foo.bar would resolve to dev.foo.bar's IP address
(assigned by DHCP). Its IP address does move on occasion, just often
enough to be irritating/fragile to use an IP directly.
For now, I've worked around it by adding 'address=/dev.foo.bar/<current
IP addr>' to the config, but that's fragile and seems like a bad idea. I
could give the box a static IP I suppose, but I much prefer keeping the
number of static assignments to a minimum. Plus it's a laptop, so I'd
keep it configured for DHCP and set up a static DHCP assignment based on
MAC address. Somehow none of this feels very satisfying, just workarounds.
Is there a better way I've missed? If not, is there a reason dnsmasq
doesn't do this? would it be hard to add? (perhaps support wildcards for
Dnsmasq-discuss mailing list
Dnsmasq-discuss at lists.thekelleys.org.uk
End of Dnsmasq-discuss Digest, Vol 63, Issue 4
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.
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.
50 Featherstone Street
Tel: +44 (0) 20 7336 9595
Fax: +44 (0) 20 7336 9596
This e-mail has been scanned for viruses by MessageLabs. For further information visit http://www.messagelabs.com
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 6567 bytes
Desc: not available
Url : http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20100805/6b5c7ae2/attachment.bin
More information about the Dnsmasq-discuss