Solved

How to set reverse zone for to different IP subnets

Posted on 2011-03-09
4
443 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now