Hey all.
I am trying to configure BIND on RH Linux to resolve any domain that's pointed to the name server(s) to a specific IP, without adding the domain to name server.
The purpose of this is so that I'll be able to set a domain's name servers to ns1.domain.com and ns2.domain.com and it will resolve to my server immidiately, without having to add it to the hosting.
This is my named.conf:
==========================================================
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};
options {
allow-transfer { 127.0.0.1; };
allow-recursion { 127.0.0.1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
zone "." IN {
type master;
file "/var/named/rootzone.db";
};
==========================================================
and this is rootzone.db:
==========================================================
$TTL 14400
$ORIGIN .
@ 86400 IN SOA ns1.domain.com. idan.domain.com. (
2008031002
86400
7200
3600000
86400
)
IN NS ns1.domain.com.
IN NS ns2.domain.com.
* 14400 IN A 1.2.3.4
==========================================================
Any idea what am I doing wrong ? I've looked everywhere but to no avail.
HELP!
Thanks
Idan
I am trying to configure BIND on RH Linux to resolve any domain that's pointed to the name server(s) to a specific IP, without adding the domain to name server.
The purpose of this is so that I'll be able to set a domain's name servers to ns1.domain.com and ns2.domain.com and it will resolve to my server immidiately, without having to add it to the hosting.
This is my named.conf:
==========================================================
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};
options {
allow-transfer { 127.0.0.1; };
allow-recursion { 127.0.0.1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
zone "." IN {
type master;
file "/var/named/rootzone.db";
};
==========================================================
and this is rootzone.db:
==========================================================
$TTL 14400
$ORIGIN .
@ 86400 IN SOA ns1.domain.com. idan.domain.com. (
2008031002
86400
7200
3600000
86400
)
IN NS ns1.domain.com.
IN NS ns2.domain.com.
* 14400 IN A 1.2.3.4
==========================================================
Any idea what am I doing wrong ? I've looked everywhere but to no avail.
HELP!
Thanks
Idan