Custom Search

Ubuntu install dns server

Ubuntu uses named as its DNS or Internet domain name system server. Named is part of BIND 9 distribution from ISC. So, to install Ubuntu dns server, you must install bind software package. Luckily, there is no hassle installing software package in Ubuntu. There are more than one great package management system in Ubuntu that you can use.




Before we begin the bind9 installation, we better run apt-get update to resynchronize the package index files from the sources. So here we go:




luzar@ubuntu:~$ sudo apt-get update
[sudo] password for luzar:
Get:1 http://security.ubuntu.com hardy-security Release.gpg [189B]
Ign http://security.ubuntu.com hardy-security/main Translation-en_US
Hit http://us.archive.ubuntu.com hardy Release.gpg.........
Fetched 964kB in 13s (69.6kB/s)Reading package lists...
Done



After running the update, we have to run the apt-get upgrade command to update software in our system to the latest update. See an example below:




luzar@ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
.........
Setting up mysql-server (5.0.51a-3ubuntu5.4) ...
Setting up libxml2 (2.6.31.dfsg-2ubuntu1.3) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place



After the upgrade is finished, we can run apt-get install to install bind9 software package. Here is how the real installation go:




luzar@ubuntu:~$ sudo apt-get install bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libbind9-30 libdns35 libisc35 libisccc30 libisccfg30
Suggested packages: resolvconf
The following NEW packages will be installed: libdns35 libisc35
The following packages will be upgraded:
bind9 libbind9-30 libisccc30 libisccfg30
4 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 978kB of archives.
After this operation, 1651kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com hardy-updates/main libisc35
1:9.4.2.dfsg.P2-2 [127kB]
Get:2 http://us.archive.ubuntu.com hardy-updates/main libdns35
1:9.4.2.dfsg.P2-2 [494kB]
Get:3 http://us.archive.ubuntu.com hardy-updates/main bind9
1:9.4.2.dfsg.P2-2 [268kB]
Get:4 http://us.archive.ubuntu.com hardy-updates/main libisccc30
1:9.4.2.dfsg.P2-2 [23.1kB]
Get:5 http://us.archive.ubuntu.com hardy-updates/main libisccfg30
1:9.4.2.dfsg.P2-2 [38.5kB]
Get:6 http://us.archive.ubuntu.com hardy-updates/main libbind9-30
1:9.4.2.dfsg.P2-2 [27.5kB]
Fetched 978kB in 15s (63.8kB/s)
Selecting previously deselected package libisc35.
(Reading database ...
18940 files and directories currently installed.)
Unpacking libisc35 (from .../libisc35_1%3a9.4.2.dfsg.P2-2_i386.deb)
...
Selecting previously deselected package libdns35.
Unpacking libdns35 (from .../libdns35_1%3a9.4.2.dfsg.P2-2_i386.deb)
...
Preparing to replace bind9 1:9.4.2-10
(using .../bind9_1%3a9.4.2.dfsg.P2-2_i386.deb
) ...
* Stopping domain name service... bind [ OK ]
Unpacking replacement bind9 ...
Preparing to replace libisccc30 1:9.4.2-10
(using .../libisccc30_1%3a9.4.2.dfsg.P2-2_i386.deb)
...
Unpacking replacement libisccc30 ...
Preparing to replace libisccfg30 1:9.4.2-10
(using .../libisccfg30_1%3a9.4.2.dfsg.P2-2_i386.deb)
...
Unpacking replacement libisccfg30
...
Preparing to replace libbind9-30 1:9.4.2-10
(using .../libbind9-30_1%3a9.4.2.dfsg.P2-2_i386.deb)
...
Unpacking replacement libbind9-30
...
Setting up libisc35 (1:9.4.2.dfsg.P2-2)
...
Setting up libdns35 (1:9.4.2.dfsg.P2-2)
...
Setting up libisccc30 (1:9.4.2.dfsg.P2-2)
...
Setting up libisccfg30 (1:9.4.2.dfsg.P2-2
) ...
Setting up libbind9-30 (1:9.4.2.dfsg.P2-2
) ...
Setting up bind9 (1:9.4.2.dfsg.P2-2
) ...
Installing new version of config file /etc/apparmor.d/usr.sbin.named
...
Reloading AppArmor profiles : done.
* Starting domain name service... bind [ OK ]
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
luzar@ubuntu:~$



We have successfully installed bind9 package. Now, let's see what version we got:




luzar@ubuntu:~$ named -vBIND 9.4.2-P2
luzar@ubuntu:~$



So that's it. We already have bind9 package installed in our system. What to do next is to configure our dns server.

1 comment:

Please keep comment relevant and strictly no spam will be tolerated. Thank you.