How to set 'search' and 'domain' options in instances' resolv.conf by Eucalyptus

Asked by Stanislav Savulchik

Hello,

I experience the following problem:
when I start an instance of Lucid image it gets the hostname like ip-192-168-1-2. Later when I do
$ sudo apt-get update

I get the message
sudo: unable to resolve host ip-192-168-1-2

Actually I can fix this by changing resolv.conf to:
domain vtcloud. # my private dns zone
search vtcloud
nameserver 192.168.1.1 # my private dns with 'vtcloud' zone configured and A-record for ip-192-168-1-2.vtcloud.

Previously resolv.conf looked like:
nameserver 127.0.0.1 # injected by Eucalyptus
nameserver 192.168.1.1 # injected by Eucalyptus according to my dns configuration in Web-UI of UEC

Nevertheless, a few minutes later my new resolv.conf is reverted to default configuration by Eucalyptus.

So, I just want to find out Is there any way to set 'domain' and 'search' options in instances' resolv.conf automatically by Eucalyptus?

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu eucalyptus Edit question
Assignee:
No assignee Edit question
Solved by:
Stanislav Savulchik
Solved:
Last query:
Last reply:
Revision history for this message
Torsten Spindler (tspindler) said :
#1

Not sure if this answers your question directly, but maybe you want to
configure DYNAMIC_DNS with eucalyptus? See
http://open.eucalyptus.com/wiki/DynamicDNSGuide for more details.

Revision history for this message
Stanislav Savulchik (savulchik) said :
#2

Unfortunately, I failed to make Dynamic DNS Server work earlier.
That is why I'm using my own DNS server with static mappings for VMs.

Revision history for this message
Stanislav Savulchik (savulchik) said :
#3