Discussion:
[Dnsmasq-discuss] subdomains and dhcp
Christoph Gaitzsch
2018-08-08 14:23:30 UTC
Permalink
Hi,

I want to accomplish the following:

My domain set in dnsmasq.conf is "domain.net". I have "normal" hosts e. g.

host.domain.net


and I have hosts like this:

site.test.domain.net
site.stag.domain.net
site.prod.domain.net



I have configured one host to send the FQDN via dhclient. dnsmasq errors
with:

Ignoring domain test.domain.net for DHCP host name site


I want that these 3 hosts to get an IP via DHCP and being accessible via "
site.test.domain.net" and "site.test".

Can someone 1) tell me if this is possible with dnsmasq and 2) point me
into the right direction how to configure this.

Best regards, Christoph Gaitzsch

iCADA GmbH, Bahnhofstr. 63, 67059 Ludwigshafen, Germany.
Ludwigshafen HRB 4748, GeschÀftsfÌhrer: Tobias Ferber, R. Federici
Simon Kelley
2018-08-08 16:06:36 UTC
Permalink
You can do what you want, but there are limitations. You'll need to
split your test, stag and prod hosts 1into different IP address ranges.
This will probably mean giving them fixed addresses.

Then declare the various domains and the subnets associated with them,
for example.

domain=test.domain.net,92.168.0.1,192.168.0.10
domain=stag.domain.net,192.168.0.11,192.168.0.20
domain=prod.domain.net,192.168.0.21,192.168.0.30

Finally, you'll need to the config option

dhcp-fqdn

Reading the man page sections for domain and dhcp-fqdn should help make
this clearer.


Cheers,

Simon.
Hi,
My domain set in dnsmasq.conf is "domain.net <http://domain.net>". I
have "normal" hosts e. g. 
host.domain.net <http://host.domain.net>
site.test.domain.net <http://site.test.domain.net>
site.stag.domain.net <http://site.stag.domain.net>
site.prod.domain.net <http://site.prod.domain.net>
I have configured one host to send the FQDN via dhclient. dnsmasq errors
Ignoring domain test.domain.net <http://test.domain.net> for DHCP
host name site
I want that these 3 hosts to get an IP via DHCP and being accessible via
"site.test.domain.net <http://site.test.domain.net>" and "site.test".
Can someone 1) tell me if this is possible with dnsmasq and 2) point me
into the right direction how to configure this.
Best regards, Christoph Gaitzsch
iCADA GmbH, Bahnhofstr. 63, 67059 Ludwigshafen, Germany.
Ludwigshafen HRB 4748, Geschäftsführer: Tobias Ferber, R. Federici
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...