UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Tutorials / How to?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 20-05-2007, 14:52
flesso's Avatar
Premium Member
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,315
Default Turning Off DNS Recursion For Bind

DNS recursion / open DNS server is when your DNS server is readily available to do DNS lookups for the general public. If you are an open DNS server it is most likely that your server will get abused by spammers and others alike, and is very resource consuming. If you need to turn DNS recursion off for your Bind installation, follow these steps

Note: You need to have root access to the server to be able to do this.
Note: It's not PHP code, it's just the first button I could find.

1) To check if your name servers are open DNS servers, run a DNS report for your domain. This can be done by going to http://www.dnsreport.com.

2) If DNS report tells you that your name servers are open DNS servers, login to your name servers as root via SSH.

3) Open the named config file for editing by running the following command:

vi /etc/named.conf

To start editing press 'shift' and 'i'.

4) Scroll down to the following section of the config file:

PHP Code:
options {
        
directory "/var/named";
        
dump-file "/var/named/data/cache_dump.db";
        
statistics-file "/var/named/data/named_stats.txt";
        
/*
         * 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; 
5) Move your cursor down to the end of the following line:

PHP Code:
        statistics-file "/var/named/data/named_stats.txt"
6) Press 'return' for a new line and enter the following:

PHP Code:
recursion no
After editing, it should look like the following


PHP Code:
options {
        
directory "/var/named";
        
dump-file "/var/named/data/cache_dump.db";
        
statistics-file "/var/named/data/named_stats.txt";
        
recursion no;
        
/*
         * 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; 
Save and exit by doing the following:

Press 'esc' > Type ':wq' > Press 'return'

9) That's the config file saved, now to restart named by issuing the following command:

/etc/init.d/named restart
__________________
Regards,
Josh Hold


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Over 1000 Computer Related Articles to Sink Your Teeth Into!



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Gig Listings for London


Super Moderator
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


I'm only a forum gremlin (moderator), and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.

I don't bite, honest.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:38.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles