• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Own DNS Server with BIND on Ubuntu with Web Interface

By Abhishek Ghosh November 5, 2014 6:14 pm Updated on November 5, 2014

Own DNS Server with BIND on Ubuntu with Web Interface

Advertisement

Running own DNS Server is not a small matter. Here is a small guide for configuring own DNS Server with on Ubuntu with Web Interface on Cloud. Any Cloud Server cluster or node can work as DNS Server. The disadvantages outweigh advantages, that is the basic reason why most use some third party DNS Server for domain management. DNS Server should be from a reliable service provider.

 

Why Own DNS Server with BIND on Ubuntu with Web Interface is Not Commonly Used?

 

Usually vanity name server is used, except for a very big setup – like Google Inc, Wikipedia, almost all the web hosts, none uses own DNS server to avoid various security related issues like DNS Hijacking, DNS Poisoning, Advanced Persistent Threat and hundreds of dangerous problems which can lead to full blacklisting of the Own DNS Server’s IP. In other words, this is not a guide which works as replacement for DNS Server service provided by Rackspace Cloud DNS, CloudFlare etc. We would be happy to run own DNS Server for own purpose to fully get rid of vendor locking related issues. However, we can solve the Non-Authoritative Answer in other way.

Own DNS Server with Bind on Ubuntu with Web Interface

 

Own DNS Server with BIND on Ubuntu with Web Interface

 

The IP/Domain should have a wildcard SSL Certificate in ideal situation. There are lot of Free/Open Source DNS Server Softwares, BIND is most commonly used. There is a way to get a web interface too. BIND stands for Berkeley Internet Name Domain. PowerDNS Free DNS Server is used for Mac and Windows. OpenStack Nova has a DNS Server function. DHCP is needed in order for MAAS to boot and control nodes. DigitalOcean has an easy way to have servers from various regions across the globe under one account. Ideally, that is what is required for a practical Own DNS Server with BIND on Ubuntu. Most commonly written guides to have own DNS Server with Bind is for one server configuration, which is written below.

Advertisement

---

On a fresh instance, first update and upgrade and install BIND :

Vim
1
2
apt-get update -y && apt-get upgrade
apt-get install bind9 bind9utils bind9-doc

Next, we need to edit the Local File :

Vim
1
nano /etc/bind/named.conf.local

Local File is a name, it is closer to our Apache’s vHost file or Nginx’s Default file. We need to edit accordion to our need :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
# replace thecustomizewindows.com with your domain name
zone "thecustomizewindows.com" {
        type master;
        file "/etc/bind/zones/thecustomizewindows.com.db";
// allow-transfer { 12.68.192.1; }; // test it
        };
 
# reverse DNS. replace 12.68.192 with your network address in reverse notation
zone "12.68.192.in-addr.arpa" {
     type master;
     file "/etc/bind/zones/rev.12.68.192.in-addr.arpa";
};

Second file is for the Forwarders :

Vim
1
2
3
4
5
6
nano /etc/bind/named.conf.options
# Edit
forwarders {
      # Replace the IP with the provider's DNS server
      123.123.123.123;
};

Actually in real a directory is created and db.local is copied :

Vim
1
mkdir -p /etc/bind/zones && cp /etc/bind/db.local /etc/bind/zones/db.thecustomizewindows.com

This file, finally should look like this :

Vim
1
2
3
4
5
6
7
8
9
10
11
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
@       IN      AAAA    ::1

That ns2 should be another server with same kind of config. It is a dummy example.
As basically the dns server provider = you ; usually the file /etc/bind/db.127 closely matches to the need for reverse zone config, we need; we usually copy :

Vim
1
cp /etc/bind/db.127 /etc/bind/zones/db.12.68.192

As we are providing random number for the IP, you should understand – an IP address of 123.45.6.7 would be flipped to look like 7.6.54.321. The first three are taken (7.6.54) and in-addr.arpa is added. So finally it would look like – 7.6.54.in-addr.arpa. Do with any website with a dedicated IP.

The file we copied, db.12.68.192 should look like this :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$TTL    604800
@       IN      SOA    thecustomizewindows.com. admin.thecustomizewindows.com. (
                              5         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
 
; Name servers
        IN      NS      ns1.thecustomizewindows.com.
        IN      NS      ns2.thecustomizewindows.com.
 
; PTR records
1       IN      PTR      ns1.thecustomizewindows.com.
2       IN      PTR      ns2.thecustomizewindows.com.
3       IN      PTR      www.thecustomizewindows.com.

Then restart BIND :

Vim
1
/etc/init.d/bind9 restart

We need to edit /etc/resolv.conf ; it should contain stuff like this :

Vim
1
2
search thecustomizewindows.com
name server 12.68.192.1

Webmin includes a module for BIND for the web interface. There are lot of third party softwares like this :

Vim
1
https://github.com/jmazzi/dns-control

For MaaS and DCHP, you can follow the Ubuntu’s guide :

Vim
1
2
https://maas.ubuntu.com/docs/install.html
https://maas.ubuntu.com/docs/configure.html

Do not use other’s Domain name or IP for testing purpose. This is illegal work. You can test with your own serve without actually changing the name server against domain register’s control panel.

Tagged With bind dns web interface , ubuntu bind ui , dns server with web ui , dns server web ui , dns server BIND web interface , bind9 webinterface ubuntu , bind9 web interface , bind webui ubuntu , bind web interface , bind web gui
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Own DNS Server with BIND on Ubuntu with Web Interface

  • Effectiveness of Flushing DNS Cache to Prevent DNS Cache Poisoning and Spoofing

    Effectiveness of Flushing DNS Cache to Prevent DNS Cache Poisoning and Spoofing Discussed in Details in Plain English Making Readable to All.

  • What is DNS Poisoning or DNS Spoofing?

    DNS poisoning is a situation created where a malicious or unwanted data is pushed from a Domain Name Server’s cache.

  • DNS Provider’s List : Cloud DNS, DDNS and Free DNS

    Here is DNS Provider’s List including Cloud DNS, Managed DNS, DDNS and Free DNS Services. We Need a DNS Service for Various Reasons including adding various records.

  • DNS Provider’s List : Cloud DNS, DDNS and Free DNS

    Here is DNS Provider’s List including Cloud DNS, Managed DNS, DDNS and Free DNS Services. We Need a DNS Service for Various Reasons including adding various records.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy