Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
		Network Troublshooting => Linux Servers Support => Topic started by: Mbondji on June 10, 2004, 11:58:49 AM
		
			
			- 
				I have tried to configure it the best way I could but when I test to see if the dns is working properly I get connection timed out or the server can not be reached. I also wanted to know whether is a must to have a connection on the internet before thinking of setting up a dns server or one can still do that offline.
 
 I hereby attach my named.conf file
 
 Nb: I want my dns server to have the ip 192.168.0.22  and my domain name as easyit.co.ke
 
 thank you in advance.
 
 
 
 
 ## named.conf - configuration for bind
 #
 # Generated automatically by redhat-config-bind, alchemist et al.
 # Any changes not supported by redhat-config-bind should be put
 # in /etc/named.custom
 #
 options {
 version "Bind";
 directory "/var/named";
 allow-transfer {
 192.168.0.22;
 };
 recursion no;
 fetch-glue no;
 forwarders {
 192.168.0.22;
 };
 auth-nxdomain yes;
 };
 controls {
 inet 192.168.0.22 port 10000 allow {
 localhost;
 mtest;
 easyit.co.ke;
 };
 };
 
 include "/etc/named.custom";
 
 include "/etc/rndc.key";
 
 
 
 zone "localhost" IN
 {
 type master;
 file "localhost.zone";
 allow-update { none; };
 };
 zone  "0.0.127.in-addr.arpa" IN {
 type master;
 file "named.local";
 allow-update {none;};
 
 };
 
 
 server 192.168.0.22 {
 transfers 1;
 keys {
 rndckey;
 };
 };
 logging {
 category default {
 default_syslog;
 };
 };
 
 
 
 
 zone "easyit.co.ke" {
 type master;
 file "/var/named/easyit.co.ke.hosts";
 };
- 
				Ur configuration definitely needs an internet connection. Other than that, u need to register ur domain as well.  U r configuring a master dns server. 
 
 For me if i want to configure a dns server working offline, i will prefer to create a caching server. In Fedora / Redhat, this is done for u when u install Linux in these distros.
- 
				your total configuration file of named.conf is wrong and it is against the concept/ rules.
 
 first you need to understand the concepts behind the dns & BIND.
 
 My sincerar suggestin is go through the webiste : isc.org or purchase the book titled DNS & BIND with latest edition. this books as considared the all time great in DNS even for newbibes and hard core tech also.
 
 Best of luck.
 
 Cheers