Ask Your Question
2

How do I assign Static, Unique Hostnames to Internal IPs?

asked 2014-02-23 09:35:26 -0600

jaloren gravatar image

I am using openstack havana on CentOS 6.4 baremetal machines. I am using FlatDHCPManager with a single VLAN. There will be multiple tenants all using this VLAN. By default, when a tenant launches an instance, the instance hostname is identical to the instance's display name. Because tenants are not going to know about each other instances, it will be quite easy for two tenants to unknowingly launch instances where both instances have the same hostname. And indeed if you do an nslookup on the vlan, two or more A records are returned for the same IP address.

To avoid this problem, I want to be able to configure the compute nodes to assign a specific, static hostname for a given IP address. Ideally, I'd like to mimic the behavior an amazon VPC in this regard. In an amazon vpc, the hostname is built from the given IP address. For example, if the ip address is 10.0.50.5, then the hostname is ip-10-0-50-5.

I know that the Designate service would probably give me what I want and i'll do that if that's the only option. But I was really hoping for a simple configuration change to achieve this. Designate seems like a bit of overkill for what I would think is a fairly simple DNS use case.

That all said, if Designate is really the only option here, then I would really appreciate it if someone could point me to some instructions on how to set up Designate to do what I am asking for.

edit retag flag offensive close merge delete

Comments

Did you have any success with this? I also would like to replicate the behaviour of Amazon EC2 with respect to instance host naming convention.

EmmEff gravatar imageEmmEff ( 2014-04-06 09:53:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-06 10:27:44 -0600

jaloren gravatar image

Hi EmmEff,

I never found a workaround for this. The entire community was silent on this question.

Sorry to be the bearer of bad news.

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

3 followers

Stats

Asked: 2014-02-23 09:35:26 -0600

Seen: 589 times

Last updated: Apr 06 '14