新型 HS-DHGL でセットアップした HDD でリプレースの予定なので、
新型 HS-DHGL も
内向き DHCP サーバにするつもりだし、
内向き DNS サーバにもするつもり。
ホスト名と IP アドレスを紐づける基本、 /etc/hosts を 旧型 HS-DHGL からコピーする
yasunari@slam:~$ cd /tmp yasunari@slam:/tmp$ ftp sil.yamasita.jp Connected to sil.yamasita.jp. 220 sil FTP server (GNU inetutils 1.5) ready. Name (sil.yamasita.jp:yasunari): 331 Password required for yasunari. Password: 230- Linux sil 2.6.16.16-arm1 #6 Fri Aug 31 13:07:15 JST 2007 armv5tejl 230- 230- The programs included with the Debian GNU/Linux system are free software; 230- the exact distribution terms for each program are described in the 230- individual files in /usr/share/doc/*/copyright. 230- 230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 230- permitted by applicable law. 230 User yasunari logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd /etc/ 250 CWD command successful. ftp> get hosts local: hosts remote: hosts 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'hosts' (1646 bytes). 226 Transfer complete. 1646 bytes received in 0.00 secs (2670.1 kB/s) ftp> bye 221 Goodbye. yasunari@slam:/tmp$
yasunari@slam:/tmp$ su - root Password: slam:~# cd /etc slam:/etc# mv hosts hosts.orig slam:/etc# mv /tmp/hosts hosts slam:/etc#
slam:/etc# ls -l hosts* -rw-r--r-- 1 yasunari yamasita 1646 Jul 26 18:03 hosts -rw-r--r-- 1 root root 579 Nov 21 2008 hosts.allow -rw-r--r-- 1 root root 878 Nov 21 2008 hosts.deny -rw-r--r-- 1 root root 66 Jul 2 21:41 hosts.orig slam:/etc# chown root.root hosts slam:/etc# ls -l hosts* -rw-r--r-- 1 root root 1646 Jul 26 18:03 hosts -rw-r--r-- 1 root root 579 Nov 21 2008 hosts.allow -rw-r--r-- 1 root root 878 Nov 21 2008 hosts.deny -rw-r--r-- 1 root root 66 Jul 2 21:41 hosts.orig slam:/etc# head hosts 127.0.0.1 localhost localhost.localdomain # DMZ #################################### # Linux & Applience 192.168.1.1 router 192.168.1.2 ns 192.168.1.7 voip 192.168.1.8 fon 192.168.1.9 trust slam:/etc#OK
|
← いちからやり直し、、、(26)ファン制御 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 玄箱の新型が近日出荷 |