dns

5
/etc/named.conf // BIND configuration file options { directory "/var/named"; // Place additional options here. }; zone "movie.edu" in { type master; file "db.movie.edu"; }; zone "249.249.192.in-addr.arpa" in { type master; file "db.192.249.249"; }; zone "253.253.192.in-addr.arpa" in { type master; file "db.192.253.253"; }; zone "0.0.127.in-addr.arpa" in { type master; file "db.127.0.0"; }; zone "." in { type hint; file "db.cache"; }; db.movie.edu

Upload: thanhlong

Post on 06-Nov-2015

2 views

Category:

Documents


1 download

DESCRIPTION

Domain Name System

TRANSCRIPT

/etc/named

/etc/named.conf// BIND configuration file

options {

directory "/var/named";

// Place additional options here.

};

zone "movie.edu" in {

type master;

file "db.movie.edu";

};

zone "249.249.192.in-addr.arpa" in {

type master;

file "db.192.249.249";

};

zone "253.253.192.in-addr.arpa" in {

type master;

file "db.192.253.253";

};

zone "0.0.127.in-addr.arpa" in {

type master;

file "db.127.0.0";

};

zone "." in {

type hint;

file "db.cache";

};

db.movie.edu$TTL 3h

movie.edu. IN SOA toystory.movie.edu. al.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

;

movie.edu. IN NS toystory.movie.edu.

movie.edu. IN NS wormhole.movie.edu.

;

; Addresses for the canonical names

;

localhost.movie.edu. IN A 127.0.0.1

shrek.movie.edu. IN A 192.249.249.2

toystory.movie.edu. IN A 192.249.249.3

monsters-inc.movie.edu. IN A 192.249.249.4

misery.movie.edu. IN A 192.253.253.2

shining.movie.edu. IN A 192.253.253.3

carrie.movie.edu. IN A 192.253.253.4

wormhole.movie.edu. IN A 192.249.249.1

wormhole.movie.edu. IN A 192.253.253.1

;

; Aliases

;

toys.movie.edu. IN CNAME toystory.movie.edu.

mi.movie.edu. IN CNAME monsters-inc.movie.edu.

wh.movie.edu. IN CNAME wormhole.movie.edu.

;

; Interface specific names

;

wh249.movie.edu. IN A 192.249.249.1

wh253.movie.edu. IN A 192.253.253.1

db.192.249.249$TTL 3h

249.249.192.in-addr.arpa. IN SOA toystory.movie.edu. al.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

;

249.249.192.in-addr.arpa. IN NS toystory.movie.edu.

249.249.192.in-addr.arpa. IN NS wormhole.movie.edu.

;

; Addresses point to canonical name

;

1.249.249.192.in-addr.arpa. IN PTR wormhole.movie.edu.

2.249.249.192.in-addr.arpa. IN PTR shrek.movie.edu.

3.249.249.192.in-addr.arpa. IN PTR toystory.movie.edu.

4.249.249.192.in-addr.arpa. IN PTR monsters-inc.movie.edu.

db.192.253.253$TTL 3h

253.253.192.in-addr.arpa. IN SOA toystory.movie.edu. al.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

;

253.253.192.in-addr.arpa. IN NS toystory.movie.edu.

253.253.192.in-addr.arpa. IN NS wormhole.movie.edu.

;

; Addresses point to canonical name

;

1.253.253.192.in-addr.arpa. IN PTR wormhole.movie.edu.

2.253.253.192.in-addr.arpa. IN PTR misery.movie.edu.

3.253.253.192.in-addr.arpa. IN PTR shining.movie.edu.

4.253.253.192.in-addr.arpa. IN PTR carrie.movie.edu.

db.127.0.0:

$TTL 3h

0.0.127.in-addr.arpa. IN SOA toystory.movie.edu. al.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

0.0.127.in-addr.arpa. IN NS toystory.movie.edu.

0.0.127.in-addr.arpa. IN NS wormhole.movie.edu.

1.0.0.127.in-addr.arpa. IN PTR localhost.

db.cache