Hello, i have just installed ISPConfig 3.0.3.2 on a fresh Centos 5.5 operating system, and i have stumblled among some problems wth Bind and DNS creating ...
I will start putting all the log bind creates, and after that all the config files regarding Bind, maybe u can explain what exactly is wrong

first of all, in the tutorial it is specified in the named.conf
I replaced
Quote:
|
include "/var/named/chroot/etc/named.conf.local";
|
with
Quote:
|
include "/var/named/chroot/var/named/named.local";
|
Also, in the "named" startup, i noticed that it asks for a /etc/named.conf file, so i created a link to /var/named/chroot/etc/named.conf
These are all the config files:
/var/named/chroot/etc/named.conf
Quote:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named/chroot/var/named";
dump-file "/var/named/chroot/var/named/data/cache_dump.db";
statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.root";
};
include "/var/named/chroot/var/named/named.local";
|
/var/named/chroot/var/named/named.local
Quote:
zone "domain1.ro" {
type master;
allow-transfer {none;};
file "/var/named/chroot/var/named//pri.domain1.ro";
};
zone "domain2.ro" {
type master;
allow-transfer {none;};
file "/var/named/chroot/var/named//pri.domain2.ro";
};
zone "domain3.ro" {
type master;
allow-transfer {none;};
file "/var/named/chroot/var/named//pri.domain3.ro";
};
zone "domain4.ro" {
type master;
allow-transfer {none;};
file "/var/named/chroot/var/named//pri.domain4.ro";
};
zone "domain5.ro" {
type master;
allow-transfer {none;};
file "/var/named/chroot/var/named//pri.domain5.ro";
};
|
/var/named/chroot/var/named/pri.domain1.ro
Quote:
$TTL 86400
@ IN SOA ns1.domain1.ro. office.domain1.ro. (
2011041106 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
A 94.60.xx.xx
* A 94.60.xx.xx
cacti A 94.60.xx.xx
domain1.ro. A 94.60.xx.xx
domain1.ro. MX 10 mail.domain1.ro.
domain1.ro. NS ns1.domain1.ro.
domain1.ro. NS ns2.domain1.ro.
mail A 94.60.xx.xx
ns1 A 94.60.xx.xx
ns2 A 94.60.xx.xx
www A 94.60.xx.xx
|
/var/named/chroot/var/named/pri.domain2.ro
Quote:
$TTL 86400
@ IN SOA ns1.domain2.ro. office.domain2.ro. (
2011041404 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
A 94.60.xx.xx
domain2.ro. A 94.60.xx.xx
domain2.ro. MX 10 mail.domain2.ro.
domain2.ro. NS ns1.domain2.ro.
domain2.ro. NS ns2.domain2.ro.
ns1 A 94.60.xx.xx
ns2 A 94.60.xx.xx
www A 94.60.xx.xx
|
/var/named/chroot/var/named/pri.domain3.ro
Quote:
$TTL 86400
@ IN SOA ns1.domain3.ro. office.domain3.ro. (
2011041105 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
A 94.60.xx.xx
* A 94.60.xx.xx
mail A 94.60.xx.xx
domain3.ro. A 94.60.xx.xx
domain3.ro. MX 10 mail.domain3.ro.
domain3.ro. NS ns1.domain3.ro.
domain3.ro. NS ns2.domain3.ro.
ns1 A 94.60.xx.xx
ns2 A 94.60.xx.xx
www A 94.60.xx.xx
|
and so on, with all the other configs;
Errors:
Quote:
[root@hosting ~]# dig domain3.ro
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> neoit.ro
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 40528
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;neoit.ro. IN A
;; Query time: 54 msec
;; SERVER: 94.60.xx.x#53(94.60.xx.x)
;; WHEN: Thu Apr 14 02:00:38 2011
;; MSG SIZE rcvd: 26
|
all the other domains look the same.
nslookup
www.domain3.ro
Quote:
;; Got SERVFAIL reply from 94.60.xx.x, trying next server
;; Got SERVFAIL reply from 94.60.xx.x, trying next server
Server: 94.60.xx.y
Address: 94.60.xx.y#53
** server can't find www.domain3.ro.domain2.ro: SERVFAIL
|
/etc/init.d/named restart
Quote:
Stopping named: [ OK ]
Starting named: [ OK ]
|
As you see, no errors occur during restart named
tail -f /var/log/messages
Quote:
Apr 14 02:03:54 hosting named[11959]: shutting down: flushing changes
Apr 14 02:03:54 hosting named[11959]: stopping command channel on 127.0.0.1#953
Apr 14 02:03:54 hosting named[11959]: stopping command channel on ::1#953
Apr 14 02:03:54 hosting named[11959]: no longer listening on ::1#53
Apr 14 02:03:54 hosting named[11959]: no longer listening on 127.0.0.1#53
Apr 14 02:03:54 hosting named[11959]: exiting
Apr 14 02:03:56 hosting named[12069]: starting BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5 -u named -t /var/named/chroot
Apr 14 02:03:56 hosting named[12069]: found 1 CPU, using 1 worker thread
Apr 14 02:03:56 hosting named[12069]: using up to 4096 sockets
Apr 14 02:03:56 hosting named[12069]: loading configuration from '/etc/named.conf'
Apr 14 02:03:56 hosting named[12069]: max open files (1024) is smaller than max sockets (4096)
Apr 14 02:03:56 hosting named[12069]: using default UDP/IPv4 port range: [1024, 65535]
Apr 14 02:03:56 hosting named[12069]: using default UDP/IPv6 port range: [1024, 65535]
Apr 14 02:03:56 hosting named[12069]: listening on IPv6 interface lo, ::1#53
Apr 14 02:03:56 hosting named[12069]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 14 02:03:56 hosting named[12069]: command channel listening on 127.0.0.1#953
Apr 14 02:03:56 hosting named[12069]: command channel listening on ::1#953
Apr 14 02:03:56 hosting named[12069]: zone domain1.ro/IN: loaded serial 2011041106
Apr 14 02:03:56 hosting named[12069]: zone domain2.ro/IN: loaded serial 2011041404
Apr 14 02:03:56 hosting named[12069]: zone domain3.ro/IN: loaded serial 2011041105
Apr 14 02:03:56 hosting named[12069]: zone domain4.ro/IN: loaded serial 2011041105
Apr 14 02:03:56 hosting named[12069]: zone domain5.ro/IN: loaded serial 2011041105
Apr 14 02:03:56 hosting named[12069]: running
Apr 14 02:03:56 hosting named[12069]: zone domain1.ro/IN: sending notifies (serial 2011041105)
Apr 14 02:03:56 hosting named[12069]: zone domain2.ro/IN: sending notifies (serial 2011041106)
Apr 14 02:03:56 hosting named[12069]: zone domain3.ro/IN: sending notifies (serial 2011041105)
Apr 14 02:03:56 hosting named[12069]: zone domain4.ro/IN: sending notifies (serial 2011041105)
Apr 14 02:03:56 hosting named[12069]: zone domain5.ro/IN: sending notifies (serial 2011041404)
|
i see in the nslookup command a problem at the end of the SERVFAIL error :
a closer look
why is this error in reading the domains ??? the domain2 is the "primary" domain,
is the domain allocated in the /etc/hosts/ file .....
Quote:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
94.60.40.2 hosting.far3.ro hosting
::1 localhost6.localdomain6 localhost6
|
and also in the resolv.conf
Quote:
search domain2.ro
nameserver 94.60.xx.x
nameserver 94.60.xx.y
|
all of these, as i explain to myself, seem to be fine, i really don`t understand what can i do, none of these settings don`t seem to raise up the domains, and at least 2 of them are very much needed, one of them being my network domain, all the others are personal domains also, using them for some friends with game and radio servers

.
a quick reply with any possible ideea would be much appreciated
Thank you very much !
Later Edit:
Quote:
[root@hosting ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1897/dovecot
tcp 0 0 *: pop3s *:* LISTEN 1897/dovecot
tcp 0 0 localhost.localdomain:smux *:* LISTEN 3246/snmpd
tcp 0 0 localhost.localdomain:10025 *:* LISTEN 1975/master
tcp 0 0 *:mysql *:* LISTEN 1865/mysqld
tcp 0 0 *: pop3 *:* LISTEN 1897/dovecot
tcp 0 0 localhost.local:dyna-access *:* LISTEN 1780/clamd
tcp 0 0 *:imap *:* LISTEN 1897/dovecot
tcp 0 0 *: sunrpc *:* LISTEN 1747/portmap
tcp 0 0 localhost.localdomai:domain *:* LISTEN 12069/named
tcp 0 0 *:ftp *:* LISTEN 2010/pure-ftpd (SER
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 12069/named
tcp 0 0 *:smtp *:* LISTEN 1975/master
tcp 0 0 *:imaps *:* LISTEN 1897/dovecot
tcp 0 0 *: pop3s *:* LISTEN 1897/dovecot
tcp 0 0 *: pop3 *:* LISTEN 1897/dovecot
tcp 0 0 *:imap *:* LISTEN 1897/dovecot
tcp 0 0 *:webcache *:* LISTEN 1995/httpd
tcp 0 0 *:http *:* LISTEN 1995/httpd
tcp 0 0 *:tproxy *:* LISTEN 1995/httpd
tcp 0 0 localhost6.localdoma:domain *:* LISTEN 12069/named
tcp 0 0 *:ftp *:* LISTEN 2010/pure-ftpd (SER
tcp 0 0 *:ssh *:* LISTEN 1766/sshd
tcp 0 0 localhost6.localdomain:rndc *:* LISTEN 12069/named
tcp 0 0 *:https *:* LISTEN 1995/httpd
tcp 0 0 hosting.domain2.ro:ssh 79-117-35-66.rdsn:sonardata ESTABLISHED 20646/sshd: root@no
tcp 0 0 hosting.domain2.ro:ssh 79-117-35-66.r owergemplus ESTABLISHED 20698/sshd: root@no
tcp 0 2072 hosting.domain2.ro:ssh 79-117-35-66.rds:quicksuite ESTABLISHED 20784/0
tcp 0 0 hosting.domain2.ro:ssh 79-117-35-66.rdsnet.ro:4967 ESTABLISHED 11999/1
|
Thank You !
Recent comments
10 hours 22 min ago
12 hours 49 min ago
1 day 44 min ago
1 day 3 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 23 hours ago
2 days 1 hour ago
2 days 9 hours ago
2 days 10 hours ago