HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Perfect setup Debian Etch ISPConfig - DNS Server (http://www.howtoforge.com/forums/showthread.php?t=18358)

kdclaver 12th December 2007 15:48

Perfect setup Debian Etch ISPConfig - DNS Server
 
Hello Falko,
I have just installed the DNS server as described in step 9. Unfortunately the command "host-a debian" gives me this (see below):
debian:~# host -a debian
Trying "debian.dpi-arobasetelecom.ci"
Trying "debian"
Host debian not found: 3(NXDOMAIN)
Received 99 bytes from 192.168.2.1#53 in 0 ms
debian:~# host -a debian.dpi-arobasetelecom.ci
Trying "debian.dpi-arobasetelecom.ci"
Host debian.dpi-arobasetelecom.ci not found: 2(SERVFAIL)
Received 46 bytes from 192.168.2.1#53 in 0 ms
debian:~#

How do I settle the problem or what command replaces "host-a debian" for permit me to know that my DNS works.

Thanks more for your concern

PS: These are the configuration informations :
debian:~# hostname
debian.dpi-arobasetelecom.ci
debian:~# hostname -f
debian.dpi-arobasetelecom.ci
debian:~#

named.conf.local

zone "dpi-arobasetelecom.ci" {
type master;
file "/var/lib/named/var/cache/bind/db.dpi";
};

zone "2.168.192.in-addr.arpa" {
type master;
file "/var/lib/named/var/cache/bind/db.192";
};

resolv.conf

# generated by NetworkManager, do not edit!
search dpi-arobasetelecom.ci
nameserver 192.168.2.1

db.dpi

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA debian.dpi-arobasetelecom.ci. root.dpi-arobasetelecom.ci. (
2007121201 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.dpi-arobasetelecom.ci.
@ IN MX 10 mail.dpi-arobasetelecom.ci.

debian IN A 192.168.2.1

mail IN CNAME debian
www IN CNAME debian
ftp IN CNAME debian
sql IN CNAME debian
crm IN CNAME debian
wkg IN CNAME debian


db.192
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA debian.dpi-arobasetelecom.ci. root.dpi-arobasetelecom.ci. (
2007121201 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.dpi-arobasetelecom.ci.

1 IN PTR debian.dpi-arobasetelecom.ci.

kdclaver 13th December 2007 15:24

Hello,
Trying to find a solution I look the syslog. Here I finf these messages (below)

Dec 13 14:15:42 debian named[14733]: zone 2.168.192.in-addr.arpa/IN: loading master file /var/lib/named/var/cache/bind/db.192: file not found
Dec 13 14:15:42 debian named[14733]: zone 255.in-addr.arpa/IN: loaded serial 1
Dec 13 14:15:42 debian named[14733]: zone dpi-arobasetelecom.ci/IN: loading master file /var/lib/named/var/cache/bind/db.dpi: file not found
Dec 13 14:15:42 debian named[14733]: zone localhost/IN: loaded serial 1

The files are present in the directory, I don't understand the origin of this message as you can see
debian:~# cd /var/lib/named/var/cache/bind/
debian:/var/lib/named/var/cache/bind# ls -l
total 8
-rw-r--r-- 1 bind bind 343 2007-12-12 14:21 db.192
-rw-r--r-- 1 bind bind 489 2007-12-12 14:24 db.dpi
debian:/var/lib/named/var/cache/bind#

I want to tell that I can't finalize the installation of ISPConfig because it can't access to www.dpi-arobasetelecom.ci. The ping command gives this result :
debian:/var/lib/named/var/cache/bind# ping www.dpi-arobasetelecom.ci
ping: unknown host www.dpi-arobasetelecom.ci
debian:/var/lib/named/var/cache/bind#



Thanks more for your help

falko 13th December 2007 18:22

Are you sure you set up BIND exactly as shown in the tutorial? Might be a chroot problem.

kdclaver 16th December 2007 22:03

Hello Falko,
I've installed Bind as it's described in the howto. I agree with you that it can be a chroot problem.
How can I help you to help me solve this problem ?

Thanks for your feedback.

falko 17th December 2007 17:26

What's the output of
Code:

ls -la /var/lib/named
?

kdclaver 18th December 2007 09:15

Below is the output
debian:~# ls -la /var/lib/named
total 20
drwxr-xr-x 5 root root 4096 2007-12-12 13:55 .
drwxr-xr-x 49 root root 4096 2007-12-13 11:10 ..
drwxr-xr-x 2 root root 4096 2007-12-18 06:25 dev
drwxr-xr-x 3 root root 4096 2007-12-12 13:56 etc
drwxr-xr-x 4 root root 4096 2007-12-12 13:55 var
debian:~#

Thanks more for your help !!!!!

falko 19th December 2007 17:08

Looks ok. Can you also post the output of
Code:

ls -la /var/lib/named/var
?

kdclaver 20th December 2007 00:16

Hello Falko,
Below the output of ls -la /var/lib/named/var
debian:~# ls -la /var/lib/named/var
total 16
drwxr-xr-x 4 root root 4096 2007-12-12 13:55 .
drwxr-xr-x 5 root root 4096 2007-12-12 13:55 ..
drwxr-xr-x 3 bind bind 4096 2007-12-12 13:55 cache
drwxr-xr-x 3 bind bind 4096 2007-12-12 13:55 run
debian:~#

Thanks more again

falko 20th December 2007 16:48

Can you try this?

Code:

mkdir -p /var/lib/named/etc
mkdir /var/lib/named/dev
mkdir -p /var/lib/named/var/cache/bind
mkdir -p /var/lib/named/var/run/bind/run
mv /etc/bind /var/lib/named/etc
ln -s /var/lib/named/etc/bind /etc/bind
mknod /var/lib/named/dev/null c 1 3
mknod /var/lib/named/dev/random c 1 8
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
chown -R bind:bind /var/lib/named/var/*
chown -R bind:bind /var/lib/named/etc/bind


kdclaver 20th December 2007 20:01

Hello Falko,
I've tried the command as you indicate, below the outputs :
debian:~# mkdir -p /var/lib/named/etc
debian:~# mkdir /var/lib/named/dev
mkdir: ne peut créer le répertoire `/var/lib/named/dev': Le fichier existe.

debian:~# mkdir -p /var/lib/named/var/cache/bind
debian:~# mkdir -p /var/lib/named/var/run/bind/run
debian:~# mv /etc/bind /var/lib/named/etc
mv: `/etc/bind' et `/var/lib/named/etc/bind' identifient le même fichier.

debian:~# ln -s /var/lib/named/etc/bind /etc/bind
debian:~# mknod /var/lib/named/dev/null c 1 3
mknod: `/var/lib/named/dev/null': Le fichier existe.
debian:~# mknod /var/lib/named/dev/random c 1 8
mknod: `/var/lib/named/dev/random': Le fichier existe.

debian:~# chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
debian:~# chown -R bind:bind /var/lib/named/var/*
debian:~# chown -R bind:bind /var/lib/named/etc/bind
debian:~#

In bold you can see the message which indicate that the files or the directory exist.

Thanks more


All times are GMT +2. The time now is 10:18.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.