サービスの設定
// generated by named-bootconf.pl //named.conf options { directory "/var/named"; }; // 正引きファイル指定 zone "ccad.sist.chukyo-u.ac.jp" in{ type master; file "named.zone"; allow-transfer{ 150.42.1.6; }; }; // 逆引きファイル指定 zone "128-191.41.42.150.in-addr.arpa" in{ type master; file "named.rev"; allow-transfer{ 150.42.1.6; }; };
$TTL 86400 ccad.sist.chukyo-u.ac.jp. IN SOA hibashi.ccad.sist.chukyo-u.ac.jp. root. ccad.sist.chukyo-u.ac.jp. ( 2007042811 3600 300 360000 86400 ) IN MX 10 hibashi.ccad.sist.chukyo-u.ac.jp. IN NS hibashi.ccad.sist.chukyo-u.ac.jp. IN NS ns.sist.chukyo-u.ac.jp. IN A 150.42.41.129 hibashi IN A 150.42.41.129 www IN A 150.42.41.129 ftp IN A 150.42.41.129 localhost IN A 127.0.0.1正引きファイルは以下のような内容です(一部)。
$TTL 38400 128-191.41.42.150.in-addr.arpa. IN SOA hibashi.ccad.sist.chukyo-u.ac.jp . root.ccad.sist.chukyo-u.ac.jp. ( 2007042810 10800 3600 604800 38400 ) ; IN NS hibashi.ccad.sist.chukyo-u.ac.jp. IN NS ns.sist.chukyo-u.ac.jp. ; 129 IN PTR hibashi.ccad.sist.chukyo-u.ac.jp.
変更
ホストを追加したり、アドレスを変更するには、正引きと逆引きファイルを変更します。このとき、SOAセクションのシリアル番号が増加するよう訂正します。通常シリアル番号は 2005032816 のように日付と時刻情報を利用します。確認1
/etc/named.conf ファイルは、以下のコマンドでチェックできます。起動メッセージ
named を起動したりreloadした場合、var/log/messages ファイルに記録されます。[root@hibashi named]# tail /var/log/messages May 5 17:00:54 hibashi 5月 5 17:00:54 named: named起動 succeeded May 5 17:00:54 hibashi named[28675]: no IPv6 interfaces found May 5 17:00:54 hibashi named[28675]: listening on IPv4 interface lo, 127.0.0.1# 53 May 5 17:00:54 hibashi named[28675]: listening on IPv4 interface eth0, 192.168. 1.6#53 May 5 17:00:54 hibashi named[28675]: command channel listening on 127.0.0.1#953 May 5 17:00:54 hibashi named[28675]: zone 0.0.127.in-addr.arpa/IN: loaded seria l 705050105 May 5 17:00:54 hibashi named[28675]: zone ccad.sccs.chukyo-u.ac.jp/IN: loaded s erial 705050507 May 5 17:00:54 hibashi named[28675]: zone localhost/IN: loaded serial 705050505 May 5 17:00:54 hibashi named[28675]: running May 5 17:00:54 hibashi named[28675]: zone ccad.sccs.chukyo-u.ac.jp/IN: sending notifies (serial 705050507)
root@hibashi log]# ls -lt 合計 170676 -rw------- 1 root root 77228 5月 4 11:49 messages -r-------- 1 root root 19136220 5月 4 11:49 lastlog -rw-rw-r-- 1 root utmp 125952 5月 4 11:49 wtmp -rw------- 1 root root 1016 5月 4 11:49 secure -rw-r--r-- 1 root nobody 138221243 5月 4 11:48 Proftpd.log -rw------- 1 root root 8804 5月 4 11:01 cron -rw------- 1 root root 9584 5月 4 10:49 boot.log -rw------- 1 root root 2240709 5月 4 10:49 maillog -rw-r----- 1 mysql mysql 586 5月 4 10:48 mysqld.log -rw-r--r-- 1 root root 6227 5月 4 10:48 dmesg -rw-r--r-- 1 root root 63552 5月 4 10:48 ksyms.0 -rw-r--r-- 1 root root 63552 5月 4 10:17 ksyms.1 -rw-r--r-- 1 root root 21358 4月 29 04:09 rpmpkgs -rw-r--r-- 1 root root 63552 4月 28 18:22 ksyms.2 -rw-r--r-- 1 root root 63552 4月 28 18:18 ksyms.3 -rw-r--r-- 1 root nobody 17321754 4月 28 12:49 xfer.log -rw------- 1 root root 0 4月 26 04:05 spooler -rw------- 1 root root 178 4月 26 04:05 boot.log.1 drwx------ 2 root root 4096 4月 26 04:05 httpd -rw------- 1 root root 21938 4月 26 04:05 messages.1 drwxr-xr-x 2 lp sys 4096 4月 26 04:05 cups
[root@hibashi conf]# tail /var/log/secure Apr 28 18:21:21 hibashi sshd[2723]: Received signal 15; terminating. Apr 28 18:23:03 hibashi sshd[2715]: Server listening on 0.0.0.0 port 22. Apr 28 18:23:56 hibashi webmin[3016]: Webmin starting Apr 29 18:51:45 hibashi sshd[2715]: Received signal 15; terminating. May 4 10:17:55 hibashi sshd[2715]: Server listening on 0.0.0.0 port 22. May 4 10:18:51 hibashi webmin[3016]: Webmin starting May 4 10:46:02 hibashi sshd[3243]: Accepted password for xxx from 150.42.41.13 0 port 1131
tail /var/log/httpd/access_log 124.154.145.76 - - [04/May/2009:11:32:32 +0900] "GET /~mito/ss/program/C/DialogB ase/openGL/wire/index80.JPG HTTP/1.1" 200 9236 "http://www.ccad.sist.chukyo-u.ac .jp/~mito/ss/program/C/DialogBase/openGL/wire/index.htm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3. 5.30729)" 124.154.145.76 - - [04/May/2009:11:32:32 +0900] "GET /~mito/ss/program/C/DialogB ase/openGL/wire/index133.JPG HTTP/1.1" 200 7535 "http://www.ccad.sist.chukyo-u.a c.jp/~mito/ss/program/C/DialogBase/openGL/wire/index.htm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3 .5.30729)"
[root@hibashi log]# tail xfer.log Tue Apr 28 00:11:31 2009 9 221.118.84.109 25212 /home/mito/public_html/ss/Embedd ed/function/AD_MCP3204/image1.jpg b _ i r mito ftp 0 * c Tue Apr 28 00:11:32 2009 0 221.118.84.109 2531 /home/mito/public_html/ss/Embedde d/function/AD_MCP3204/index.htm a _ i r mito ftp 0 * c Tue Apr 28 00:11:32 2009 0 221.118.84.109 2604 /home/mito/public_html/ss/Embedde d/function/AD_MCP3204/index.ht_ b _ i r mito ftp 0 * c Tue Apr 28 00:11:32 2009 0 221.118.84.109 2595 /home/mito/public_html/ss/Embedde d/function/AD_MCP3204/index.bak b _ i r mito ftp 0 * c