Adding a new domain in Webmin + Virtualmin

For any of your domains, create the registry subsidiary NS (NS child).

Suppose that for domain.com will be:

ns1.domain.com 95.211.109.73

ns2.domain.com 95.211.111.77

 

Create domain:

 

Then, in the Virtualmin, click the Create Virtual Server, choose the option New virtual server type: Top-level server for the first domain (or when you need to create a separate account) or Sub-server for all subsequent domain. AND can fill the following fields:

 

+ New virtual server details

 

Domain name: domain.com;

 

Adminstration password: enter password;

 

Server Configuration template: select a template if available, or leave the Default Settings.

 

Administration username: write the name of the user who creates a domain, otherwise the name will automatically appear on the domain name.

 

+ IP address and forwarding

 

Network interface: Here are the IP on which the domain will be created.

 

Click Сreate server.

 

DNS settings:

 

Select to Virtualmin in paragraph Server Configuration => DNS Records:

 

We choose the "NS - Name Server" and click on "Create Record of Type"

 

In the "Name Server DNS name" specifies the name of the server with the point at the end, for example: ns1.domain.com. and

 

click on the button "Create".

 

Repeat the above procedure for ns2.domain.com.

Now it is necessary to create an "A" record for each of the NS server for this:

We choose the "A - IPv4 Address" and click "Create Record of Type"

 

Repeat the above procedure for NS2 with the IP address 95.211.111.77

As a result of actions taken DNS Record table will have the following form:

 

Templates

 

If you want to create dependent NS for all domains in the future, we need to create the template. You can do this as follows:

 

in Virtualmin in choosing + System Settings => Server Templates => Create a template from the default settings.

 

Specify the following options:

 

Template name: domain (template name);
For use by: Put all the checkboxes:

Initially selected template for top-level servers ?: Yes;
Initially selected template for sub-servers ?: Yes;

 

click Create.

 

We choose from the list template created domain.

 

From the drop-down list Edit template section: choose BIND DNS and fills in the fields.

 

BIND DNS records for new domains: choose an option Records below and enter into the field:

 

@ IN NS ns1.domain.com. (with the dot at the end)

@ IN NS ns2.domain.com. (with the dot at the end)

 

Click Save.

 

Now when you add a new domain, these NS and will be listed automatically.

Now to add the domain will be enough to Virtualmin-in click Create Virtual Server, install the virtual server type Sub-server and fill in the following fields:

 

+ New virtual server details

 

Domain name : domain2.com;

 

+ IP address and forwarding

 

Network interface: user IP on which the domain will be created.

 

All the approaches mentioned in the main domain will be relevant to all domains for which he is listed as a Parent server.

 

Was this answer helpful?

 Print this Article

Also Read

How to add cron?

Add cron can be made as follows: Insert Webmin => System -> Scheduled Cron Jobs ->...

How to move MySQL database (Backup and Restore) in Webmin + Virtualmin?

Creating a backup    To create a backup, do the following:   Virtualmin => domain.com...

Setting the DNS wildcards

Click Webmin => Server => BIND DNS Server.   In the window looking for a little...

How to create a new E-mail address?

To create an E-mail address in the panel Webmin need to do the following steps:- Pick up the left...

Settings backups to FTP-server

In Virtualmin choose + Visualize / Restore => Scheduled backup and fill in the following...