Hello,
I am using virtualmin GPL CLI for batch processing of sites on the server. When I do
"virtualmin create-domain --domain somename.net --pass XXPASSXX --default-features --shared-ip <some-secondary-ip>", I have following problems:</some-secondary-ip>
- Apache Vhost is created on this specified shared IP but DNS zone still has primary interface IP for all records.
- I can not specify primary interface IP becase "it's not shared" (how come ?) - so in my script I have to make special case for primary IP. Wouldn't it make more sense to recognize primary interface IP as possible argument to --shared-ip as well, because it is shared?
For (1), make sure that you don't have a custom IP address set for DNS records at System Settings -> Virtualmin Configuration -> Networking settings.
For (2), we'll allow this in the next release.