Menu

#4761 Vestigial dns-nameservers enter left in interfaces file

1.791
closed-fixed
nobody
8
2016-05-27
2016-05-26
Rip1980
No

In 1.800 and before, if dns enteries are created for an interface in the GUI and saved, it works as expected.

However, if later, you were to delete the DNS servers enteries in the GUI and save, a vestigial dns-nameservers line is left in place in the interfaced file.

If then the machine is rebooted, the empty "dns-nameservers" line will pervent that interface from starting, and generally that tends to be the primary access to the machine, resulting in manual edit to the interfaces file to fix and restart the network services.

I know it's a fringe case, but sometimes we don't want lab systems sneaking out the corporate network. :)

Discussion

  • Jamie Cameron

    Jamie Cameron - 2016-05-26

    So did you remove all the nameservers on this system, causing an empty dns-nameservers like to be left behind?

     
  • Rip1980

    Rip1980 - 2016-05-27

    Yes, create DNS enteries in
    Networking>Network Configuration> Hostname and DNS Client>DNS Servers
    Save and it's created and works as it should.
    Now delete those enteries, and save, you will have a left over dns-nameservers line in the interfaces file.

    If the machine is then restarted with that extra dns-nameservers line with no DNS server addresses behind it, it will not start the interface (on Ubuntu and Centos7 anyway, probably most others.)

    Trying to bring up the interface manually/locally on a KVM will flag the interfaces file with an error on Line x, something to the effect dns-nameservers can not be blank.

    Manually deleting the dns-nameservers line (or commenting it out with a #) and restarting the network service restores the system.

     
  • Jamie Cameron

    Jamie Cameron - 2016-05-27
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2016-05-27

    Ok, this will be fixed in the next (1.810) Webmin release.

     

Log in to post a comment.