kkamagi's story

IT, 정보보안, 포렌식, 일상 공유

OS

bind 버전 확인

까마기 2014. 11. 15. 12:02
728x90
반응형


**************
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                         

반응형