Current time: 09-23-2024, 04:38 PM Hello There, Guest! (LoginRegister)


Post Reply 
BIND NOT RESOLVING HOSTNAME
Author Message
Somel Offline
Newbie
*

Posts: 5
Joined: Apr 2009
Reputation: 0
Post: #1
Exclamation BIND NOT RESOLVING HOSTNAME
Hi Guys,

Bind9 Query...

I have installed ispcp... several times now... and i'm starting to thinking in move to another control panel. However yestarday i give it another chance. Everything seems ok except a problem with DNS.

The service is running on my main address and is detected by ispcp, when you add a domain, zones are created. However bind9 seems even internally (127.0.0.1) not to resolve the new zones.

eth0= xxx.xxx.xxx.43
eth0:0= xxx.xxx.xxx.61

Code:
telnet xxx.xxx.xxx.43 53
Trying xxx.xxx.xxx.43...
Connected to xxx.xxx.xxx.43.
Escape character is '^]'.

Code:
telnet xxx.xxx.xxx 53
Trying xxx.xxx.xxx.61...
Connected to xxx.xxx.xxx.61.
Escape character is '^]'.

Code:
# nslookup mydomainispcp.tld
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from xxx.xxx.xxx.43, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from xxx.xxx.xxx.43, trying next server
Server:         xxx.xxx.xxx.61
Address:        xxx.xxx.xxx.61#53

** server can't find domainispcp.tld.mymaindomain.tld: SERVFAIL

Named.conf

Code:
// 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 [mydomain.tld] cfg entry BEGIN.
zone "mydomain.tld" {
        type    master;
        file    "/var/cache/bind/mydomain.tld.db";
  notify  YES;
};
// dmn [mydomain.tld] cfg entry END.

// dmn [domainispcp.tld] cfg entry BEGIN.
zone "domainispcp.tld" {
        type    master;
        file    "/var/cache/bind/domainispcp.tld.db";
        notify  YES;
};
// dmn [domainispcp.tld] cfg entry END.

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

any Ideias???

Kid Regards, somel[/i]
05-01-2009 01:09 AM
Find all posts by this user Quote this message in a reply
robbo007 Offline
Junior Member
*

Posts: 136
Joined: Apr 2009
Reputation: 0
Post: #2
RE: BIND NOT RESOLVING HOSTNAME
Did you check in /var/cache/bind to see if your .db file for that domain was created and is correctly configured with your external IP address? Bind uses your external IP and not your internal. I'm a beginner and just solved some bind issues on my server. Brain Melting stuff...

Rob
05-06-2009 12:26 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: #3
RE: BIND NOT RESOLVING HOSTNAME
1: Do not use all-uppercase subjects on posts, it is really disgusting.
2: We're sorry that you had a bad experience with this community maintained software. That said, we look forward for your help on making it better. Thanks.
3: Your named.conf shows zones for "mydomain.tld" and "domainispcp.tld", but nothing about "mymaindomain.tld" (which appears in the nslookup error). Please post the "xxxx.tld.db" files as they are, tell us which OS/Distro are you using and which fqdn you had chosen when installing ispcp.
05-06-2009 12:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Somel Offline
Newbie
*

Posts: 5
Joined: Apr 2009
Reputation: 0
Post: #4
RE: BIND NOT RESOLVING HOSTNAME
Hi robbo007 the domain was created correctly in the correct places.

Killburn sorry for the caps.

I was able to solve the problem, it seems that bind needed to have itself pointed in resolv.conf

so my resolv.conf ended up like this:

Code:
Nameserver 127.0.0.1
Nameserver MY_publicIP
Nameserver DNS_ISP_SERVER
05-06-2009 01:04 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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