TurnKey Linux Virtual Appliance Library

DNS configuration set through Webmin lost on reboot

jdwfly's picture

Each time I restart my virtual machine, it loses my DNS settings. I set them using the Network Configuration->Hostname and DNS Client web interface. I know how to set them manually, but I was hoping that there might be a simple fix for this.

Turnkey LAMP Appliance

Liraz Siri's picture

I can't reproduce this

You seem to have found a bug in Webmin's Network Configuration module. Instead of editing /etc/network/interfaces it edits /etc/resolv.conf.

I'll notify Webmin developers and I also filed a bug report about this in our bug tracker (you can subscribe to receive update notifications): https://bugs.launchpad.net/turnkeylinux/+bug/371983

Meanwhile you have two options, use the configuration console to configure the network and DNS (Advanced menu->Networking->static IP), or configure it manually by editing /etc/network/interfaces:

auto eth0
iface eth0 inet static
Update: filed a bug in Webmin's bug tracker.

recode's picture


a webmin developer said in the next Webmin release, any dns-nameservers entry in /etc/network/interfaces will be updated when changing nameservers. I thought this was a bug but i didn't say anything i just manually edit it lol
jdwfly's picture


Thank you for such a quick reply. I was assuming it was a bug with Webmin, but I wanted to check here first just in case. I thought it may have been a setup issue.

btw, these appliances are a time-saver. I will be deploying one very soon for one of my organization's major websites. Currently I am using a LAMP appliance with a drupal website during the development cycle. I know that I could use the drupal appliance but I like to do the updates as soon as they come out. Keep up the good work.
Guest's picture

DNS configuration set through Webmin lost on reboot

This bug is still occuring in the turnkey-core-12.0rc2-squeeze-x86-vmdk download.

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)