TurnKey Linux Virtual Appliance Library

changing domainname and hostname safely??

wayward4now's picture

What is the preferred method of changing domainname and hostname safely?? I'm a bit gunshy after blowing up proxmox server and the install turnkey containers wi data. I had to re-install to bare metal to recover. Thanks!! Ric

Ric Moore's picture



Jeremy Davis's picture

Sorry Ric

Sorry I have been a bit slow getting to this one. Thanks for your patience.

Ubuntu and Debian use the /etc/hostname file as well as /etc/hosts

But that won't necessarily mean that you will be able to contact them via the hostname just because you set it. Assuming you wish to use a hostname to connect to your appliance within you LAN then you will need a DNS server. It's relatively easy to set one up. There are plenty of tutorials about online. All you will need to do is add whatever servers you want to contact into it and set it to forward requests to whoever your current DNS is handled by. That way it will check your local DNS first, then any not available there will be forwarded.

Ric Moore's picture


I had wondered about that and didn't want to blow everything up ...again! :) I'll start a new thread about IP addresses.  Ric

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)