Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th December 2007, 15:48
kdclaver kdclaver is offline
Member
 
Join Date: Nov 2006
Posts: 51
Thanks: 0
Thanked 2 Times in 2 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 13th December 2007, 15:24
kdclaver kdclaver is offline
Member
 
Join Date: Nov 2006
Posts: 51
Thanks: 0
Thanked 2 Times in 2 Posts
Unhappy

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
Reply With Quote
The Following User Says Thank You to kdclaver For This Useful Post:
adamassasda291 (19th May 2013)
  #3  
Old 13th December 2007, 18:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Are you sure you set up BIND exactly as shown in the tutorial? Might be a chroot problem.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 16th December 2007, 22:03
kdclaver kdclaver is offline
Member
 
Join Date: Nov 2006
Posts: 51
Thanks: 0
Thanked 2 Times in 2 Posts
Red face

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.
Reply With Quote
  #5  
Old 17th December 2007, 17:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

What's the output of
Code:
ls -la /var/lib/named
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
adamassasda291 (16th June 2013)
  #6  
Old 18th December 2007, 09:15
kdclaver kdclaver is offline
Member
 
Join Date: Nov 2006
Posts: 51
Thanks: 0
Thanked 2 Times in 2 Posts
Red face

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 !!!!!
Reply With Quote
  #7  
Old 19th December 2007, 17:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Looks ok. Can you also post the output of
Code:
ls -la /var/lib/named/var
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 20th December 2007, 00:16
kdclaver kdclaver is offline
Member
 
Join Date: Nov 2006
Posts: 51
Thanks: 0
Thanked 2 Times in 2 Posts
Red face

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
Reply With Quote
  #9  
Old 20th December 2007, 16:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 20th December 2007, 20:01
kdclaver kdclaver is offline
Member
 
Join Date: Nov 2006
Posts: 51
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse DNS + SPF and ISPConfig as my DNS Server yurtboy1 General 1 6th November 2007 09:15
The Perfect Setup - Debian Woody (3.0)... sending mail from my XP box? ExCIA HOWTO-Related Questions 17 27th June 2007 18:31
ISPconfig on debian ETCH provell Installation/Configuration 15 23rd January 2007 10:02
The Perfect Xen 3.0 Setup For Debian - Root-NFS: No NFS server available, giving up. finn HOWTO-Related Questions 13 7th November 2006 17:51
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 11:55.


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