![]()  | ![]()  | 
Since the origin is appended to names, instead of entering robocop.movie.edu's address in db.movie.edu like this:
we could have entered it like this:robocop.movie.edu. IN A 192.249.249.2
In the db.192.24.249 file we entered this:robocop IN A 192.249.249.2
Since 249.249.192.in-addr.arpa is the origin, we could have entered:2.249.249.192.in-addr.arpa. IN PTR robocop.movie.edu.
Remember our earlier warning not to omit the trailing dot when using the fully qualified domain names? Suppose you forget the trailing dot. An entry like:2 IN PTR robocop.movie.edu.
turns into an entry for robocop.movie.edu.movie.edu, not what you intended at all.robocop.movie.edu IN A 192.249.249.2
@ IN SOA terminator.movie.edu. al.robocop.movie.edu. (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 hour
wormhole   IN A     192.249.249.1
           IN A     192.253.253.1
In the second address record, the name wormhole is implied. You can use this
shortcut even if the resource records are of different types.
Here are the contents of the file db.movie.edu:
$TTL 3h
;
; Origin added to names not ending
; in a dot: movie.edu
;
@ IN SOA terminator.movie.edu. al.robocop.movie.edu. (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 hour
;
; Name servers (The name '@' is implied)
;
           IN NS  terminator.movie.edu.
           IN NS  wormhole.movie.edu.
;
; Addresses for the canonical names
;
localhost  IN A     127.0.0.1
robocop    IN A     192.249.249.2
terminator IN A     192.249.249.3
diehard    IN A     192.249.249.4
misery     IN A     192.253.253.2
shining    IN A     192.253.253.3
carrie     IN A     192.253.253.4
wormhole   IN A     192.249.249.1
           IN A     192.253.253.1
;
; Aliases
;
bigt       IN CNAME terminator
dh         IN CNAME diehard
wh         IN CNAME wormhole
;
; Interface specific names
;
wh249      IN A     192.249.249.1
wh253      IN A     192.253.253.1
Here are the contents of the file db.192.249.249
:
$TTL 3h
;
; Origin added to names not ending
; in a dot: 249.249.192.in-addr.arpa
;
@ IN SOA terminator.movie.edu. al.robocop.movie.edu. (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 hour
;
; Name servers (The name '@' is implied)
;
   IN NS  terminator.movie.edu.
   IN NS  wormhole.movie.edu.
;
; Addresses point to canonical names
;
1  IN PTR wormhole.movie.edu.
2  IN PTR robocop.movie.edu.
3  IN PTR terminator.movie.edu.
4  IN PTR diehard.movie.edu.
Here are the contents of the file db.192.253.253:
$TTL 3h
;
; Origin added to names not ending
; in a dot: 253.253.192.in-addr.arpa
;
@ IN SOA terminator.movie.edu. al.robocop.movie.edu. (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 hour
;
; Name servers (The name '@' is implied)
;
   IN NS  terminator.movie.edu.
   IN NS  wormhole.movie.edu.
;
; Addresses point to canonical names
;
1  IN PTR wormhole.movie.edu.
2  IN PTR misery.movie.edu.
3  IN PTR shining.movie.edu.
4  IN PTR carrie.movie.edu.
Here are the contents of the file db.127.0.0 :
$TTL 3h
@ IN SOA terminator.movie.edu. al.robocop.movie.edu. (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 hour
   IN NS  terminator.movie.edu.
   IN NS  wormhole.movie.edu.
1  IN PTR localhost.
While looking at the new db.movie.edu file, you
may notice that we could have removed movie.edu from the host names of the SOA
and NS records like this:
@ IN SOA terminator al.robocop (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 day
  IN NS  terminator
  IN NS  wormhole
You can't do this in the other zone data files because their
origins are different. In db.movie.edu, we leave
these names as fully qualified domain names so that the NS and SOA
records are exactly the same for all the zone
data
files.