Random accessibility to my sites

aquadeluxe

Verified User
Joined
Jun 29, 2008
Messages
10
I am running CentOS 5 and have multiple domains on my server.
The problem is, for me and everyone else, is that I can only connect to some of my sites and the sites that I can view are always different.

Sometimes I can view site A and site B, but then maybe 30 minutes later, I can only view site B.
Everything was working fine a couple days ago.

The problem happens to everyone. These domains have been on these nameservers and on the server for over a month, so it shouldn't have a problem with propagation.

I know the server is up and running correctly because I can access DA and ssh through it by it's IP address and all of the services are running.

Is there anyway to troubleshoot this, because it is really bugging me. PM if you need to have access to the server.
 
At the time that site A (domain.com) for example dont work try from your pc (not your server)

host www.domain.com (linux) , nslookup www.domain.com (windows)
and see the results. If you got a response from your server,
then you should check your apache error logs at /var/log/httpd/error.log
If you don't i guess that dns system isn't working.

What you mean by you can't view site A? Do you get a can't find server in your browser? or you get a 40x,50x error page like permission denied etc?
Did you recently installed mod_security or suphp? It may be a permissions error..
 
When I run host mydomain.com , it just gives me:

Host *****.com not found: 2(SERVFAIL)

I haven't installed anything for apache recently.
 
Code:
// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * 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;
};

//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

include "/etc/rndc.key";

zone "*************" { type master; file "/var/named/**********db"; };
zone "*************" { type master; file "/var/named/**************.db"; };
zone "*****" { type master; file "/var/named/*********.db"; };
zone "*********" { type master; file "/var/named/********.db"; };
zone "************" { type master; file "/var/named/*********.db"; };
zone "************" { type master; file "/var/named/********.db"; };
zone "**********" { type master; file "/var/named/*********.db"; };
zone "*********" { type master; file "/var/named/*************.db"; };
zone "*****" { type master; file "/var/named/*****.db"; };

The asterisks are domain names, as you probably know. I didn't change anything to the file before this happened, so I don't know if this is the problem.

Thank you very much.
 
Well, it seems like I can't access any of the sites now, but I was at a friends house and the websites happened to load there.

When I do nslookup on any of my domains, it shows

Code:
Server: ******.com
Address: ***.***.***.***

*** xxxxxx.com can't find nslookup: Non-existent domain.

It shows the correct IP address of the server on any of the domains that I run nslookup with.

When I run the server command with the DNS server, it shows:

Code:
Default Server: xxx.xxx.xxx.xxx.xxxxxxxxxxx.com
Address: xxx.xxx.xxx.xxx

The default server's last prefix in the IP address is off by one digit, but I do own that IP address.


If it would help you more to know the actual IP address and other info, you can PM me, I'd rather it not be on the forum.

Thank you.
 
This is weird... It is working now.

Everything is working fine. I guess I don't need any help now.
 
The default server's last prefix in the IP address is off by one digit, but I do own that IP address.

I guess that you have one server running dns and DA.
If that's correct you may have 3 records in your dns setup:
server xxx.xxx.xxx.xxx
ns1 yyy.yyy.yyy.yyy
ns2 zzz.zzz.zzz.zzz

So the default server above should be one of ns1 or ns2 ip's.
My setup is (i can't afford to have more than one server):
have 3 ip's, one for server (www, email etc) and 2 for ns1 and ns2
I have in the options section of my named.conf :
listen-on { yyy.yyy.yyy.yyy; zzz.zzz.zzz.zzz; }; (ip for ns1 and ns2)
and in my firewall for the above ip's i only accept connections in port 53
for the ip of the www,email server i accept connections for the DA services except for port 53.



Generally for the problems I'd say that it's a dns problem in your home isp dns servers.
 
We've seen this before and here's one possible cause for the problem:

If you only have one physical DNS server, with either one or two IP#s pointing to it, and if that's all you have registered as the two required DNS servers for your domain, if for some reason your nameserver is down, you won't get the IP# address. But others may be in your cache, so you could see some sites but not others.

Nameservers can be down because someone has made a change to DNS that causes it to restart.

If you have only one physical DNS server you should try getting slave DNS to see if it resolves the problem.

Jeff
 
Back
Top