Update Virtual Server IP from the command line???

4 posts / 0 new
Last post
#1 Thu, 03/18/2010 - 15:32
BIG MIKE

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?

Thanks.

Thu, 03/18/2010 - 18:21
andreychek

Howdy,

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.

-Eric

Fri, 03/19/2010 - 07:22 (Reply to #2)
BIG MIKE

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 |
                     --no-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]
Fri, 03/19/2010 - 10:42
ronald
ronald's picture

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

Topic locked