Signal9Signal9 — home
online
back to labs

Reverse DNS: Serve a PTR Zone with BIND

MediumNetworking25-35 min
The brief

BIND serves a forward zone but no reverse zone, so IP→name lookups fail. Stand up an authoritative reverse (PTR) zone. Your assignment is in /root/case/assignment.env (REVZONE, FQDN, IP, OCTET, ZONEFILE).

Two tasks:

1. Declare the reverse zone in /etc/bind/named.conf.local — a zone "REVZONE" { type master; file "ZONEFILE"; }; block (type primary;, the newer spelling, is accepted too).

2. Write the zone file at ZONEFILE with a SOA, an NS, and a PTR record mapping the host OCTET to FQDN (with a trailing dot): OCTET IN PTR FQDN.

Graded on named.conf.local and the zone file — it does not start named. On a live server, named-checkzone REVZONE ZONEFILE validates it. See /root/case/brief.txt.

What you'll do
  • Declare an authoritative master reverse zone in named.conf.local
  • Point the zone at its zone file
  • Write a valid reverse zone file with SOA and NS
  • Add a PTR record mapping the address's host octet to the FQDN

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.