Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to set reverse zone for to different IP subnets

Posted on 2011-03-09
4
Medium Priority
?
508 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 2000 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

618 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