Adding a virtual Domain to the DNS server (virtual host)
Virtual domain is the way of doing business. This avoids setting up a machine for each domain name. And of course, this is the way it is being done in those big data centers around the world.
Let's go back to Webmin to configure a new domain.
Configuration of virtual domain:
Onetraining.net
Adding the zone / Forward Zone!
- Click on create new master zone
- Zone Type: forward
- Domain name/Network: onetraining.net
- Record file: Automatic
- Master Server: server2.netcontrol.org [/] Add NS record for Master Server?
- Email address: root@netcontrol.org
- Use Zone template: No
- Refresh time: leave as default
- Expiry time: leave as default
- IP address for template records: leave as blank
- Transfer retry time: leave as default
- Default time-to-leave: leave as default
- Click on create
- Return to zone list
Edit the master zone
*Adding the address:
- Add address record /Enter the IP address as follows: (A)
- Name: onetraining.net.
- Time-To-Leave: Default
- Address: 168.34.26.59 (This is the address for the virtual domain; make sure this address is not in use. Follow the instruction below to bind the host with )
- Click on create
Fig 9.27 After entering the address, it should look like this
- Return to record type
Add Name Server Records (NS)
(Note, this record may be already updated)
- Zone Name: onetraining.net.
- Time-To-Leave: Default
- Name Server: server2.netcontrol.org.
- Click on create
Fig 9.28 Note that the record is stored under the master domain.
- Return to record types
Adding CNAME Alias
Alias Records (CNAME)
--------------------------------------------------------------
- Name: www
- Time-To-Leave: Default
- Real Name: onetraining.net.
- Click on create
----------------------------------------------------------
- Name: mail
- Time-To-Leave: Default
- Real name: onetraining.net.
- Click on create
-----------------------------------------------------------
- Name: ftp
- Time-To-Leave: Default
- Real Name: onetraining.net.
- Click on create
Fig 9.29 Your aliases should look like this
- Return to record types
Return to record types
Add Mail Exchange Record (MX)
- Name: onetraining.net.
- Time-To-Leave: Default
- Mail Server: netcontrol.org.
- Priority: 11
- Click on create
Fig 9.30 Note that the mail Mx record is stored and handled by master domain.
- Return to zone list
- Click on apply changes
We just finished adding a virtual forward zone.
|