LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 11-04-2009, 04:28 AM   #1
permalac
Member
 
Registered: Jul 2007
Posts: 88
Thanked: 1
server can't find barcelonamedia.org.barcelonamedia.org: SERVFAIL


[Log in to get rid of this advertisement]
Hello,

I have a bind server (1:9.5.1.dfsg.P3-1) which manages my zone (barcelonamedia.org).
I use debian lenny.


Bind server is running, or it looks like so because status returns failed.

FBMNS01:/etc/bind# /etc/init.d/bind9 force-reload
Reloading domain name service...: bind9.

FBMNS01:/etc/bind# /etc/init.d/bind9 status
bind9 is not running failed!

FBMNS01:/etc/bind# ps axu|grep bind
bind 11490 0.0 0.7 125776 15160 ? Ssl 09:53 0:00 /usr/sbin/named -u bind -t /var/chroot/bind9
root 11554 0.0 0.0 5160 780 pts/0 S+ 10:07 0:00 grep bind



In the bind server :

FBMNS01:/etc/bind# nslookup
> server 84.88.79.190
Default server: 84.88.79.190
Address: 84.88.79.190#53
> set ty=any
> barcelonamedia.org
Server: 84.88.79.190
Address: 84.88.79.190#53

** server can't find barcelonamedia.org.barcelonamedia.org: SERVFAIL


And finally i do not manage to read logs because they are not there. I really do not understant. Help will be apreciated.

FBMNS01:/etc/bind# locate bind |grep log
/etc/rsyslog.d/bind-chroot.conf
/usr/lib/python2.5/idlelib/keybindingDialog.py
/usr/lib/python2.5/idlelib/keybindingDialog.pyc
/usr/share/doc/bind9/changelog.Debian.gz
/usr/share/doc/bind9-doc/changelog.Debian.gz
/usr/share/doc/bind9-doc/changelog.gz
/usr/share/doc/bind9-host/changelog.Debian.gz
/usr/share/doc/bind9utils/changelog.Debian.gz
/usr/share/doc/libbind9-40/changelog.Debian.gz
/usr/share/webmin/bind8/conf_logging.cgi
/usr/share/webmin/bind8/log_parser.pl
/usr/share/webmin/bind8/save_logging.cgi
/usr/share/webmin/bind8/syslog_logs.pl
/usr/share/webmin/bind8/images/logging.gif
/usr/share/webmin/blue-theme/bind8/images/logging.gif
/var/chroot/bind9/dev/log

FBMNS01:/etc/bind# tail -f /var/chroot/bind9/dev/log
tail: cannot open `/var/chroot/bind9/dev/log' for reading: No such device or address
tail: no files remaining

The first lines of my zone file db.barcelonamedia.org look like this:

@ IN SOA fbmns01.barcelonamedia.org. namemaster.barcelonamedia.org. (
2009110404
14400
3600
2419200
604800 )
;
@ IN NS fbmns01.barcelonamedia.org.
@ IN NS ns1.cesca.es.
@ IN NS ns2.cesca.es.
barcelonamedia.org. IN MX 10 mx01.barcelonamedia.org.
barcelonamedia.org. IN MX 20 mx02.barcelonamedia.org.
@ IN TXT "FBM"
smtp IN A 217.116.0.156
www IN A 217.116.20.166
@ IN A 217.116.20.166


llistes IN MX 10 llistes.barcelonamedia.org.
mailman IN MX 10 mailman.barcelonamedia.org.

;############### IPs Externas a Zona FBM ###################
2020 IN A 217.116.20.166
awebmail IN A 217.14.38.81
graficos IN A 193.145.44.102


Thanks for reading.

I've read about wrong typed documents can give this problem, but i don't know enough. so i attach my one of my reverves.
windows_xp_2003 permalac is offline     Reply With Quote
Old 11-04-2009, 05:20 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,044
Thanked: 224
Hi,

It works according to the zone file you've posted:
Quote:
$dig barcelonamedia.org

; <<>> DiG 9.6.1 <<>> barcelonamedia.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42773
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1

;; QUESTION SECTION:
;barcelonamedia.org. IN A

;; ANSWER SECTION:
barcelonamedia.org. 604781 IN A 217.116.20.166

;; AUTHORITY SECTION:
barcelonamedia.org. 604781 IN NS fbmns01.barcelonamedia.org.
barcelonamedia.org. 604781 IN NS ns2.cesca.es.
barcelonamedia.org. 604781 IN NS ns1.cesca.es.

;; ADDITIONAL SECTION:
ns2.cesca.es. 172781 IN A 84.88.0.5

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Nov 4 12:17:50 2009
;; MSG SIZE rcvd: 134
It looks like the server 84.88.79.190 knows nothing about your domain.

Last edited by bathory; 11-04-2009 at 05:25 AM..
linuxslackware bathory is offline     Reply With Quote
Old 11-04-2009, 05:28 AM   #3
permalac
Member
 
Registered: Jul 2007
Posts: 88
Thanked: 1

Original Poster
Quote:
Originally Posted by bathory View Post
Hi,

It works according to the zone file you've posted:
It looks like the server 84.88.79.190 knows nothing about your domain.
This is because was not starting properly. 84.88.79.190 it's my zone master, so it must know about my domain or the boss will kill me.


Anyway, i got the problem. Underscores are not good stuff!!


solution:

on named.conf.options

options{

check-names master ignore;
check-names slave ignore;


as you can check it now the 84.88.79.190 know about the zone.

Many thanks bathory.
windows_xp_2003 permalac is offline     Reply With Quote
Old 11-04-2009, 06:09 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,044
Thanked: 224
Yes I've checked and it's working now. Indeed bind9 does not like underscores.
Btw, you can mark the thread as solved.

Cheers
linuxslackware bathory is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
server can't find mydomain.com: SERVFAIL renuaseri Linux - Newbie 1 07-13-2009 06:28 AM
server can't find example.com: SERVFAIL redhat user Linux - Server 1 05-29-2009 04:42 PM
nslookup ** server can't find homelan.home: SERVFAIL heals1ic Linux - Networking 7 05-19-2005 08:20 PM


All times are GMT -5. The time now is 11:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration