Question

Query refused on bind (named)

Asked by: x_terminat_or_3

Hi there

Having a huge problem and I can't figure out why this keeps happening:

dig r-nash.office.protected.com @192.168.2.2

; <<>> DiG 9.3.4 <<>> r-nash.office.protected.com @192.168.2.2
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 65269
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;r-nash.office.protected.com.   IN      A

;; Query time: 1 msec
;; SERVER: 192.168.2.2#53(192.168.2.2)
;; WHEN: Mon Mar 19 12:07:12 2007
;; MSG SIZE  rcvd: 45




I keep getting "refused" when I try to query this server from anywhere on the network, but everything works fine when I try the same query on the server that is running the BIND service.

What is causing this please? I have tried and tried and tried, but I keep getting this.

Here is my named.conf file

//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver 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.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
        listen-on port 53 { 127.0.0.1; };
        listen-on-v6 port 53 { ::1; };
        listen-on port 53 { 192.168.2.2; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        query-source    port 53;
        query-source-v6 port 53;
        allow-query     { any; };
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
view localhost_resolver {
        allow-query { any; };
        match-clients      { localhost; };
        match-destinations { localhost; };
        recursion yes;
        include "/etc/named.rfc1912.zones";
};


Here is my rfc zone file:

// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "1.168.192.IN-ADDR.ARPA." IN {
        type master;
        file "192.168.1.db";
        allow-query { any; };
};
zone "2.168.192.IN-ADDR.ARPA." IN {
        type master;
        file "192.168.2.db";
        allow-query { any; };
};
zone "office.protected.com." IN {

allow-query {
        any;
};
type master;
        file "office.protected.com.db";
};
zone "." IN {

type hint;
        file "named.ca";
};

zone "localdomain" IN {
        type master;
        file "localdomain.zone";
        allow-update { none; };
        allow-query { any; };
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
        allow-query { any; };
};

zone "0.0.127.in-addr.arpa" IN {
        allow-query {
        any;
};
type master;
        file "named.local";
        allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
        file "named.ip6.local";
        allow-query { any; };
};

zone "255.in-addr.arpa" IN {
        type master;
        file "named.broadcast";
        allow-update { none; };
        allow-query { any; };
};

zone "0.in-addr.arpa" IN {
        type master;
        file "named.zero";
        allow-update { none; };
        allow-query { any; };
};


And here is my main zone file:

$TTL 1H
@       SOA     development     root.development (      6
                                                3H
                                                1H
                                                1W
                                                1H )
                        NS      localhost.
m-whelan        IN      1H      A       192.168.2.240
t-ward  IN      1H      A       192.168.2.20
k-rosewarne IN  1H      A       192.168.2.14
a-pieters       IN      1H      A       192.168.2.9
development     IN      1H      A       192.168.2.2
        IN      1H      A       192.168.2.2
printer IN      1H      A       192.168.2.245
b-stabb IN      1H      A       192.168.2.13

t-legg  IN      1H      A       192.168.1.5
d-walker        IN      1H      A       192.168.1.6
a-sundaram      IN      1H      A       192.168.1.7
a-cox   IN      1H      A       192.168.1.8
r-abzadeh       1H      A       192.168.1.9
a-cross IN      1H      A       192.168.1.10
m-harrison      IN      1H      A       192.168.1.11
d-carter        IN      1H      A       192.168.1.12
j-irish IN      1H      A       192.168.1.13
r-nash  IN      1H      A       192.168.1.14
printer2        IN      1H      A       192.168.1.254
phpmyadmin.development  IN      1H      CNAME   development
r-nash  IN      1H      A       192.168.1.14
admin.development       IN      1H      CNAME   development
sd.development  IN      1H      CNAME   development
cp.development  IN      1H      CNAME   development
secure.development      IN      1H      CNAME   development
client.development      IN      1H      CNAME   development
test.development        IN      1H      CNAME   development
sales.development       IN      1H      CNAME   development
support.development     IN      1H      CNAME   development
samsung IN      1H      CNAME   printer

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-03-19 at 05:14:53ID22457722
Tags

bind

,

refused

,

query

Topics

Linux Administration

,

Linux Networking

,

Domain Name Service (DNS)

Participating Experts
1
Points
200
Comments
18

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. a nameserver for a TLD
    Let assume I want to be autoritative for a complete TLD (let say ".xyz")and that I have a nameserver name NS1.ABC.COM and an entry into the /root internet file. How do I set-up my system? Should I create a /var/named/db.xyz file? And enter an "xyz. A xxx.xxx.x...
  2. DNS (BIND): How to create intranet tld extensions?
    hi, I am trying to r&d creating a new top level domain extension (eg. .office, .finance) for my company's internal/intranet use. In essence, my company's internal DNS will be the "root zone name servers" for these tlds. It won't be able to resolve in the inter...
  3. Extract domain and tld from email adresses
    Hi, I have a huge list of emailadresses in my adress book. I would like to extract from webmaster@great.domain.com 1.) the domain 2.) the tld, e.g. .com or .de or any other tld. in separate variables. Is there anybody who can help me with that? Thanks in advance! Welle
  4. no /usr/local/apache in red hat linux 8.0
    i do not want to download apache server since RH 8.0 already has the apache server. Now the question is that i donot have the directory /usr/local/apache2 directory and i found that apache was renamed to httpd in RH 8.0. Again everytime i restart my httpd service, it says cou...
  5. BIND
    I have Bind 9.2.1-16 on Red Hat 9 SO and Bind does not work any longer, if I try to stop it says Bind has stopped, but if I try to start it again ti sayd already running, but it does note resolve the domain names what could be the cause? thaks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: pablouruguayPosted on 2007-03-19 at 06:30:23ID: 18747886

just a question.. . you dont have a firewall or block the port 53 in this server ???

do a iptables -L to see what are in your server

 

by: x_terminat_or_3Posted on 2007-03-19 at 07:19:31ID: 18748201

No, software firewall is disabled

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

 

by: pablouruguayPosted on 2007-03-19 at 10:15:08ID: 18749756

please remove this 3 lines and restart named and try again please

        listen-on port 53 { 127.0.0.1; };
        listen-on-v6 port 53 { ::1; };
        listen-on port 53 { 192.168.2.2; };

 

by: x_terminat_or_3Posted on 2007-03-19 at 10:56:19ID: 18750137

I removed those lines but I still get the refused bit

 

by: pablouruguayPosted on 2007-03-19 at 11:00:45ID: 18750187

i didnt see the error....

maybe can teste removing with # the lines on query.. to accept any query... only for checking

 

by: x_terminat_or_3Posted on 2007-03-19 at 11:42:54ID: 18750535

where do I do that?

 

by: pablouruguayPosted on 2007-03-19 at 11:53:46ID: 18750613

in the named.conf comment all  

allow-query     { any; };

like this

#allow-query     { any; };

and restart named with /etc/init.d/named restart

 

by: x_terminat_or_3Posted on 2007-03-19 at 13:17:25ID: 18751316

I FIXED IT!

The problem was this:

view localhost_resolver {
        allow-query { any; };
        match-clients      { localhost; };
        match-destinations { localhost; };
        recursion yes;
        include "/etc/named.rfc1912.zones";
};

I changed the match-clients , and match-destinations to any, and now it works it works!

 

by: x_terminat_or_3Posted on 2007-03-19 at 13:40:15ID: 18751519

I'll award you some points but the actual answer was self-found, so please be patient while admin deals with this.

Thank you for your help

 

by: pablouruguayPosted on 2007-03-20 at 07:58:32ID: 18756636

nice :)....  i learned in this question... thank you

 

by: pablouruguayPosted on 2007-03-29 at 05:13:31ID: 18815250

paq and refunded??? i dont understand...

 

by: x_terminat_or_3Posted on 2007-03-29 at 11:33:23ID: 18818561

Looks like I misunderstood what was being asked. I have amended the thread mentioned by Vee_Mod to get you points.

Thanks for your help

 

by: x_terminat_or_3Posted on 2007-03-30 at 00:07:14ID: 18821933

No this is exactly what I wanted. Thanks Vee_Mod

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...