I am having a couple of issues with my Bind installation on my CentOS server.
1) Everynow and then the following command won't work. It can literally be working one minute and not the next and I cannot figure out why.
host
www.domain.com
>
www.domain.com is an alias for domain.com.
> domain.com has address xx.xxx.xxx.xx
host
www.domain.com
> Host
www.domain.com not found: 2(SERVFAIL)
2) I have some contact forms on my web site powered with PHP. These should get sent to addressATdomain.com but everynow and then I find them stuck in my sendmail queue trying to be delivered to addressATphx1-ss-2-lb.cnet.com and I can't for the life of me figure out why.
I have been searching through this forum and others for quite a while and I have not been able to find a solution to either problem. I have checked through the maillog and messages log and cannot find any indication as to what might be causing the problems. I have included some conf files below but if you need any others let me know.
Thanks for any help
Martin
named.conf
options {
directory "/var/named";
recursion no;
};
include "/etc/rndc.key";
logging {
channel query_log {
severity info;
print-time yes;
file "/var/named/data/query.log" versions 3 size 100M;
};
channel activity_log {
severity info;
print-time yes;
print-category yes;
print-severity yes;
file "/var/named/data/activity.log" versions 3 size 100M;
};
category queries { query_log; };
category default { activity_log; };
category xfer-in { activity_log; };
category xfer-out { activity_log; };
category notify { activity_log; };
category security { activity_log; };
category update { activity_log; };
category network { null; };
category lame-servers { null; };
};
###############################################################################
# Zone Configuration
###############################################################################
# Specify the root name servers
zone "." IN {
type hint;
file "/etc/named.root";
};
zone "domain.com" {
type master;
file "/var/named/zones/domain.com.zone";
notify yes;
allow-update { none; };
};
domain.com.zone
$TTL 60H
domain.com. IN SOA ns1.domain.com. postmaster.domain.com. (
2008042702 ;
10800 ;
3600 ;
604800 ;
3600 );
domain.com. IN NS ns1.domain.com.
domain.com. IN NS ns2.domain.com.
domain.com. IN A xx.xxx.xxx.xx
www IN CNAME domain.com.
domain.com. IN MX 10 domain.com.
domain.com. IN TXT "v=spf1 a mx -all"
host.conf
order hosts,bind
hosts
127.0.0.1 localhost.localdomain localhost
xx.xxx.xxx.xx domain.com primary
resolv.conf
nameserver 66.118.170.2
nameserver 66.118.170.3
nsswitch.conf
hosts: files dns