Current time: 11-15-2024, 05:34 PM Hello There, Guest! (LoginRegister)


Post Reply 
DNS & Domain Problem
Author Message
dannad Offline
Junior Member
*

Posts: 18
Joined: Aug 2009
Reputation: 0
Post: #1
DNS & Domain Problem
Hi,
I've just, at last, 'successfully' installed ispCP on my Debian Lenny VPS.
However, I think I have a problem with DNS/Bind as my domains won't work but the IP address of my server does which is why I have ruled out Apache as being the problem.

Bind is definitely running as 'named' is in the list when I use the command 'top'. My domain's nameservers are pointing to my VPSs IP.

Please tell me what I have done wrong Big Grin I have been through all the BIND files and everything but can't find anything wrong.

Thanks,
Dan
08-14-2009 07:59 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: DNS & Domain Problem
maybe this command helps:
apache2 -S

ping http://www.domain.tld pings to the ip of your server?

Is there a NAT somewhere (external IP != internal IP)

/J
08-14-2009 08:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dannad Offline
Junior Member
*

Posts: 18
Joined: Aug 2009
Reputation: 0
Post: #3
RE: DNS & Domain Problem
Hi Joximu,
I ran 'apache2 -S' but got an error:
"apache2: bad user name ${APACHE_RUN_USER}"

I've tried pinging it and no it doesn't ping to the ip of my VPS.

I have no idea about whether there is a NAT anywhere...

I used to have everything working with Webmin & Virtualmin, but then I wiped my server to use ispCP.

Thanks,
Dan

EDIT: I'm pretty sure it is something to do with BIND, my domain is definitely pointing to my server and apache is definitely working...
(This post was last modified: 08-14-2009 08:26 PM by dannad.)
08-14-2009 08:25 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: DNS & Domain Problem
ok, you need to replace the ${...} parts with other things...

since I don't know where this faulty string is, maybe make a
grep -r -C5 APACHE_RUN_USER /etc/apache2

and then post the result here...

/J
08-14-2009 09:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dannad Offline
Junior Member
*

Posts: 18
Joined: Aug 2009
Reputation: 0
Post: #5
RE: DNS & Domain Problem
Quote:/etc/apache2/apache2.conf- ThreadsPerChild 10
/etc/apache2/apache2.conf- MaxRequestsPerChild 0
/etc/apache2/apache2.conf-</IfModule>
/etc/apache2/apache2.conf-
/etc/apache2/apache2.conf-# These need to be set in /etc/apache2/envvars
/etc/apache2/apache2.conf:User ${APACHE_RUN_USER}
/etc/apache2/apache2.conf-Group ${APACHE_RUN_GROUP}
/etc/apache2/apache2.conf-
/etc/apache2/apache2.conf-#
/etc/apache2/apache2.conf-# AccessFileName: The name of the file to look for in each directory
/etc/apache2/apache2.conf-# for additional configuration directives. See also the AllowOverride
--
/etc/apache2/envvars-# envvars - default environment variables for apache2ctl
/etc/apache2/envvars-
/etc/apache2/envvars-# Since there is no sane way to get the parsed apache2 config in scripts, some
/etc/apache2/envvars-# settings are defined via environment variables and then used in apache2ctl,
/etc/apache2/envvars-# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
/etc/apache2/envvars:export APACHE_RUN_USER=www-data
/etc/apache2/envvars-export APACHE_RUN_GROUP=www-data
/etc/apache2/envvars-export APACHE_PID_FILE=/var/run/apache2.pid
08-15-2009 03:29 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: DNS & Domain Problem
Have you tried to resolve the domains using "host" or "nslookup"? Do they resolve correctly? Maybe you can send me one of this domains through PM so I can diagnose where things are going bad...

By the way, if you're quite sure it's a bind issue, please post the named-related lines in /var/log/syslog (grep -i named /var/log/syslog) so we can see if there's something strange there.
08-15-2009 03:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: DNS & Domain Problem
ah sorry - lenny is different:

apache2ctl -S

/J
08-15-2009 04:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
dannad Offline
Junior Member
*

Posts: 18
Joined: Aug 2009
Reputation: 0
Post: #8
RE: DNS & Domain Problem
(08-15-2009 03:55 AM)kilburn Wrote:  Have you tried to resolve the domains using "host" or "nslookup"? Do they resolve correctly? Maybe you can send me one of this domains through PM so I can diagnose where things are going bad...

No, they don't resolve using 'host' or 'nslookup'... I'll PM you in a moment.

Quote:By the way, if you're quite sure it's a bind issue, please post the named-related lines in /var/log/syslog (grep -i named /var/log/syslog) so we can see if there's something strange there.

There were a lot of lines... and I mean a lot... They were all in this format:
"Aug 14 23:35:26 server1 named[20217]: client 207.164.234.193#13950: query (cache) 'domain.co.uk/A/IN' denied"
Some slightly different than others...

(08-15-2009 04:42 AM)joximu Wrote:  ah sorry - lenny is different:

apache2ctl -S

/J

apache2ctl -S returned:

VirtualHost configuration:
69.162.68.4:80 admin.server1.hosting.domain.co.uk (/etc/apache2/sites-enabled/00_master.conf:24)
Syntax OK


Any help? I certainly don't understand it...

Thanks,
Dan
08-15-2009 07:06 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #9
RE: DNS & Domain Problem
Quote:"Aug 14 23:35:26 server1 named[20217]: client 207.164.234.193#13950: query (cache) 'domain.co.uk/A/IN' denied"

Your server is not configured as authoritative for this domain (domain.co.uk), so it refuses to resolve it for external clients. Please post your /etc/bind/named.conf file...
08-15-2009 09:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
dannad Offline
Junior Member
*

Posts: 18
Joined: Aug 2009
Reputation: 0
Post: #10
RE: DNS & Domain Problem
Here is my named.conf:
Quote:// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
type master;
file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

include "/etc/bind/named.conf.local";
// bind Data BEGIN.

// dmn [admin.server1.hosting.domain.co.uk] cfg entry BEGIN.
zone "admin.server1.hosting.domain.co.uk" {
type master;
file "/var/cache/bind/admin.server1.hosting.domain.co.uk.db";
notify YES;
};
// dmn [admin.server1.hosting.domain.co.uk] cfg entry END.

// dmn [{DMN_NAME}] cfg entry BEGIN.
// dmn [{DMN_NAME}] cfg entry END.

// bind Data END.
08-16-2009 06:57 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)