[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [+] |
ifconfig_ed0_alias0="inet 192.168.0.2 netmask 0xffffff00" |
listen-on { 127.0.0.1; 192.168.0.1; }; |
kill -HUP `cat /var/run/named.pid` |
options { directory "/etc/namedb/new"; listen-on { 192.168.0.2; }; }; zone "." { type hint; file "named.root"; }; zone "0.0.127.IN-ADDR.ARPA" { type master; file "localhost.rev"; }; zone "usupi.org" { type master; file "usupi.zone"; }; zone "3.2.1.IN-ADDR.ARPA" { type master; file "usupi.zone.rev"; }; |
/usr/sbin/named /etc/namedb/new/named.conf |
% nslookup Default Server: localhost.usupi.org Address: 127.0.0.1 > server 192.168.0.2 Default Server: ns2.usupi.org Address: 192.168.0.2 > www Server: ns2.usupi.org Address: 192.168.0.2 Name: ns1.usupi.org Address: 1.2.3.4 Aliases: www.usupi.org |
% dig @192.168.0.2 www.usupi.org in a ; <<>> DiG 8.1 <<>> @192.168.0.2 www.cst-sw.takaoka.co.jp in a ; (1 server found) ;; res options: init recurs defnam dnsrch ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 ;; QUERY SECTION: ;; www.usupi.org, type = A, class = IN ;; ANSWER SECTION: www.usupi.org. 1H IN CNAME ns1.usupi.org. ns1.usupi.org. 1H IN A 1.2.3.4 ;; AUTHORITY SECTION: usupi.org. 1H IN NS ns1.usupi.org. ;; ADDITIONAL SECTION: ns1.usupi.org. 1H IN A 1.2.3.4 ;; Total query time: 68 msec ;; FROM: tamao to SERVER: 192.168.0.2 ;; WHEN: Wed Oct 4 03:50:22 2000 ;; MSG SIZE sent: 42 rcvd: 128 |
[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [-] | |
usu@usupi.org | Last modified : Wed Jun 6 14:32:51 2001 |