[named] allowing query for only local domains

Rule:
1. Block all query
2. Allow query for each local zone


// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
allow-query {
none; //By default, block query for all domain
};
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};

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

};

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

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
  • Reddit
  • Technorati
  • Twitter

My favorite listmania

Understanding Geeky References & Related Source Material

$17.49
2001 - A Space Odyssey (Two-Disc Special Edition) - Without a doubt, 2001: A Space Odyssey is one of the greatest films ever made. Kubrick's masterful style is further encapsulated in the genius idea that saying less with more is better. The opening se...
$39.49
Akira - Before I go off reviewing this anime, I'll share my personal history with it, which dates back eight years ago.

I remember staying up late at night and at the stroke of midnight, the date...
$47.90
Bill Nye the Science Guy: Dinosaurs Those Big Boneheads! (VHS) - I love this show!I'm 12 already and I still like this show. You'll laugh and learn.I have not seen the dinosaur episode but I want to!If you have a child who loves science and wants to laugh then get ...
$94.50
The Complete Calvin and Hobbes (Calvin & Hobbes) (v. 1, 2, 3) - I grew up reading Calvin and Hobbes. I used to rush to get the paper every morning, just so I could check out the latest strip. I was really psyched to see this completely collection on Amazon - but...
$6.49
Conan the Barbarian - Collector's Edition - What's better, VH with Sammy Hagar or VH with David Lee Roth? They're both EQUALLY good BECAUSE they're different. You don't have to choose one over the other. Just like breakfast and dinner. Have one...
$12.49
Dr. Strangelove, Or: How I Learned to Stop Worrying and Love the Bomb (Special Edition) - This is an important classic movie. Brilliantly conceived and directed by Stanley Kubrick. Peter Sellers is fantastic in multiple roles. It's as fresh and relevant today as it was then. I've seen it m...
$7.99
Dune (Dune Chronicles, Book 1) - I have read very little sci-fi, but have been curious to explore the genre. My husband and brother-in-law, both sci-fi geeks, recommended DUNE as a must-read that has in many ways become the gold stan...
$6.99
Ender's Game (Ender, Book 1) - This book is amazing! The characters are stunning, the ideas mind boggleing, the storyline excellent, and the thought process is the perfect compination of interesting and sleep depriving. Orson Scott...
$9.99
The Fifth Element - When this movie first came out, I didn't understand what it was really about but liked all the colors since I was young. However, re-watching it a few years ago I feel in love with it. I never get bo...
$34.99
Firefly - The Complete Series - I hate ALL the Star Trek TV Series (I did love the new reboot movie, and enjoy most of the original movies mostly as a window to some cheesy, outdated, but well-intentioned special effects). I hate B...
$15.61
Gödel, Escher, Bach: An Eternal Golden Braid - I've read this book, on and off, over the better part of the last 4 years. It is certainly a fascinating read, the kind of book that effortlessly discusses everything from computers to art, from para...
$20.49
The Hidden Fortress - Criterion Collection - I couldn't play this at all. NEVER AGAIN will I buy DVDs from Amazon.
$12.49
History of the World Part I - Now this MEL I love!
Brooks cracks me up in all his films but this one is spectacular!
Funny from start to finish!
$7.99
The Hitchhiker's Guide to the Galaxy - This is a fantastic book for the teenage mind, especially if you have appreciation for mathematical or scientific concepts (but you don't need any background in either subject, just appreciation for i...
$5.99
King Lear (The New Folger Library Shakespeare) - When I expressed my distaste of the book, my teacher was quick to comment that my generation can't fully grasp the emotional value of the book. Frankly, I don't think that was the problem. Shakespeare...
$50.99
The Lord of the Rings - The Motion Picture Trilogy (Platinum Series Special Extended Edition) - This specials extended editions are the greatest I've ever seen! Many minutes added and very good extras! Recommend it!
$8.99
Monty Python and the Holy Grail (Special Edition) - Product arrived on time. DVD was in new condition (excellent). Price was outstanding.
$15.99
Munchkin - I was introduced to munchkin at school, where a kid brought the cards to the lunch table and we played. It's really easy to learn how to play, and not hard to set up. I myself play D&D, and I found t...
$39.99
The Mystery Science Theater 3000 Collection, Vol. 1 (Bloodlust / Catalina Caper / The Creeping Terror / Skydivers) - Let me get this out of the way. I'm a Mike guy. I find all the Mike episodes hilarious, but I can't stand Joel Hodgeson. The guy seemed constantly baked or at least half asleep the whole time and I...
$7.99
Neuromancer - This book is phenomenal. Neuromancer is part of the Sprawl Trilogy. The book was written in 1983 and has influenced and shaped the world of today and perhaps scores of computer scientists who have wor...
$25.83
On Food and Cooking: The Science and Lore of the Kitchen - i've been a chef for 30 years, studied food science and technology and worked in the food manufacturing industry....this book is a must for any chef or food technologist. not a cookbook but an explana...
$8.49
The Princess Bride (Special Edition) - Come my love, I'll tell you a tale. A tale with fencing, fighting, giants, miracles, and the kind of true love only found in storybook stories.

The Princess Bride is one of the best, if n...
$16.47
Silman's Complete Endgame Course: From Beginner To Master - The basics are concisely covered in the first few chapters. Pure chess and brain food is at the end of the book when Silman talks about the greatest endgame players of all time and describes the ches...
$10.20
Snow Crash (Bantam Spectra Book) - the places where the author goes into religious history are quite painful. those sections really could have done with some editing. most of the details are irrelevant to the story and uninteresting in...
$14.98
Spaceballs - Seeing Spaceballs after the passing of some twenty years is a vastly different experience than seeing it in the theatre was all those years ago. After spoofing the western, the horror genre and silent...
$54.49
Star Trek: The Original Series - Season One (Remastered Edition) - Disclosure: I generally do not like CGI effects, however, in the case of Trek I am very impressed. Gene Roddenberry must be smiling in Trek heaven at this generally noble restoration and enhancement o...
$11.49
Star Trek II: The Wrath of Khan - The Director's Cut (Two-Disc Special Collector's Edition) - Star Trek is too boring compared to Star Wars, some say. This changes that. This movie is about two ships and two captains battling for their lives in a duel to the death. Nemesis is the same concept....
$47.99
Star Wars Trilogy (Widescreen Edition with Bonus Disc) - I think I realised I made a mistake almost immediately upon putting this on my dvd player years back when I was a lot less knowledgable about aspect ratios and picture and sound quality issues overall...
$44.95
Tron (20th Anniversary Collector's Edition) - "Greetings programs!" - Before The Matrix Trilogy, Ultraviolet, Sky Captain and the World of Tomorrow, The Last Starfighter and CG animated favorites; Kung-Fu Panda, Shrek, Ice Age, and others from Pi...
$24.54
LEGO Ultimate Building Set - 405 Pieces (6166) - A good starter set for youngsters moving up from the Duplo sets. Included pictures help kids to figure out what they might like to build, whether it's following the picture exactly or build something ...
$35.49
Yojimbo - Remastered Edition (The Criterion Collection) Spine #52) - It begins with a stick falling in the road, pointing a ronin on a journey into a town beset with problems. Toshiro Mifune is given quite a welcome to the town which is both funny and also truly displ...
  1. No comments yet.
(will not be published)
  1. No trackbacks yet.
Quick Coupons!
Abe's of Maine: Actually , if you buy a product more than $75, you can use FRIEND10 coupon code to get extra $10 off!