Problem whith DNS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I decided to install a DNS server in my machine (name of the machine =
station22) which run under FC2. I have used for this 'bind'. I have created
a primary zone (name of domaine= alilou.fr).

In order to test if my server work well, I have used the commande 'host',
but I get this error:
[root@a22sys3 root]# host station22
;; connection timed out; no servers could be reached


And get these messages in the log file:

Dec  7 00:13:53 a22sys3 named[6977]: couldn't add command channel ::1#953:
not found
Dec  7 00:13:53 a22sys3 named[6977]: zone alilou.fr/IN: loading master file
alilou.fr.zone: file not found
Dec  7 00:13:53 a22sys3 named[6977]: running
Dec  7 01:13:54 a22sys3 named: starting of named succeeded


This mean that it does'nt found the zone file alilou.fr.zone. This file
exist in /var/named/chroot/var/named/ and in /var/named/


I give you the structure of some files if you need this:


/etc/named.conf:
********************************

// generated by named-bootconf.pl

options {
      directory "/var/named";
};

controls {
      inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/rndc.key";

zone "." IN {
      type hint;
      file "named.ca";
};

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; };
};


// added by Alilou (me) <-----
zone "alilou.fr" IN {
      type master;
      file "alilou.fr.zone";
};

zone  "forward.alilou.fr" {
      type master;
      file  "forward.alilou.fr.zone";
};


alilou.fr.zone:
******************

TTL 86400
@           IN    SOA   @     root.localhost    (
                        14 ; serial
                        28800 ; refresh
                        14400 ; retry
                        3600000 ; expire
                        86400 ; ttl
                        )



            IN    NS    localhost.
ns          IN    NS    10.194.3.39.
a22         IN    NS    10.194.3.39.
localhost         IN    NS    10.194.3.39
station22         IN    A     10.194.3.39
station23         IN    A     10.194.3.40
station12         IN    A     10.194.3.35
station11         IN    A     10.194.3.34

resolv.conf:
************
domain alilou.fr
search alilou.fr
nameserver 10.194.3.39
nameserver 127.0.0.1
****************


When I try to verify the structure of named.conf, the system do not give
errors but it does'nt give me 'OK'. The answer is like this:
[root@a22sys3 root]# /usr/sbin/named-checkconf
[root@a22sys3 root]#

And when I try to verify the structure of alilou.fr.zone, I get OK (no
errors):
[root@a22sys3 root]# /usr/sbin/named-checkzone alilou.fr
/var/named/chroot/var/named/alilou.fr.zone
zone alilou.fr/IN: loaded serial 14
OK

PS1: bind do not modify named.conf. I have modified it manually (adding of
the zone 'alilou.fr').
PS2:and create the files in /var/named/chroot/var/named/ and not in
/var/named/

?????????????
Where is the problem please??? thank you very much for your answers...
?????????????
__________
Aliloulinux


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux