[TriLUG] forward zones
Scott Morris
scmorris at ifndef.com
Tue Aug 5 16:55:54 EDT 2003
you should only need one forward zone and one reverse zone file.
zone "fakedomain.com" {
type master;
file "master/fakedomain.com.db";
}
zone "1.168.192.in-addr.arpa." {
type master;
file "master/1.168.192.db";
};
su-2.05a# more 1.168.192.db
$ORIGIN .
$TTL 7200 ; 2 hours
1.168.192.in-addr.arpa IN SOA ns1.martel.ifndef.com.
root.fackedomain.com. (
282 ; serial
21600 ; refresh (6 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
10800 ; minimum (3 hours)
)
NS boss.fakedomain.com.
$ORIGIN 1.168.192.in-addr.arpa.
1 PTR homework.fakedomain.com.
9 PTR boss.fakedomain.com.
su-2.05a# more fakedomain.com.db
$ORIGIN .
$TTL 7200 ; 2 hours
fakedomain.com IN SOA fakedomain.com.
hostmaster.fakedomain.com.
(
1265 ; serial
28800 ; refresh (8 hours)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS boss.fakedomain.com.
A 192.168.1.9
$ORIGIN fakedomain.com.
boss A 192.168.1.9
homework A 192.168.1.1
Scott Morris KG4ZYA scmorris at ifndef.com
Cleverly Disguised As A Responsible Adult.
pub 1024D/146D0BC9 2000-11-29 scmorris
Key fingerprint = 5348 7697 85AA 2117 8E7C 9A13 26BA C4FF 146D 0BC9
On Tue, 5 Aug 2003, Scott Lundgren wrote:
> I added a third box to my home network and decided to setup a name server
> for them all. Can someone explain to me if the following is a difference in
> how I was expecting a config tool to work or a gap in my understanding of
> DNS
>
> Using RH9, redhat-config-bind I first created a reverse zone
> "1.168.192.in-addr.arpa"
> Then I added records for:
> 192.168.1.1 athos
> 192.168.1.2 porthos
> 192.168.1.3 dartagnan
>
> My thinking was that I would then do the same but backwards to create the
> forward zone. However I found that if I tried to add records to the only
> forward zone, localhost (athos's localhost is acting as the nameserver), the
> only records I could were to <blank>.localhost (which I thought would have
> been subdomains to localhost). Instead I added 3 new Forward Master Zone
> records, one for each box. Everything works, each box can ping & nmap each
> other box by IP & hostname since all 3 use athos for a gateway & nameserver.
> So are forward zones created per machine than per network segement like
> reverse zones ? Or is something seemingly working but probably isn't?
>
> - SL
>
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
More information about the TriLUG
mailing list