How to setup DNS using Webmin

Posted Thursday, 04 March 2010 at 03:39 by Andrew Liu
Tagged: linux | fedora | networking | dns
Read more blogs...

 

OS: Fedora 10

 

If you're like me, you've setup DNS many times before on many different machines, but its one of those things that never quite stick in your head.  Its a bit like knowing that somewhere in Year 9, you've done Simpsons Rule for calculus, but if you were asked to prove it, you'd have no idea.  Its just one of those useless wonders, what you encounter in a blue moon.  Of course, if you're a system administrator full time you are probably exposed to this quite often, but for me, I just do it when needed.  And everytime I need to do it, I need to google it.  Well, time to write it down and bookmark it!

 

Why Webmin?

 

Webmin makes certain things easier, especially tedious system administration tasks that you only do once in a blue moon.  DNS is one of those things.  For the following, lets assume that you are creating a DNS entry for your new domain "yourdomain.com".  Remember, this is without the "www" part. 

 

Create a Master Zone

 

1) Webmin menu on the left, click on "Servers", then click on "BIND DNS Server".  This will open up the BIND DNS Server Page.  If you do not have this, then you do not have BIND setup on your machine.  You will need to install BIND by:

 

$ yum install bind

Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package bind.i386 32:9.5.1-1.P1.fc10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch          Version                     Repository        Size
================================================================================
Installing:
 bind          i386          32:9.5.1-1.P1.fc10          updates          3.3 M

Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
bind-9.5.1-1.P1.fc10.i386.rpm                            | 3.3 MB     00:04
============================== Entering rpm code ===============================
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : bind                                                     1/1
=============================== Leaving rpm code ===============================

Installed:
  bind.i386 32:9.5.1-1.P1.fc10

Complete!

 

Once installed BIND, you will need to refresh the Webmin modules - on the left hand menu towards the bottom, click on "Refresh Modules".  Then log out, log back in, and the BIND DNS menu option will be there.

 

2) Under the "Existing DNS Zones" click on "Create master zone".

3) Fill out the following:

  - "Domain name / Network": yourdomain.com

  - "Master Server" : yourdomain.com

  - "IP address for template records": [ your external IP address as provided to you (xxx.xxx.xxx.xxx) ]

  - Click on "Create"

4) This will take you to the "Edit Master Zone" page. 

 

Create Address Records (A)

 

1) Click on "Address"

2) Fill out the following:

  - "Name" : [ leave this blank ]

  - "Address" : [ your IP address ]

  - Click on "Create" 

3) Fill out the following:

  - "Name" : www

  - "Address" : [ your IP address ]

  - Click on "Create"

4) Fill out the following:

  - "Name" : mail

  - "Address" : [ your IP address ]

  - Click on "Create"

5) Fill out the following:

  - "Name" : ftp

  - "Address" : [ your IP address ]

  - Click on "Create"

6) Fill out the following:

  - "Name" : ns1

  - "Address" : [ your IP address ]

  - Click on "Create"

7) Fill out the following:

  - "Name" : ns2

  - "Address" : [ your IP address ]

  - Click on "Create"

8) You can keep doing this for more names that you want to use.  These names are then used when someone types in "name.yourdomain.com".  Essentially, these are subdomains that you are setting up, but you are just pointing them to the same server.

9) Once done, click on "Return to record types" at the bottom of the page.

 

Create NameServer Records (NS)

 

1) Click on "Name Server"

2) Fill out the following:

  - "Zone Name" : yourdomain.com. [note the trailing period is required here]

  - "Name Server" : ns1.yourdomain.com. [note the trailing period is required here]

  - Click on "Create"

3) Fill out the following:

  - "Zone Name" : yourdomain.com. [note the trailing period is required here]

  - "Name Server" : ns2.yourdomain.com. [note the trailing period is required here]

  - Click on "Create"

4) Once done, click on "Return to record types" at the bottom of the page.

 

Create Mail Exchange Record (MX)

 

1) Click on "Mail Server"

2) Fill out the following:

  - "Name" : yourdomain.com

  - "Mail Server" : mail.yourdomain.com

  - "Priority" : 10

  - Click on "Create"

3) Once done, click on "Return to record types" at the bottom of the page.

 

Allow Access

 

0) If you are not on the main options screen, click on the left hand menu "BIND DNS Server".

1) Click on "Zone Defaults"

2) Under "Default Zone Settings", "Allow queries from" box, select "Listed" and change the box from "localhost" to "any".  This will allow anyone to query your DNS server.

3) Click on "Save"

4) Click on "Return to zone list" at the bottom of the page.

5) Click on "Addresses and Topology".

6) Under "Global address and topology options", under "Ports and address to listen on", select "Listed below" and in the first row, make sure that "Default" is not selected, and the second radio box is selected.  In the text box there should be "53" indicating that we are running DNS on port 53.  In the "Address" column, change the value to "any" to allow anyone to access this port.

7) Click on "Save"

 

Restart

 

1) In the top right hand corner, "Stop BIND" and then "Start BIND" to restart the service.  DNS typically takes 72 hours to propogate, but more often than not, it takes less than an hour for local DNS servers to pick up.

 

 

Web News

Intuit reports strong Q1, small business demand and eyes midmarket firms
Intuit recently added a bevy of artificial intelligence features to its platform and is also moving upstream to midmarket companies.
--- 22 Nov 2019 08:48 AM

Pure Storage Q3 misses, Splunk beats
Pure Storage missed revenue estimates for Q3 and issued a weak outlook, while Spunk delivered strong results and upped its guidance.
--- 22 Nov 2019 08:37 AM

Twitter will finally let users disable SMS as default 2FA method
And it only took Twitter's CEO getting hacked to happen.
--- 22 Nov 2019 08:29 AM

Salesforce teases its emerging AI capabilities
At Dreamforce, the CRM powerhouse gave live demos of a fully-autonomous AI agent, the world's largest open-source language model and other tools on the horizon.
--- 22 Nov 2019 07:58 AM

Best gifts: Gadgets to get you fit and healthy
With the new year approaching, why not gently shift your focus toward good habits, health, fitness, and being kind to yourself?
--- 22 Nov 2019 06:03 AM

Company Blog


Search Behaviour

Posted Tuesday, 19 October 2010 at 05:58 by Andrew Liu


As an SEO provider, you have one main goal. Get your clients website to show up in search results fo...

Read more...



sm bus drivers missing in Device Manager

Posted Sunday, 18 April 2010
Updated Sunday, 24 February 2013 at 06:39 by Andrew Liu


When installing a new Windows XPinstallation, I seemingly always miss some drivers. One that trouble...

Read more...



Multiple Domains for SEO performance?

Posted Friday, 05 March 2010 at 23:13 by Andrew Liu


Online businesses and websites that cover a broad range of topics or one large topic are sometimes b...

Read more...



Tag Clouds - SEO or not?

Posted Thursday, 04 March 2010 at 04:34 by Andrew Liu


A tag cloud or word cloud is a visual depiction of tags or words related to a site, typically used t...

Read more...



Mozilla Thunderbird and Gmail IMAP Attachments Bug

Posted Wednesday, 03 March 2010 at 20:15 by Andrew Liu


I've been using Gmail since its early inception, and Iwas one of the first to utilise Gmail's IMAPfe...

Read more...



Read more blogs...