LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-13-2010, 12:15 PM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
BIND answers locally but not when queried by remote servers


Hi, I've setup the "named" server to answer DNS queries. When I issue the command "dig @<DNS server IP> www.domain.com", it gives me the proper records, and logs a line at /var/log/messages.

However, when I tried to do the same from another Linux terminal, it says:
Code:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> @<DNS server IP> www.domain.com
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached
When I tried to use "host www.domain.com <DNS server IP>", it ended up using the server in the /etc/resolv.conf file. Again, this works on the DNS server itself.

I checked the firewall by doing a telnet test from another server to port 53. It connects fine so the port isn't blocked.

Any idea what is happening?
 
Old 08-13-2010, 02:25 PM   #2
engtmk
LQ Newbie
 
Registered: Aug 2010
Location: Egypt
Distribution: Cetnos
Posts: 9

Rep: Reputation: 1
may be because you have to allow the quires to your bind installation from any host.

you have to check your named.conf file "which should be under /etc"

check for an entry “allow-query” and its value is defined as “localhost;” so you have to change it to “any”

after modifying the config file just restart the bind.
 
Old 08-13-2010, 02:49 PM   #3
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
Isn't by not including the "allow-query" directive, its default setting would allow any servers to query it?
 
Old 08-14-2010, 10:12 AM   #4
engtmk
LQ Newbie
 
Registered: Aug 2010
Location: Egypt
Distribution: Cetnos
Posts: 9

Rep: Reputation: 1
i guess you are right about allow-query directive

Quote:
Code:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> @<DNS server IP> www.domain.com
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached
these error means your bind server is unreachable from the remote one.


Quote:
I checked the firewall by doing a telnet test from another server to port 53. It connects fine so the port isn't blocked.
as far as i know telnet only makes connection to tcp ports you should try to use nmap from the remote machine to list all the open ports.
 
  


Reply



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
Running X + App Locally via a Remote Shell cronicded Linux - Desktop 3 12-21-2007 10:56 PM
How to mount remote server locally to a machine? ammar Linux - Networking 1 08-18-2006 01:02 AM
BIND - Locally OK, LAN cleints unable to resolve? Xaque208 Linux - Networking 2 08-08-2005 09:32 AM
Bind returns 0 answers on the zone it is set to be master on Timur Sakayev Linux - Networking 2 12-29-2004 08:46 AM
Sendmail: Deliver locally and remote mague Linux - Software 1 11-04-2003 06:08 PM

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

All times are GMT -5. The time now is 06:37 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