弁財天
ゴフマン「専門家を信じるのではなく、自分自身で考えて判断せよ」
ゴフマン「専門家を信じるのではなく、自分自身で考えて判断せよ」
Configuring cache only DNS server on Solaris 10
bash-3.2# cat /etc/named.conf // This is the primary configuration file for the BIND DNS server named. // options { directory "/var/named/cache"; pid-file "/var/named/named.pid"; // If there is a firewall between you and nameservers you want // to talk to, you might need to uncomment the query- source // directive below. Previous versions of BIND always asked // questions using port 53, but BIND 8.1 and later use an unprivileged // port by default. // query-source address * port 53; // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. // forwarders { // 0.0.0.0; // }; auth-nxdomain no; listen-on-v6 { none; }; listen-on { any; }; }; // prime the server with knowledge of the root servers zone "." { type hint; file "/var/named/db/db.root"; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 zone "localhost" { type master; file "/var/named/db/db.local"; }; zone "127.in-addr.arpa" { type master; file "/var/named/db/db.127"; }; zone "0.in-addr.arpa" { type master; file "/var/named/db/db.0"; }; zone "255.in-addr.arpa" { type master; file "/var/named/db/db.255"; }; bash-3.2#
bash-3.2# cd /var/named/db bash-3.2# cat db.root ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> @a.root-servers.net . ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46355 ;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 518400 IN NS i.root-servers.net. . 518400 IN NS m.root-servers.net. . 518400 IN NS e.root-servers.net. . 518400 IN NS l.root-servers.net. . 518400 IN NS a.root-servers.net. . 518400 IN NS f.root-servers.net. . 518400 IN NS d.root-servers.net. . 518400 IN NS j.root-servers.net. . 518400 IN NS h.root-servers.net. . 518400 IN NS g.root-servers.net. . 518400 IN NS k.root-servers.net. . 518400 IN NS b.root-servers.net. . 518400 IN NS c.root-servers.net. ;; ADDITIONAL SECTION: i.root-servers.net. 3600000 IN AAAA 2001:7fe::53 i.root-servers.net. 3600000 IN A 192.36.148.17 m.root-servers.net. 3600000 IN AAAA 2001:dc3::35 m.root-servers.net. 3600000 IN A 202.12.27.33 e.root-servers.net. 3600000 IN A 192.203.230.10 l.root-servers.net. 3600000 IN AAAA 2001:500:3::42 l.root-servers.net. 3600000 IN A 199.7.83.42 a.root-servers.net. 3600000 IN AAAA 2001:503:ba3e::2:30 a.root-servers.net. 3600000 IN A 198.41.0.4 f.root-servers.net. 3600000 IN AAAA 2001:500:2f::f f.root-servers.net. 3600000 IN A 192.5.5.241 d.root-servers.net. 3600000 IN AAAA 2001:500:2d::d d.root-servers.net. 3600000 IN A 199.7.91.13 ;; Query time: 73 msec ;; SERVER: 198.41.0.4#53(198.41.0.4) ;; WHEN: Thu Mar 21 10:48:33 2013 ;; MSG SIZE rcvd: 508 bash-3.2# cat db.127 ; ;BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. 1.0.0 IN PTR localhost. bash-3.2# cat db.local ; ;BIND data file for local loopback interface ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. @ IN A 127.0.0.1 bash-3.2# cat db.0 ; ;BIND reverse data file for broadcast zone ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. bash-3.2# cat db.255 ; ;BIND reverse data file for broadcast zone ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. bash-3.2#
Solaris 10 で DHCP
この手順どうもうまくいかないでつ。
Solaris10でDHCPサーバ構築
Swing実装のGUIプログラム(/usr/sadm/admin/bin/dhcpmgr )があるじゃん。
ついでにSolaris10をブロードバンドルータにするか。
DSL サポート用の PPPoE トンネルの作成
Bonaponta in Network 2013年3月21日 午前 11:11 JST