Discussion:
[Dnsmasq-discuss] dnsmasq used in AWS
w***@comcast.net
2016-01-08 13:49:49 UTC
Permalink
Hi Simon;

Thanks for the response below. I have a following question for 2.

1: I am thinking about how best to utilize dnsmasq in an amazon cloud deployment.
I don't think I can circumvent Amazons DHCP system. Any idea how I'd mate the aws
DHCP system to the dnsmasq dns solution ?? Perhaps this has come up before.

thanks,
Walter


----------------------------------------------------------------------

Message: 1
Date: Thu, 7 Jan 2016 20:55:55 +0000
From: Simon Kelley <***@thekelleys.org.uk>
To: dnsmasq-***@lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] DHCP using DNS...can I do the following
?
Message-ID: <***@thekelleys.org.uk>
Content-Type: text/plain; charset=windows-1252

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

It do can exactly that.

The configuration goes in dhcp-host statements

dhcp-host=mickey,192.168.0.10

ensures that when a DHCP request turns up from a macine idetifying
itself as "mickey", it gets given address 102.168.0.10 and

"mickey" 192.168.0.10

gets added to the DNS.


Cheers,

Simon.
I am building a system containing many virtual machines. Each
virtual machine will have a unique hostname, and the hostname
will be included in the domain name. The system will live on its
own subnet. The system could change over time (more machines
added to system)
I need to replicate this system in many different locations and am
looking for a way to simplify the management of IP addresses
within the subnet, and create a similar look and feel across all
the installations.
I?ve heard very nice things about dnsmasq?thus am considering it.
I am wondering if the dnsmasq DHCP server functionality interacts
with the dnsmasq DNS functionality so that IP addresses can
be based on Hostname contained in the DHCP parameter instead of MAC
addresses (I don?t have control over mac addresses, nor do I want
to). Basically when a dhcp request from a host hits the dhcp
server, the server checks with dnsmasq dns first to see if that
hostname is contained in file containing the
address=/myhost/<ipaddress>
information. If so, it responds with the ip address specified in
DNS. If not, it provides a new ip address.
Basically, I want to control dns resolution and ip assignment in a
single place (at the dns/dhcp server) as opposed
to having N number of machines with /etc/host files.
Thanks in advance, Walter
Simon Kelley
2016-01-09 18:31:11 UTC
Permalink
My experiecne of AWS is limited to S3, sorry. Are you sure that AWS's
DHCP doesn't provide this facility out-of-the-box?

Cheers,

Simon.
Post by w***@comcast.net
Hi Simon;
Thanks for the response below. I have a following question for 2.
1: I am thinking about how best to utilize dnsmasq in an amazon
cloud deployment. I don't think I can circumvent Amazons DHCP
system. Any idea how I'd mate the aws DHCP system to the dnsmasq
dns solution ?? Perhaps this has come up before.
thanks, Walter
----------------------------------------------------------------------
Message: 1 Date: Thu, 7 Jan 2016 20:55:55 +0000 From: Simon Kelley
[Dnsmasq-discuss] DHCP using DNS...can I do the following ?
text/plain; charset=windows-1252
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
It do can exactly that.
The configuration goes in dhcp-host statements
dhcp-host=mickey,192.168.0.10
ensures that when a DHCP request turns up from a macine idetifying
itself as "mickey", it gets given address 102.168.0.10 and
"mickey" 192.168.0.10
gets added to the DNS.
Cheers,
Simon.
I am building a system containing many virtual machines. Each
virtual machine will have a unique hostname, and the hostname
will be included in the domain name. The system will live on its
own subnet. The system could change over time (more machines
added to system)
I need to replicate this system in many different locations and
am looking for a way to simplify the management of IP addresses
within the subnet, and create a similar look and feel across all
the installations.
I?ve heard very nice things about dnsmasq?thus am considering it.
I am wondering if the dnsmasq DHCP server functionality interacts
with the dnsmasq DNS functionality so that IP addresses can
be based on Hostname contained in the DHCP parameter instead of
MAC addresses (I don?t have control over mac addresses, nor do I
want to). Basically when a dhcp request from a host hits the dhcp
server, the server checks with dnsmasq dns first to see if that
hostname is contained in file containing the
address=/myhost/<ipaddress>
information. If so, it responds with the ip address specified in
DNS. If not, it provides a new ip address.
Basically, I want to control dns resolution and ip assignment in
a single place (at the dns/dhcp server) as opposed
to having N number of machines with /etc/host files.
Thanks in advance, Walter
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...