I have fedora core 6 on a dns server who is also a web and a mail server. the problem is that the website does`t work and I only can send e-mails. the name of the nameserver is server.domeniu.ro.
in the file domeniu.ro.hosts it is writen:
$ttl 38400
domeniu.ro. IN SOA domeniu.ro. postmaster.domeniu.ro. (
1204154104
10800
3600
604800
38400 )
domeniu.ro. IN NS server.domeniu.ro.
domeniu.ro. IN MX 5 mail
www IN A ip.pu.bl.ic
server IN A ip.pu.bl.ic
mail IN A ip.pu.bl.ic
the file domeniu. ro.zone is like this:
$ttl 38400
@ IN SOA domeniu.ro. root.domeniu.ro. (
1204154104
10800
3600
604800
38400 )
IN NS server.domeniu.ro.
IN MX 10 mail
#default.domeniu.ro. IN TXT "v=spf1 a mx ptr -all"
domeniu.ro IN A ip.pri.va.te
server IN A ip.pri.va.te
www IN A ip.pri.va.te
mail IN A ip.pri.va.te
named.conf is like this:
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
};
zone "." {
type hint;
file "/etc/db.cache";
};
key rndc-key {
algorithm hmac-md5;
secret " };
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
};
zone "domeniu.ro" {
type master;
file "/var/named/domeniu.ro.hosts";
};
hots file is like this:
ip.pri.va.te server.domeniu.ro localhost
where is the mistake?
in the file domeniu.ro.hosts it is writen:
$ttl 38400
domeniu.ro. IN SOA domeniu.ro. postmaster.domeniu.ro. (
1204154104
10800
3600
604800
38400 )
domeniu.ro. IN NS server.domeniu.ro.
domeniu.ro. IN MX 5 mail
www IN A ip.pu.bl.ic
server IN A ip.pu.bl.ic
mail IN A ip.pu.bl.ic
the file domeniu. ro.zone is like this:
$ttl 38400
@ IN SOA domeniu.ro. root.domeniu.ro. (
1204154104
10800
3600
604800
38400 )
IN NS server.domeniu.ro.
IN MX 10 mail
#default.domeniu.ro. IN TXT "v=spf1 a mx ptr -all"
domeniu.ro IN A ip.pri.va.te
server IN A ip.pri.va.te
www IN A ip.pri.va.te
mail IN A ip.pri.va.te
named.conf is like this:
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
};
zone "." {
type hint;
file "/etc/db.cache";
};
key rndc-key {
algorithm hmac-md5;
secret " };
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
};
zone "domeniu.ro" {
type master;
file "/var/named/domeniu.ro.hosts";
};
hots file is like this:
ip.pri.va.te server.domeniu.ro localhost
where is the mistake?