Question regarding dynamic DNS and IP addresses


#1

Hi OpsCode mailing list people,

Don’t want to reinvent the wheel with home grown scripts built from scratch.
How are people out there in Chef land automating DNS in cloud environments?
Something spins up at random, it’s IP is auto-injected into DNS along with
some auto-generated hostname. Also the reverse. Something is torn down and
it’s DNS entry auto removed.
Looking for some slick tools and ideas.

Thanks in advance everyone.

Justin Franks

Lead Operations Engineer

SaaS, Cloud, Data Centers & Infrastructure

Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219

CM_Cert_Logo_Color


#2

We rolled our own for use in EC2:

But you are encouraged to use/contribute/criticize it. The documentation is decidedly lacking (for now) but the defaults will get you 90 percent of the way there (it is intended to be used with a wrapper cookbook). This was designed to work with VPC but it should work in other contexts. Basically it uses the Fog gem to build a zone file from the name tags in your EC2 environment. We have separate servers for “prod” and “stage” VPC subnets, but that shouldn’t be a requirement.

It probably wouldn’t be too hard to port it to other cloud environments. It’s just a matter of switching out a few API calls (Fog supports many other cloud providers).

On Jan 25, 2014, at 4:54 PM, Justin Franks justin.franks@lithium.com wrote:

Hi OpsCode mailing list people,
Don’t want to reinvent the wheel with home grown scripts built from scratch. How are people out there in Chef land automating DNS in cloud environments? Something spins up at random, it’s IP is auto-injected into DNS along with some auto-generated hostname. Also the reverse. Something is torn down and it’s DNS entry auto removed.
Looking for some slick tools and ideas.
Thanks in advance everyone.

Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219

<image001.png>

The original message is attached because it is signed.


#3

i dont know any standard tool, because there are so many dns providers.
Currently we use dynect, and the dynect cookbok provides lwrp for setting
up different RRs. We use it in our base recipe which applies the dynect
resources.
In past I have used internal bind9 for dns , where both bind9 zone updates
were done via chef,
cheers
ranjib

On Sat, Jan 25, 2014 at 1:54 PM, Justin Franks justin.franks@lithium.comwrote:

Hi OpsCode mailing list people,

Don’t want to reinvent the wheel with home grown scripts built from
scratch. How are people out there in Chef land automating DNS in cloud
environments? Something spins up at random, it’s IP is auto-injected into
DNS along with some auto-generated hostname. Also the reverse. Something is
torn down and it’s DNS entry auto removed.
Looking for some slick tools and ideas.

Thanks in advance everyone.

Justin Franks

Lead Operations Engineer

SaaS*, *Cloud, Data Centers & Infrastructure

Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219

[image: CM_Cert_Logo_Color]