Hi all,
I have bought a VPS and want to host my website on this machine.. the company where I bought it provided me with nameservers ips and hostnames for them so hostname for first nameserver is NS149210.RAPIDVPS.NET and it corresponds to 208.84.149.210 and hostname for secondary nameserver is NS15135.RAPIDVPS.NET and it corresponds to this ip 208.84.151.35 . I've installed caching-nameservers package and I'm using Centos 5 and here is my named.caching-nameserver.conf
Code:
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
query-source-v6 port 53;
allow-query { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
And zone file named "named.rfc1912.zones"
Code:
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "komentari.info" IN {
type master;
file "/var/named/komentari.info.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
Now I've modified zone file by adding my zone for my domain name which I want to host on this machine added this
Code:
zone "komentari.info" IN {
type master;
file "/var/named/komentari.info.zone";
allow-update { none; };
};
Then I created /var/named/chroot/var/named/komentari.info.zone with this content
Code:
$TTL 14400
@ 86400 IN SOA NS149210.RAPIDVPS.NET. hexteam.gmail.com. (
2008170717 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
komentari.info. 86400 IN NS NS149210.RAPIDVPS.NET.
komentari.info. 86400 IN NS NS15135.RAPIDVPS.NET.
komentari.info. IN A 208.84.149.210
localhost.komentari.info. IN A 127.0.0.1
komentari.info. IN MX 0 komentari.info.
mail IN CNAME komentari.info.
www IN CNAME komentari.info.
ftp IN CNAME komentari.info.
Then I created link "ln -s /var/named/chroot/var/named/ komentari.info.zone /var/named/komentari.info.zone"
Then I restarted named and apache and now I finally come to the question.. What am I doing wrong since I can't ping nor can't perform nslookup on komentari.info domain?
Thank you for any answers