Solved

How to set reverse zone for to different IP subnets

Posted on 2011-03-09
4
485 Views
Last Modified: 2012-05-11
Hi to all,

We host two nameserver ns1.example.com and ns2.example.com.
ns1.example.com: 76.100.224.4
ns2.example.com: 76.100.225.5

have to create reverse zone on both servers. my both nameservers are identical, but in this case because reverse zone has this structure db.external.76.100.224, how can I add second one that is 255 for other server.

Setting for ns1.example.com

$TTL    900

@           IN SOA  example.com . hostmaster.example.com . (
                                201010   ; serial
                                1080      ; refresh (3 hours)
                                800        ; retry (15 minutes)
                                64800     ; expire (1 week)
                                10900      ; minimum change to 600
                                )

; server host definitions
        IN  NS          ns1.example.com .
        IN  NS          ns2.example.com .
4     IN  PTR         ns1.example.com .
136     IN  PTR         mail1.example.com .
137     IN  PTR         mail2.example.com .


The name.conf file is as following

      zone "224.100.76.in-addr.arpa" in {
          type master;
          allow-update { none; };
          file "zone/db.external. 76.100.224";
      //allow-query { internal; };
    };
0
Comment
Question by:uknet80
  • 2
  • 2
4 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 500 total points
ID: 35105963
I'm not pretty sure what You mean by "how can I add second one that is 255 for other server."

Anyway, I understand You already have reverse zone configured for 76.100.224 network, do the same for 76.100.225, that is
- create zone/db.external.76.100.225 file with similar content(PTR records should be probably changed)
- create named.conf entry
zone "225.100.76.in-addr.arpa" in {
          type master;
          allow-update { none; };
          file "zone/db.external.76.100.225";
    };
- create named.conf slave entry on ns2.example.com like
zone "225.100.76.in-addr.arpa" in {
    type slave;
    file "slaves/db.external.76.100.225";
    masters { ip.of.ns1.example.com; };
};
0
 

Author Comment

by:uknet80
ID: 35120025
my question was if i have two different subnets 76.100.224 and 76.100.225. can i create a single zone file for both subnets. something like "/22421.100.76.in-addr.arp?
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 500 total points
ID: 35120131
two subnets equals to revDNS zones(domains). You can point two different zones/domains to same file, but then both domains will shares same SOA/NS/PTR/etc records - 76.100.224.1 and 76.100.225.1 would solve to very same name - is that what You want?
If You want distinct PTR names for 76.100.224.1 and 76.100.225.1 then You need two zone files.
0
 

Author Closing Comment

by:uknet80
ID: 35125536
thanks
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question