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

Querying the DNS server

To test the DNS server, at the command line type:

[root@server2 root]# nslookup
[root@server2 root]# nslookup
[root@server2 root]# nslookup
[root@server2 root]# nslookup

These commands should return:	canonical name =

Alternatively, since nslookup seems to disappear in the future, you can use the dig command to check the DNS.

[root@server2 root]# dig

Now that the DNS is working, configure any computer in your network. Set it in the same subnet-mask and pick any unused IP address in table 9.1. Note that it can be a windows machine. In the network properties, now include the DNS IP.

Look at my example
Internet Protocol (TCP/IP) Properties
Fig 9.26

Here I am using a Windows machine. I set the IP address and the Subnet mask. I also set the DNS number.

Now, if I use the windows machine and point my browser to:

I should be able to get to my web server's home page.

To speed up the request you need to enter the Gateway on your client side. Congratulations for successfully setting up your DNS server, you can even point the domain name from your registrar to your newly set up DNS server.

As I mentioned earlier, you can now use the DNS server to do virtual hosting and become an ISP. I would be proud to know that you are actually running a data center. Keep in touch, I can be found at