Skip to Main Content
Linux System Administration
book

Linux System Administration

by Tom Adelstein, Bill Lubanovic
March 2007
Intermediate to advanced content levelIntermediate to advanced
304 pages
11h 12m
English
O'Reilly Media, Inc.
Content preview from Linux System Administration
60
|
Chapter 3: The Domain Name System
PTR records
PTR is short for Pointer, and that’s what it is: a pointer to a domain name. Let’s create
one by starting with the IP address of centralsoft.org, 70.253.158.42. The named.conf
file has already indicated, through the
zone statement we showed in the previous sec-
tion, that this file defines hosts in the 70.253.158 domain. So all the
PTR record has to
specify is the final host part of the IP address, 42:
42 PTR centralsoft.org.
Create exactly one PTR record for each IP address in your domain. For our example,
the only other IP address we use is 70.253.158.45 (for server2.centralsoft.org), so we
add:
45 PTR server2.centralsoft.org.
That’s all. Our reverse zone file looks now like this:
@ IN SOA server1.centralsoft.org. root.localhost. (
2006012103; serial-no
28800; refresh, seconds
7200; retry, seconds
604800; expiry, seconds
86400 ); minimum-TTL, seconds
;
NS server1.centralsoft.org.;
NS server2.centralsoft.org.;
42 PTR centralsoft.org.
45 PTR server2.centralsoft.org.
Testing Lookups
Once you’ve edited all the configuration and zone files, you need to let BIND know
about your changes. You can stop and start named as follows:
# /etc/init.d/bind9 stop
# /etc/init.d/bind9 start
If you get any errors or if your BIND service does not act as expected, please see the
upcoming troubleshooting section for details on the most common problems.
In the future, if the only ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux System Administration

Mastering Linux System Administration

Christine Bresnahan, Richard Blum
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9780596009526Supplemental ContentCatalog PageErrata