**************
BIND 버젼 확인
**************
1. remote DNS
# nslookup
> set class=chaos
> set q=txt
> version.bind
VERSION.BIND text = "BIND 8.1.2"
> exit
스크립트를 만들면..............
[ns:/bind/etc] # vi version.sh
nslookup << !
set class=chaos
set q=txt
version.bind
!
:wq!
[ns:/bind/etc] # ./version.sh
Default Server: ns.wowunix.com
Address: 211.218.111.196
> > > Server: ns.wowunix.com
Address: 211.218.111.196
version.bind text = "9.2.2"
> [ns:/bind/etc] #
2. local DNS
1) strings 명령어 사용
# strings /usr/sbin/in.named | grep BIND
;BIND LOG V8
;BIND DUMP V8
VERSION.BIND
BIND
@(#)in.named BIND 8.1.2 Wed Jan 5 17:46:35 PST 2000 Generic 107018-02-5.7-Septe
mber 1998
in.named BIND 8.1.2 Wed Jan 5 17:46:35 PST 2000
BIND 8.1.2
2) what 명령어 사용
#/usr/ccs/bin/what /usr/sbin/in.named
/usr/sbin/in.named:
in.named BIND 8.1.2 Tue Dec 21 23:32:09 PST 1999 Generic-5.8-February 20
00
db_dump.c 4.33 (Berkeley) 3/3/91
db_load.c 4.38 (Berkeley) 3/2/91
db_lookup.c 4.18 (Berkeley) 3/21/91
db_save.c 4.16 (Berkeley) 3/21/91
db_update.c 4.28 (Berkeley) 3/21/91
db_glue.c 4.4 (Berkeley) 6/1/90
ns_forw.c 4.32 (Berkeley) 3/3/91
ns_init.c 4.38 (Berkeley) 3/21/91
ns_main.c 4.55 (Berkeley) 7/1/91
Copyright (c) 1986, 1989, 1990 The Regents of the University of Califor
nia.
ns_maint.c 4.39 (Berkeley) 3/2/91
ns_req.c 4.47 (Berkeley) 7/1/91
ns_resp.c 4.65 (Berkeley) 3/3/91
ns_stats.c 4.10 (Berkeley) 6/27/90
SunOS 5.8 Generic February 2000
3) USR1,USR2 디버그 시스널 사용
# pgrep in.named144# kill -USR1 144# ping www.sun.com# kill -USR2 144# more /var/named/named.runDebug level 1Version = in.named BIND 8.1.2 Wed Jan 5 17:46:35 PST 2000 Generic 107018-02-5.7-September 1998conffile = /etc/named.conf
'OS' 카테고리의 다른 글
서버 트래픽 제한 설정 - ethtool (0) | 2014.11.24 |
---|---|
mysql password 세팅 및 초기화 (0) | 2014.11.17 |
sendmail 재시작 시 에러 (0) | 2014.11.15 |
Privilege separation user sshd does not exist (0) | 2014.11.15 |
linux 3TB 이상 급 disk 파티셔닝 - gpt partition (0) | 2014.10.31 |