icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Private Hosting » How To Fix Open Nameservers

Private Hosting Questions about VPS, dedicated servers and colocation.

Reply
 
LinkBack Thread Tools Search this Thread
Old May 17th, 2007, 1:24 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2007
Lives in Reading, UK
Hosted on reheat.abndns.net (dedi)
32 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
Exclamation How To Fix Open Nameservers

For those of you who check your nameservers and other DNS related issues using the popular site dnsreport you're probably seeing Fail Open DNS Servers. Here I will show you have to fixed named to close open dns servers.


How do I check my system?
Go to www.dnsreport.com and enter your domain name, eg surpasshosting.com


You’re safe if you see:
PASS Open DNS servers

You need to follow this tutorial if you see:
FAIL Open DNS servers


Closing Open DNS Servers Tutorial

1) Login to your server and su to root.

2) Edit the /etc/named.conf file such as:# vi /etc/named.conf

Look for:
key "rndckey" {
};

After this add the following, replacing mainIP and secondaryIP with your systems nameservers.
acl "trusted" {
mainIP;secondaryIP;127.0.0.1;
};

3) After that’s done you want to add the section that says only the trusted is allowed for certain functions. Check your options area and make sure you add the following:
allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };

So the final result looks something like:
options {
directory "/var/named";
allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };
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;
};

4) Save the changes and restart the named service: service named restart

5) Recheck your site at dnsreport.com All should now be fixed!
__________________
Toby|ABN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks Toby|ABN for this great post!
mgk (May 17th, 2007)
Old May 17th, 2007, 1:26 PM   #2 (permalink)
mgk
Registered User
Excelling Contributor
 
Joined in Mar 2007
Lives in Wales
Hosted on dime999
620 posts
Gave thanks: 47
Thanked 46 times
Obviously as a shared or reseller customer that would need to be done by surpass rather than yourself
__________________
Markus
mgk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 17th, 2007, 1:37 PM   #3 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2007
Lives in Reading, UK
Hosted on reheat.abndns.net (dedi)
32 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
that is why its in the "dedicated server" forum
__________________
Toby|ABN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 17th, 2007, 1:43 PM   #4 (permalink)
mgk
Registered User
Excelling Contributor
 
Joined in Mar 2007
Lives in Wales
Hosted on dime999
620 posts
Gave thanks: 47
Thanked 46 times
grin - I just read everything .... That aside. I wish surpass would do that on all servers anyhow
__________________
Markus
mgk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 17th, 2007, 1:48 PM   #5 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2007
Lives in Reading, UK
Hosted on reheat.abndns.net (dedi)
32 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
It took about 5min to do on my server, 5*how many servers surpass have is probably quite a while actually... I'm not sure what the benefits are of closing them but one of my clients was making a big fuss about it so I had to get it sorted!
__________________
Toby|ABN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 17th, 2007, 1:58 PM   #6 (permalink)
mgk
Registered User
Excelling Contributor
 
Joined in Mar 2007
Lives in Wales
Hosted on dime999
620 posts
Gave thanks: 47
Thanked 46 times
not an urgent matter - but it just gives a good impression.
__________________
Markus
mgk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 18th, 2007, 1:12 PM   #7 (permalink)
Insanely
Super #1
 
Skipdawg's Avatar
 
Joined in Jul 2005
Lives in Northwest USA
4,154 posts
Gave thanks: 39
Thanked 78 times
Quote:
Originally Posted by mgk View Post
Obviously as a shared or reseller customer that would need to be done by surpass rather than yourself
Yea agree. Never have understood why that have their default set that way.
__________________
Skipdawg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 18th, 2007, 1:35 PM   #8 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2007
Lives in Reading, UK
Hosted on reheat.abndns.net (dedi)
32 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
It is rather weird that they do acutally, considering the fuss that some people make about it!
__________________
Toby|ABN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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