sil:~# diff -c /tmp/hosts.orig /etc/hosts *** /tmp/hosts.orig Sun Aug 31 09:10:12 2008 --- /etc/hosts Sun Aug 31 09:10:42 2008 *************** *** 49,54 **** --- 49,55 ---- 192.168.2.42 nino # LS-320GL 2nd edition. 192.168.2.43 gin # HS-DH250GL 2nd edition. 192.168.2.44 busu # LS-H250GL + 192.168.2.45 mini # LS-WS500GL # Media Player 192.168.2.50 cowboy sil:~#DNS に登録してあれば、/etc/hosts に登録する必要はないのだが。
sil:~# grep dhcp /var/log/daemon.log | tail : : Aug 31 09:09:02 sil dhcpd: DHCPREQUEST for 192.168.2.207 from 00:1d:73:4c:a6:78 via eth0 Aug 31 09:09:02 sil dhcpd: DHCPACK on 192.168.2.207 to 00:1d:73:4c:a6:78 via eth0 sil:~#
sil:~# diff -c /tmp/dhcpd.conf.orig /etc/dhcpd.conf *** /tmp/dhcpd.conf.orig Sun Aug 31 09:15:47 2008 --- /etc/dhcpd.conf Sun Aug 31 09:16:29 2008 *************** *** 231,236 **** --- 231,241 ---- fixed-address 192.168.2.44; } + host mini { + hardware ethernet 00:1d:73:4c:a6:78; + fixed-address 192.168.2.45; + } + ### ### Media Player ---------------------------- ### sil:~#
sil:~# /etc/init.d/dhcp reload Usage: /etc/init.d/dhcp {start|stop|restart|force-reload} sil:~#reload がないので、仕方なく再起動する。
sil:~# /etc/init.d/dhcp restart Stopping DHCP server: dhcp. Starting DHCP server: dhcpd. sil:~#
sil:~# tail -f /var/log/daemon.log : : Aug 31 09:27:30 sil dhcpd: DHCPREQUEST for 192.168.2.207 from 00:1d:73:4c:a6:78 via eth0 Aug 31 09:27:30 sil dhcpd: DHCPNAK on 192.168.2.207 to 00:1d:73:4c:a6:78 via eth0 Aug 31 09:27:30 sil dhcpd: DHCPDISCOVER from 00:1d:73:4c:a6:78 via eth0 Aug 31 09:27:30 sil dhcpd: DHCPOFFER on 192.168.2.45 to 00:1d:73:4c:a6:78 via eth0 Aug 31 09:27:30 sil dhcpd: DHCPREQUEST for 192.168.2.45 from 00:1d:73:4c:a6:78 via eth0 Aug 31 09:27:30 sil dhcpd: DHCPACK on 192.168.2.45 to 00:1d:73:4c:a6:78 via eth0無事、192.168.2.45 が割り当てられた。
[root@ns named]# diff -c /tmp/yamasita.jp-in-zone yamasita.jp-in-zone *** /tmp/yamasita.jp-in-zone 2008-08-31 09:37:25.000000000 +0900 --- yamasita.jp-in-zone 2008-08-31 09:39:01.000000000 +0900 *************** *** 1,7 **** $ORIGIN . $TTL 3600 ; 1 hour yamasita.jp IN SOA ns.yamasita.jp. root.yamasita.jp. ( ! 2008072401 ; serial 3600 ; refresh (1 hour) 300 ; retry (5 minutes) 3600000 ; expire (5 weeks 6 days 16 hours) --- 1,7 ---- $ORIGIN . $TTL 3600 ; 1 hour yamasita.jp IN SOA ns.yamasita.jp. root.yamasita.jp. ( ! 2008083101 ; serial 3600 ; refresh (1 hour) 300 ; retry (5 minutes) 3600000 ; expire (5 weeks 6 days 16 hours) *************** *** 75,80 **** --- 75,81 ---- nino A 192.168.2.42 gin A 192.168.2.43 busu A 192.168.2.44 + mini A 192.168.2.45 cowboy A 192.168.2.50 p1lan A 192.168.2.51 [root@ns named]# diff -c /tmp/2.168.192-rev 2.168.192-rev *** /tmp/2.168.192-rev 2008-08-31 09:37:19.000000000 +0900 --- 2.168.192-rev 2008-08-31 09:38:38.000000000 +0900 *************** *** 1,7 **** $ORIGIN . $TTL 3600 ; 1 hour 2.168.192.in-addr.arpa IN SOA ns.yamasita.jp. root.yamasita.jp. ( ! 2008072401 ; serial 3600 ; refresh (1 hour) 300 ; retry (5 minutes) 3600000 ; expire (5 weeks 6 days 16 hours) --- 1,7 ---- $ORIGIN . $TTL 3600 ; 1 hour 2.168.192.in-addr.arpa IN SOA ns.yamasita.jp. root.yamasita.jp. ( ! 2008083101 ; serial 3600 ; refresh (1 hour) 300 ; retry (5 minutes) 3600000 ; expire (5 weeks 6 days 16 hours) *************** *** 48,53 **** --- 48,54 ---- 42 PTR nino.yamasita.jp. 43 PTR gin.yamasita.jp. 44 PTR busu.yamasita.jp. + 45 PTR mini.yamasita.jp. ; 50 PTR cowboy.yamasita.jp. 51 PTR p1lan.yamasita.jp. [root@ns named]#
[root@ns named]# /etc/init.d/named reload namedを再読み込み中: [ OK ] [root@ns named]#
|
← 失敗 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 標準ファーム 1.03 でセキュリティホールの確認 |