Help - Search - Members - Calendar
Full Version: Bind recursion issue
The Planet Forums > Control Panels > cPanel/WHM
Manuel
Hello,

Quick question about DNS.

I am using cPanel with RHEL4.

When I tried to fix open DNS server, I am when I try to close recursion using below mentioned paramente in named.conf under the "Option" clause:

recursion no;

after then when I login to my server with root access and try to ping any domain like yahoo or any I am receiving unknown host.

How to resolve this?
Catalyst
CODE
allow-recursion {127.0.0.1; xx.xx.xx.xx; yy.yy.yy.yy; };
Where xx... & yy... are your Server IP's
Manuel
Yes, it worked.

I have further checked in other forums and found the below post by chrispy:

QUOTE
#!/usr/bin/perl

@ips = `ifconfig`;
chomp @ips;

print "nnacl "trusted" {n";
foreach my $line (@ips) {
if ($line =~ /inet addr:(d+.d+.d+.d+)/) {
 print "        $1;n";
}
}
print "};nn";
print "options {n";
print "        directory "/var/named";n";
print "        dump-file "/var/named/data/cache_dump.db";n";
print "        statistics-file "/var/named/data/named_stats.txt";n";
print "        version "not currently available";n";
print "        allow-recursion { trusted; };n";
print "        allow-notify { trusted; };n";
print "        allow-transfer { trusted; };n";
print "};nn"

QUOTE

Replace the options section in named.conf with the output from the script.

Actually I was looking for "closing open DNS servers" as I found this when I did test via dnsreport.com
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.