LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-17-2007, 09:07 PM   #1
sloganyart
LQ Newbie
 
Registered: Jan 2007
Location: Johor, Malaysia
Distribution: Slackware 9.2,12.2,13.0, Debian woody,sarge,etch,Centos5.3
Posts: 22

Rep: Reputation: 15
Unhappy bind9 gone crazy!


Hi there, I have been troubleshooting this for the past whole week but still can't find any solution. It's a strange problem.

I'm using bind 9.2.1 for my internal network LAN, and it's a Debian box. All the query for internal zone was working fine, but on last Wednesday, in a sudden, all the request to external site like yahoo.com or google.com doesn't give back a answer to the clients (mix of WinXP and linux box)

My named.conf.options initially was like this:


Code:
   
options {
        directory "/var/cache/bind";

        query-source address * port 53;
        auth-nxdomain no;    # conform to RFC1035

        forwarders {202.188.0.133;202.188.1.5;};
        forward only;
};
which 202.188.0.133 is my ISP dns ip.
Then I suspect it's my ISP dns problem, so comment out the 'forward only' and do a bind9 restart. For a few second it able to give answer back to the client, but just a while it start to timeout to client again.
Then I commented out the forwarders as well, and again, it works fine for a few seconds, then it fail again.
Then I found out my dns server actually did get back the answer, cause when I do a 'rndc flush' and 'dig @localhost yahoo.com', and then a 'rndc dumpdb', in the /var/cache/bind/named_dump.db, I did able to see this:

Code:
; glue
yahoo.com.		47701	NS	ns1.yahoo.com.
			47701	NS	ns2.yahoo.com.
			47701	NS	ns3.yahoo.com.
			47701	NS	ns4.yahoo.com.
			47701	NS	ns5.yahoo.com.
; glue
ns1.yahoo.com.		171154	A	66.218.71.63
Means, the bind9 server is not able to give answer back to anyone, including itself ! Which part is wrong ?

I really some expert out there could give me a hand, as my LAN Internet has down for a week already ( It's driving me nuts..
 
Old 06-18-2007, 08:06 AM   #2
FMC
Member
 
Registered: May 2007
Location: São Paulo
Distribution: Gentoo & Debian
Posts: 97

Rep: Reputation: 15
You can configure your ISP DNS server on the other machines for a while, this way people can work at least! lol

Flush all your iptables rules and try again, maybe you´re firewalling something!

Remember, when you do everything and have no clue about the problem, its time to strace and go crazy!

[]´s, FMC!
 
Old 06-19-2007, 01:54 AM   #3
sloganyart
LQ Newbie
 
Registered: Jan 2007
Location: Johor, Malaysia
Distribution: Slackware 9.2,12.2,13.0, Debian woody,sarge,etch,Centos5.3
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by FMC
Flush all your iptables rules and try again, maybe you´re firewalling something!
How to flush iptables rules ? Which files or command to look into ?
 
Old 06-19-2007, 06:30 AM   #4
FMC
Member
 
Registered: May 2007
Location: São Paulo
Distribution: Gentoo & Debian
Posts: 97

Rep: Reputation: 15
iptables -F
iptables -t nat -F

This will flush your iptables rules, check iptables -L -n to see if the default policy is ACCEPT, if not just change it:
iptables -P INPUT ACCEPT

Take a look on iptables -t nat -L -n to know how your nat table is working.

[]´s, FMC!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
a little help with BIND9 rockmanchile Debian 3 05-22-2007 06:40 PM
Bind9 help!! Fredstar Linux - Newbie 10 08-30-2005 09:47 PM
Bind9 tandre Linux - Software 1 04-08-2003 09:29 AM
bind9 unixkid Linux - Networking 3 08-30-2002 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration