Coder Social home page Coder Social logo

DNS lost after reboot about webmin HOT 16 CLOSED

webmin avatar webmin commented on June 3, 2024
DNS lost after reboot

from webmin.

Comments (16)

stoufa06 avatar stoufa06 commented on June 3, 2024

@webmin, @jcameron , @swelljoe, @gandyman
Someone has fix this before?

from webmin.

jcameron avatar jcameron commented on June 3, 2024

This has been fixed for several versions now.

from webmin.

stoufa06 avatar stoufa06 commented on June 3, 2024

i have download the last version from github and i have diff net module with my current webmin installation but i have not find big difference between.
Can you tell me where is the fix because we are running custom version of webmin and i can not update from webmin.
Thanks

from webmin.

jcameron avatar jcameron commented on June 3, 2024

The fix is in the file net/linux-lib.pl . The commit 3695f7e implements most of it, but there have been other bugfixes since then.

from webmin.

stoufa06 avatar stoufa06 commented on June 3, 2024

Thank you for your response, i was searching in bad place. I am running centos 6.2
This is not webmin bug but it should detect that, also there might be an option to edit interface for PEERDNS.
the problem was from PEERDNS=yes inΒ /etc/sysconfig/network-scripts/ifcfg-eth0
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html

from webmin.

jcameron avatar jcameron commented on June 3, 2024

Unfortunately Webmin doesn't yet support setting PEERDNS in ifcfg-ethN files.

from webmin.

philmck avatar philmck commented on June 3, 2024

Still failing sometimes for me with Ubuntu 14.04.3 and Webmin 1.782. There must be another cause. I've checked that it's not caused by the hypervisor (KVM).

from webmin.

jcameron avatar jcameron commented on June 3, 2024

philmck - check if your network interface is configured using DHCP. That can cause the DNS settings to be overridden.

from webmin.

philmck avatar philmck commented on June 3, 2024

It's not using DHCP (at least, not according to webmin and my understanding of network/interfaces)

from webmin.

jcameron avatar jcameron commented on June 3, 2024

Is Webmin updating the PEERDNS or DNS lines in /etc/sysconfig/network-scripts/ifcfg-eth0 ? That should be fixed in the latest release, but only if you changed the DNS servers after upgrading.

from webmin.

philmck avatar philmck commented on June 3, 2024

That's a RedHat path and I'm on Ubuntu so no. But it is updating in dns-nameservers under eth0 in /etc/network/interfaces. I did notice though that IPv6 DNS settings are in the inet section rather than the inet6 section, which seems wrong.

The "post-up iptables-restore < /etc/iptables.up.rules" line is NOT being updated by webmin now but it's recognised if I put it in manually.

from webmin.

jcameron avatar jcameron commented on June 3, 2024

It looks like you have a different problem to the original poster then. Is your issue that /etc/resolv.conf is being over-written with the wrong nameservers on reboot?

from webmin.

iliajie avatar iliajie commented on June 3, 2024

Cockpit rewrites net-config files and probably resolve.conf as well. Do you use Cockpit?

from webmin.

philmck avatar philmck commented on June 3, 2024

My problem is DNS settings being lost on reboot, I'm not sure which files are causing that exactly. Resolv.conf is changing but I believe it's a symlink in Ubuntu and generated automatically. As far as I can tell the problem only happens now (in Webmin 1.782) after a forced "power loss" kind of reboot.

I'm not using Cockpit.

from webmin.

iliajie avatar iliajie commented on June 3, 2024

http://askubuntu.com/questions/157154/how-do-i-include-lines-in-resolv-conf-that-wont-get-lost-on-reboot

from webmin.

philmck avatar philmck commented on June 3, 2024

Thanks for your help qooob, but the consensus there seems to be to configure nameservers in /etc/network/interfaces. But the DNS settings in that file are changing in this situation and I suspect that's what causes resolv.conf to change in turn.

from webmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.