Script to add Virtual Hosts


I have had a poke around webmin / virtualmin but cannot seem to find where the data for alias hosts (domain pointers) is maintained.

I am looking for a way to create a script that can read a text file or array and automatically append the listed domains as hosts to the selected domains.

Any suggestions ???



After some more digging around, it appears that the following domain info is added for an alias:

  1. alias domain urls added to Services/Config Website/Network & Addresses - “Alternate Virtual Server Names” (i.e.,
  2. new zone file created in /var/named for alias domain ( )
  3. zone added to /etc/named.conf for alias domain