Ask Your Question
1

Assign domain to private ip

asked 2013-08-28 04:05:19 -0500

mikey0000 gravatar image

We have openstack instances that we would like to have communicate via the domain names (because the internal ip's change whenever a box is rebooted and is out of our control), for example we have a production instance and a mysql instance and they are on their own domains and want to be able to connect to mysql from the production box. we are using bind9 and nova for dns with recursive. I've tried to find guides and looked at the documentation and not found anything that looks like it will do this, we setup everything using chef. The boxes external ip's are manually choosen but if we could override the setting of internal ip's and be able to set them ourselves this would also solve our problem.

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-08-28 22:52:15 -0500

mikey0000 gravatar image

updated 2013-08-31 17:17:22 -0500

Looks like the only way to achieve this is by using a dynamicDNS service with Designate or some other service. So the instances will update the dns whenever they are rebooted or their private ip changes. We've come up with a better solution, we have appended a more clearer domain to the hostname instead of .novalocal we are using a domain e.g mysql.example.com this can be changed in the nova conf by adding dhcp_domain="domain.com"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-08-28 04:05:19 -0500

Seen: 238 times

Last updated: Aug 31 '13