Deploying a custom image on a new droplet, virtualmin/webmin on the image notices a new IP address assigned to the droplet. When this happens, on first login to virtualmin/webmin shows below message on the page -
YOUR SYSTEM’S PRIMARY IP ADDRESS APPEARS TO HAVE CHANGED FROM XXX.XXX.XXX.XX TO XX.XXX.XXX.XX. VIRTUAL SERVERS USING THE OLD ADDRESS MAY BE UNREACHABLE OR SERVE THE WRONG WEB CONTENT.
When I click on Update my IP address, it would then change IP address of the system and everything works fine. I want to achieve the same thing using a command so I can run this script over system boot process.
Does anyone know how to do this using a command on virtualmin/webmin?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello there,
I know it’s been a while but one of these commands should do the trick for you
- virtualmin modify-all-ips
or
- virtualmin modify-all-ips --default-old-ip --detect-new-ip >/tmp/modify-ips.out 2>&1
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.