Current time: 12-23-2024, 06:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
bind doesn't work :(
Author Message
katun Offline
Junior Member
*

Posts: 20
Joined: Dec 2007
Reputation: 0
Post: #1
bind doesn't work :(
Hi all,

I've an other problem. The DNS-Server (BIND9) doesn't work correctly. I've added the domain "dark-space.com" in ispcp as a user. the dns records are created. but nslookup don't show me the right ip.
here is the output of nslookup:
Code:
> server localhost
Default server: localhost
Address: 127.0.0.1#53
> dark-space.com
Server:        localhost
Address:    127.0.0.1#53

** server can't find dark-space.com: SERVFAIL
>

The record file looks like this:
Code:
$TTL 12H
$ORIGIN dark-space.com.
@               IN              SOA             ns1.dark-space.com. hostmaster.dark-space.com. (
; dmn [dark-space.com] timestamp entry BEGIN.
                2007121700     ; Serial
; dmn [dark-space.com] timestamp entry END.
                8H              ; Refresh
                15M             ; Retry
                4W              ; Expire
                3H              ; Minimum TTL
)
                IN              NS              ns1.dark-space.com.
                IN              NS              ns2.dark-space.com.
                IN              MX      10      mail.dark-space.com.

dark-space.com.     IN              A               217.150.252.151
www             IN              A               217.150.252.151
dark-space.com.     IN              TXT             "v=spf1 a mx ip4:217.150.252.151 ~all"
localhost       IN              A               127.0.0.1
mail            IN              A               217.150.252.151
ns1             IN              A               217.150.252.151
ns2             IN              A               ns4.nine.ch
; CNAME for mail transfer
imap            IN              CNAME           mail
pop             IN              CNAME           mail
pop3            IN              CNAME           mail
relay           IN              CNAME           mail
smtp            IN              CNAME           mail
; CNAME for web transfer
ftp             IN              CNAME           www
pma             IN              CNAME           www
webmail         IN              CNAME           www
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.

where is the problem? anybody an idea?
(This post was last modified: 12-18-2007 06:04 AM by katun.)
12-18-2007 05:59 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: bind doesn't work :(
Could you check if bind is running?

lsof -i -P -T

there should be bind running on port 53

or a "ps aux" should also show bind...

any result? please come back here

/Joximu
12-18-2007 06:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
katun Offline
Junior Member
*

Posts: 20
Joined: Dec 2007
Reputation: 0
Post: #3
RE: bind doesn't work :(
lsof -i -P -T shows these results for named
Code:
named     2315     bind   20u  IPv4   6282       UDP berchtold.nine.ch.local:53
named     2315     bind   21u  IPv4   6285       TCP berchtold.nine.ch.local:53
named     2315     bind   22u  IPv4   6286       UDP berchtold.nine.ch:53
named     2315     bind   23u  IPv4   6287       TCP berchtold.nine.ch:53
named     2315     bind   24u  IPv4   6330       UDP *:32768
named     2315     bind   25u  IPv6   6331       UDP *:32769
named     2315     bind   26u  IPv4   6332       TCP berchtold.nine.ch.local:953
named     2315     bind   27u  IPv6   6333       TCP ip6-localhost:953

and ps aux show's this result for bind:
Code:
bind      2315  0.0  0.0  54948  3784 ?        Ssl  21:07   0:00 /usr/sbin/named -u bind
12-18-2007 06:33 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: bind doesn't work :(
ok, so - what is the answer for this command?

dig @localhost dark-space.com

Maybe you find some helping information in the logfiles - do a bind restart and make a grep for dark-space.com in /var/log/

Hope this hleps finding the bug...

/J
12-18-2007 06:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
katun Offline
Junior Member
*

Posts: 20
Joined: Dec 2007
Reputation: 0
Post: #5
RE: bind doesn't work :(
also the answer of dig is:
Code:
; <<>> DiG 9.3.4 <<>> @localhost dark-space.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 23785
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;dark-space.com.            IN    A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Dec 17 21:54:32 2007
;; MSG SIZE  rcvd: 32
The same: SERVFAIL

I've restared bind many times. and i've rebooted the server too.
the result of cat /var/log/* | grep dark-space.com is:
Code:
cat: /var/log/apache2: Is a directory
Dec 17 16:13:41 berchtoldn useradd[3053]: new user: name=vu2001, UID=2001, GID=2001, home=/var/www/virtual/dark-space.com, shell=/bin/false
Dec 17 17:27:58 berchtold useradd[3424]: new user: name=vu2002, UID=2002, GID=2002, home=/var/www/virtual/dark-space.com, shell=/bin/false
Dec 17 16:13:50 berchtoldn named[3164]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 16:13:50 berchtoldn named[3164]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 16:49:30 berchtoldn named[3164]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 16:49:30 berchtoldn named[3164]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 17:04:25 berchtold named[2306]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 17:04:25 berchtold named[2306]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 17:13:43 berchtold named[3088]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 17:13:43 berchtold named[3088]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 19:51:57 berchtold named[3088]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 19:51:57 berchtold named[3088]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 20:02:13 berchtold named[4718]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 20:02:13 berchtold named[4718]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 20:40:13 berchtold named[5315]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 20:40:13 berchtold named[5315]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 20:41:39 berchtold named[5315]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 20:41:39 berchtold named[5315]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 21:07:51 berchtold named[2315]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 21:07:51 berchtold named[2315]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 21:52:37 berchtold named[3369]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 21:52:37 berchtold named[3369]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
cat: /var/log/exim4: Is a directory
cat: /var/log/fsck: Is a directory
cat: /var/log/installer: Is a directory
cat: /var/log/ispcp: Is a directory
cat: /var/log/mysql: Is a directory
cat: /var/log/news: Is a directory
cat: /var/log/proftpd: Is a directory
Dec 17 16:13:50 berchtoldn named[3164]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 16:13:50 berchtoldn named[3164]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 16:49:30 berchtoldn named[3164]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 16:49:30 berchtoldn named[3164]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 17:04:25 berchtold named[2306]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 17:04:25 berchtold named[2306]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 17:13:43 berchtold named[3088]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 17:13:43 berchtold named[3088]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 19:51:57 berchtold named[3088]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 19:51:57 berchtold named[3088]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 20:02:13 berchtold named[4718]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 20:02:13 berchtold named[4718]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 20:40:13 berchtold named[5315]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 20:40:13 berchtold named[5315]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 20:41:39 berchtold named[5315]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 20:41:39 berchtold named[5315]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 21:07:51 berchtold named[2315]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 21:07:51 berchtold named[2315]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad
Dec 17 21:52:37 berchtold named[3369]: dns_rdata_fromtext: /var/cache/bind/dark-space.com.db:22: near 'ns4.nine.ch': bad dotted quad
Dec 17 21:52:37 berchtold named[3369]: zone dark-space.com/IN: loading master file /var/cache/bind/dark-space.com.db: bad dotted quad

btw. thanks for your help!
12-18-2007 06:57 AM
Find all posts by this user Quote this message in a reply
katun Offline
Junior Member
*

Posts: 20
Joined: Dec 2007
Reputation: 0
Post: #6
RE: bind doesn't work :(
I found it!!! Big Grin
it was the record file! there is a cname instead an A-Record for ns2.dark-space.com. i've replaced it with the ip of the nameserver and it works. so i have to change the secondary ns in /etc/ispcp/ispcp.conf to the ipadress instead of the hostname.
12-18-2007 07:02 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: bind doesn't work :(
ah yes - now I see it to
Code:
ns2             IN              A               ns4.nine.ch

ok - cheers

/J
12-18-2007 07:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
katun Offline
Junior Member
*

Posts: 20
Joined: Dec 2007
Reputation: 0
Post: #8
RE: bind doesn't work :(
but one question: does ispcp transfer the zonefiles automaticly when a secondary dns is configured in /etc/ispcp/ispcp.conf? Or i have to enable it manually?
12-18-2007 07:18 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: bind doesn't work :(
Have a look here
http://www.isp-control.net/component/opt...view/id,7/
12-18-2007 08:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)