Previous Page | Next Page

  1. Agustin's Linux Manual
  2. Networks & Servers
  3. About the Author
  4. Table of Contents
  5. IP Addresses Networks and Subnets
  6. Network Classes
  7. IP Address in Decimal Notation
  8. Sub-netting
  9. Designing Subnets
  10. Allocating Subnets
  11. Defining Host Addresses
  12. Variable Length Subnet Mask
  13. Routing Protocols
  14. Classless Internet Domain Routing
  15. Servers - Chapter 9
  16. Apache Web Server
  17. Configuring Apache
  18. Uploading Web Pages
  19. Apache Overview
  20. MIMEMagic
  21. DNS Servers
  22. Welcome to Webmin
  23. Creating the Master Domain
  24. Adding the Reverse Zone
  25. Querying the DNS server
  26. Adding Virtual Domain to DNS Server
  27. Reverse Zone for Virtual Zone
  28. Binding IP Address for Virtual Domain
  29. Virtual Web Hosting
  30. DNS Security Options
  31. FTP Server
  32. Securing the FTP Server
  33. Email Server
  34. Postfix Configuration
  35. Dealing with Identical Users
  36. Configuring Email Clients
  37. Configuring Outlook
  38. Samba Server
  39. Configuring SAMBA Server
  40. The smb.conf File
  41. smb.conf Analysis
  42. Adding Users to Samba

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:

Adding the zone / Forward Zone!

  1. Click on create new master zone
  2. Zone Type: forward
  3. Domain name/Network:
  4. Record file: Automatic
  5. Master Server:     [/] Add NS record for Master Server?
  6. Email address:
  7. Use Zone template: No
  8. Refresh time: leave as default
  9. Expiry time: leave as default
  10. IP address for template records: leave as blank
  11. Transfer retry time: leave as default
  12. Default time-to-leave: leave as default
  13. Click on create
  14. Return to zone list

Edit the master zone

*Adding the address:
  1. Add address record /Enter the IP address as follows: (A)
  2. Name:
  3. Time-To-Leave: Default
  4. Address: (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 )
  5. Click on create
    Entering Address
    Fig 9.27 After entering the address, it should look like this
  6. Return to record type

Add Name Server Records (NS)

(Note, this record may be already updated)
  1. Zone Name:
  2. Time-To-Leave: Default
  3. Name Server:
  4. Click on create
    Entering Address
    Fig 9.28 Note that the record is stored under the master domain.
  5. Return to record types

Adding CNAME Alias

Alias Records (CNAME)

  1. Name: www
  2. Time-To-Leave: Default
  3. Real Name:
  4. Click on create
  1. Name: mail
  2. Time-To-Leave: Default
  3. Real name:
  4. Click on create
  1. Name: ftp
  2. Time-To-Leave: Default
  3. Real Name:
  4. Click on create
    Entering Aliases
    Fig 9.29 Your aliases should look like this
  5. Return to record types
Return to record types

Add Mail Exchange Record (MX)

  1. Name:
  2. Time-To-Leave: Default
  3. Mail Server:
  4. Priority: 11
  5. Click on create
    Entering Aliases
    Fig 9.30 Note that the mail Mx record is stored and handled by master domain.
  6. Return to zone list
  7. Click on apply changes
  • We just finished adding a virtual forward zone.