忍者ブログ
個人的メモ
[12]  [11]  [10]  [9]  [8]  [7]  [6]  [5]  [4]  [3]  [2
 [PR]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

 環境:Debian6

DNSの場合、設定ファイルの一部にtabが入っているとエラーとなる。

「/etc/bind/named.conf.local」に以下を追記
---------- ---------- ---------- ---------- ---------- ----------
zone "example.com" {
  type master;
  file "/etc/bind/db.example.com;
};

zone "0.168.192.in-addr.arpa" {
  type master;
  file "/etc/bind/db.0.168.192.in-addr.arpa";
};
------------------------------------------------------------

「/etc/bind/example.com」を作成
------------------------------------------------------------
$TTL    60
@       IN      SOA     example.com. root.example.com. (
         1   ; Serial
        60   ; Refresh
        10   ; Retry
       120   ; Expire
        60 ) ; Negative Cache TTL
;
        IN      NS      example.com.
@       IN      A       192.168.0.103
sv      IN      A       192.168.0.101
www     IN      CNAME   sv
 
------------------------------------------------------------

「/etc/bind/db.0.168.192.in-addr.arpa」を作成
------------------------------------------------------------
$TTL 10
@       IN      SOA     
example.com.      root. example.com. (
        1       ; Serial
        10      ; Refresh 10sec
        10      ; Retry 10sec
        10      ; Expire 10sec
        10      ; Min 10 sec
)
IN      NS      example.com.
101     IN      PTR     
example.com.
 
------------------------------------------------------------





拍手[0回]

PR
この記事にコメントする
お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード   Vodafone絵文字 i-mode絵文字 Ezweb絵文字
 カレンダー 
03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
 フリーエリア 
 最新CM 
[01/10 ggiptipxer]
[01/10 jdalsxpnie]
[01/10 qlddbgskvu]
[01/08 vie7vvic7r0]
[01/06 mlq6opvq6y1]
 最新TB 
 プロフィール 
HN:
384氏
年齢:
47
性別:
男性
誕生日:
1976/08/07
 バーコード 
 ブログ内検索 
 P R 

Template by ららららいふ / Material by 素材くん「無料WEB素材屋」

忍者ブログ [PR]