Menu

#5321 Shared IP is not honored when domain created from command line

1.930
open
nobody
None
5
2019-11-04
2019-11-01
Alex Klymov
No

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>

  1. Apache Vhost is created on this specified shared IP but DNS zone still has primary interface IP for all records.
  2. 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?

Discussion

  • Jamie Cameron

    Jamie Cameron - 2019-11-03

    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.

     
  • Alex Klymov

    Alex Klymov - 2019-11-04
    1. I dind't change anything manually. My settings are attached. Virtualmin 1.932. There are 10 additional shared IPs on server, after batch creation of about 40 domains on these 10 shared IPs all DNS zones were pointing to primary IP while apache vhosts were configured on correct shared IPs. I haven't seen that when using web UI.
     

Log in to post a comment.

Auth0 Logo