Newbie: Please check my configuration files to make sure I won't bring down DNS
Maurizio Cimaschi
mcc at iol.it
Sun Jul 30 14:31:09 UTC 2000
On Sat, Jul 29, 2000 at 04:49:51PM +0000, Manuel McLure wrote:
> I also want to maintain a zone "internal.mclure.org" for the machines
> on the internal masqueraded network (10.1.1/24). There will be no slave
I think it's better "internal."
> zone "internal.mclure.org" {
> type master;
> file "zone/internal.mclure.org.db";
> allow-transfer {
> 10.1.1/24;
> };
> allow-query {
> 10.1.1/24;
> };
> };
I'll change to:
zone "internal." {
type master;
file "zone/internal.db";
allow-transfer {
10.1.1/24;
};
allow-query {
10.1.1/24;
};
};
> --------------- /var/named/zone/10.1.1.db ---------------------------------
> $TTL 86400
> @ IN SOA leng.internal.mclure.org. root.leng.internal.mclure.org. (
> 2000062200 ; serial
> 28800 ; refresh
> 7200 ; retry
> 604800 ; expire
> 86400 ; default_ttl
> )
> @ IN NS leng.internal.mclure.org.
> 2 IN PTR ulthar.internal.mclure.org.
> 3 IN PTR roach.internal.mclure.org.
> 1 IN PTR leng.internal.mclure.org.
> ---------------------------------------------------------------------------
I'll change to:
--------------- /var/named/zone/10.1.1.db ---------------------------------
$TTL 86400
@ IN SOA leng.mclure.org. root.leng.mclure.org. (
2000062200 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS leng.internal.
2 IN PTR ulthar.internal.
3 IN PTR roach.internal.
1 IN PTR leng.internal.
---------------------------------------------------------------------------
> --------------- /var/named/zone/127.0.0.db --------------------------------
> $TTL 86400
> @ IN SOA leng.internal.mclure.org. root.leng.internal.mclure.org. (
> 2000062004 ; serial
> 28800 ; refresh
> 7200 ; retry
> 604800 ; expire
> 86400 ; default_ttl
> )
> @ IN NS leng.internal.mclure.org.
> 1 IN PTR localhost
!! The trailing DOT !!
> ---------------------------------------------------------------------------
--------------- /var/named/zone/127.0.0.db --------------------------------
$TTL 86400
@ IN SOA leng.mclure.org. root.leng.mclure.org. (
2000062004 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS leng.internal.
1 IN PTR localhost.
---------------------------------------------------------------------------
> --------------- /var/named/zone/internal.mclure.org.db --------------------
> $TTL 86400
> @ IN SOA leng.internal.mclure.org. root.leng.internal.mclure.org. (
> 2000062004 ; serial
> 28800 ; refresh
> 7200 ; retry
> 604800 ; expire
> 86400 ; default_ttl
> )
> localhost IN A 127.0.0.1
> ulthar IN A 10.1.1.2
> ulthar IN HINFO "Celeron" "Linux 2.2.14"
> roach IN A 10.1.1.3
> roach IN HINFO "AMD K6-3" "Windows 98"
> leng IN HINFO "Pentium MMX" "Linux 2.2.14"
> news IN CNAME leng
> mail IN CNAME leng
> leng IN A 10.1.1.1
> @ IN NS leng.internal.mclure.org.
> ---------------------------------------------------------------------------
--------------- /var/named/zone/internal.db --------------------
$TTL 86400
@ IN SOA leng.mclure.org. root.leng.mclure.org. (
2000062004 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS leng.mclure.org.
localhost IN A 127.0.0.1
ulthar IN A 10.1.1.2
ulthar IN HINFO "Celeron" "Linux 2.2.14"
roach IN A 10.1.1.3
roach IN HINFO "AMD K6-3" "Windows 98"
leng IN HINFO "Pentium MMX" "Linux 2.2.14"
news IN CNAME leng
; mail IN CNAME leng
; in fact there's is no MX record for internal, so why a such RR ??
leng IN A 10.1.1.1
---------------------------------------------------------------------------
> --------------- /var/named/zone/mclure.org.db -----------------------------
> $TTL 86400
> @ IN SOA leng.mclure.org. root.leng.mclure.org. (
> 2000062004 ; serial
> 28800 ; refresh
> 7200 ; retry
> 604800 ; expire
> 86400 ; default_ttl
> )
> leng IN HINFO "Pentium MMX" "Linux 2.2.14"
> news IN CNAME leng
> mail IN CNAME leng
I'would comment this, in fact it's not an error: but simply I don't like.
> www IN CNAME leng
> leng IN A 64.81.20.149
> @ IN NS leng.mclure.org.
> IN NS ns1.speakeasy.net.
> IN MX 0 leng.mclure.org.
> leng.mclure.org. IN MX 0 leng.mclure.org.
While the sub-domain leng has a A record, the last RR is not nedeed.
--
Ciao, Maurizio.
More information about the bind-users
mailing list