Assalamualaikum wr.wb
This article will discuss about how to Configure DNS server on Linux Debian ..
Things we need to know to make the DNS server configuration files that should be on linux is named: named.conf. Edit this file to configure the DNS Server .. With the server IP 192.168.1.1
in the following way:
To be able to edit the file named.conf debian package should be installed is a package bind or named by means of:
root @ server # apt-get install bind
after terinstalla named.conf file search by:
root @ server # locate named.conf
/ Etc / bind / named.conf
Then edit the file with the command:
root @ server # mcedit / etc / bind / named.conf
then add the configuration below into it:
zone "faith-tkj.com" {
type master;
file "/ etc / bind / zones / faith-tkj.com";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/ etc / bind / zones / forward.iman-tkj.com";
};
After that copy the file / etc / bind / db.local with the name / etc / bind / zones / faith-tkj.com and file / etc/bind/db.127 with the name / etc / bind / zones / forward.iman-TKJ . com by the way:
@ server root # cp / etc / bind / db.local / etc / bind / zones / faith-tkj.com
@ server root # cp / etc/bind/db.127 / etc / bind / zones / forward.iman-tkj.com
Then edit both files before are like below:
root @ server # mcedit / etc / bind / faith-tkj.com
TTL $ 604,800
@ IN SOA faith-tkj.com. root.iman-tkj.com. (
1; Serial
604 800; Refresh
86,400; Retry
2419200; Expire
604 800), Negative Cache TTL
;
@ IN NS tkj.com faith. # Replaced with the domain name you are using
@ IN A 192.168.1.1 # ip switch you are using
www IN CNAME @
root @ server # mcedit / etc / bind / forward.iman-tkj.com
TTL $ 604,800
@ IN SOA faith-tkj.com. root.iman-tkj.com. (
1; Serial
604 800; Refresh
86,400; Retry
2419200; Expire
604 800), Negative Cache TTL
;
@ IN NS tkj.com faith. # Replaced with the domain name you are using
1 IN PTR 192.168.1.1 # ip replaced with your
Then edit the file / etc / resolv.conf as below:
root @ server # mcedit / etc / resolv.conf
nameserver 192.168.1.1
Reload bind package in the following manner:
root @ server # / etc / init.d / bind restart
To use the varnish-cache.org repository and install varnish, do the following:
curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add -echo "deb http://repo.varnish-cache.org/debian/ squeeze varnish-3.0" >> /etc/apt/sources.listapt-get updateapt-get install varnish
If you want to install the older 2.1 version, replace varnish-3.0 with varnish-2.1 in the command above.
Varnish is distributed in the Debian package repositories, but the version there might be out of date, and we generally recommend using the packages provided by varnish-cache.org or packages from backports.debian.org.