Update Virtual Server IP from the command line???

is it possible to update the virtual servers ip address via command line?

Reason being, my isp changes my ip a dozen time a day, and I’d like to write a script(program) that instantly updates my virtual servers from the command line. Is this possible? and if so, how?



I haven’t tried what you’re trying to do using the command line tools before, but it’s worth a shot… if you run “virtualmin” from the command line, you’ll see a number of options you can use.

I think what you’re after would be accessible by running “virtualmin modify-domain”, which would allow you to change the IP address in there.


These are the available options which would I choose to update all domains and how exactly would I type it in. I’m new to linux. Forgive me for my ignorance. Thanks.

virtualmin modify-domain --domain domain.name

                    [--desc new-description]

                    [--user new-username]
                    [--pass new-password | --passfile password-file]
                    [--email new-email]
                    [--quota new-quota|UNLIMITED]
                    [--uquota new-unix-quota|UNLIMITED]
                    [--newdomain new-name]
                    [--bw bytes|NONE]
                    [--resel reseller|NONE]
                    [--ip address] | [--allocate-ip] |
                    [--default-ip | --shared-ip address]
                    [--ip6 address | --allocate-ip6 |
                    [--prefix name]
                    [--template name|id]
                    [--plan name|id | --apply-plan name|id]
                    [--add-exclude directory]*
                    [--remove-exclude directory]*
                    [--dns-ip address | --no-dns-ip]

would it not be easier and more practical to get a free account at dyndns or so?