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