Hello

sorcerer

New member
Joined
Mar 13, 2009
Messages
2
Could any body help me with my DNS.
The problem is that I cant't host new domain.

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";
zone "server.h4l.pl" { type master; file "/etc/bind/server.h4l.pl.db"; };
zone "h4l.pl" { type master; file "/etc/bind/h4l.pl.db";allow-transfer { 213.186.33.199; };
        notify yes; };
zone "cs.h4l.pl" { type master; file "/etc/bind/cs.h4l.pl.db"; };

zone "4drive.info" { type master; file "/etc/bind/4drive.info.db"; };

h4l.pl - Zone conf

Code:
$TTL 14400
@       IN      SOA     ns1.h4l.pl.      hostmaster.h4l.pl. (
                                                2009031306
                                                14400
                                                3600
                                                1209600
                                                86400 )

h4l.pl. 14400   IN      NS      ns1.h4l.pl.

h4l.pl. 14400   IN      NS      ns2.h4l.pl.

ftp     14400   IN      A       94.23.39.18
h4l.pl. 14400   IN      A       94.23.39.18
localhost       14400   IN      A       127.0.0.1
mail    14400   IN      A       94.23.39.18
ns1.h4l.pl.     14400   IN      A       94.23.39.18
ns2.h4l.pl.     14400   IN      A       213.186.33.199
pop     14400   IN      A       94.23.39.18
smtp    14400   IN      A       94.23.39.18
www     14400   IN      A       94.23.39.18

h4l.pl. 14400   IN      MX      10 mail



h4l.pl. 14400   IN      TXT     "v=spf1 a mx ip4:94.23.39.18 ~all"

As u can see I have added new domain: 4drive.info
4drive.inof - Zone conf
Code:
$TTL 14400
@       IN      SOA     ns1.h4l.pl.      hostmaster.4drive.info. (
                                                2009031300
                                                14400
                                                3600
                                                1209600
                                                86400 )

4drive.info.    14400   IN      NS      ns1.h4l.pl.
4drive.info.    14400   IN      NS      ns2.h4l.pl.

4drive.info.    14400   IN      A       94.23.39.18
ftp     14400   IN      A       94.23.39.18
localhost       14400   IN      A       127.0.0.1
mail    14400   IN      A       94.23.39.18
pop     14400   IN      A       94.23.39.18
smtp    14400   IN      A       94.23.39.18
www     14400   IN      A       94.23.39.18

4drive.info.    14400   IN      MX      10 mail



4drive.info.    14400   IN      TXT     "v=spf1 a mx ip4:94.23.39.18 ~all"


Few days after the domain is not working properly, I can't see any pages. But if I add in domain redirection on IP, then everything is fine. The same thing is happening
with any other new domans redirected on my DNS servers(ns1.h4l.pl,ns2.h4l.pl).
Can anybody give me a hand with this issue? I do not really know what I have missed.
 
Both ns1 and ns2.h4l.pl are on the same IP.

Your zone file may be correct, but you probably registered the nameservers with duplicate IPs.
 
ns1 and 2

It is crrect or not?
h4l.pl - Zone conf

ns1.h4l.pl. 14400 IN A 94.23.39.18
ns2.h4l.pl. 14400 IN A 213.186.33.199

I ve got two diferent IP's defined as A record in zone h4l.pl(main zone).

If is not correct Is any other way to define my ns1 and 2 to look like above?
 
Your zone file may be correct, but again, you registered both nameservers with the same IP at your registrars. A simple ping will show you that.
 
Back
Top