주요 명령
apt-get install bind9
cd /etc/bind
cp db.local db.zone
Next
단일 장비는 실습에 불충분한 것 같음.
kali 를 하나더 세팅하자. UUID 쫑날텐데...
host 명을 kali2 라고 하자
ip는 10.0.2.16 으로 세팅하자
Kali 대신 다른 리눅스 가상머신을 구성할까...
상세 로그
# apt-get install bind9
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libmongocrypt0 libncurses5 libtinfo5 pipewire-alsa python3-jaraco.classes python3-pytz-deprecation-shim python3-texttable
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
bind9-utils
Suggested packages:
bind-doc resolvconf ufw
The following NEW packages will be installed:
bind9 bind9-utils
0 upgraded, 2 newly installed, 0 to remove and 25 not upgraded.
Need to get 897 kB of archives.
After this operation, 2,022 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirror.anigil.com/kali kali-rolling/main amd64 bind9-utils amd64 1:9.18.16-1 [405 kB]
Get:2 http://mirror.anigil.com/kali kali-rolling/main amd64 bind9 amd64 1:9.18.16-1 [493 kB]
Fetched 897 kB in 2s (375 kB/s)
Selecting previously unselected package bind9-utils.
(Reading database ... 397382 files and directories currently installed.)
Preparing to unpack .../bind9-utils_1%3a9.18.16-1_amd64.deb ...
Unpacking bind9-utils (1:9.18.16-1) ...
Selecting previously unselected package bind9.
Preparing to unpack .../bind9_1%3a9.18.16-1_amd64.deb ...
Unpacking bind9 (1:9.18.16-1) ...
Setting up bind9-utils (1:9.18.16-1) ...
Setting up bind9 (1:9.18.16-1) ...
Adding group `bind' (GID 142) ...
Done.
Adding system user `bind' (UID 132) ...
Adding new user `bind' (UID 132) with group `bind' ...
Not creating home directory `/var/cache/bind'.
wrote key file "/etc/bind/rndc.key"
update-rc.d: We have no instructions for the named init script.
update-rc.d: It looks like a network service, we disable it.
named-resolvconf.service is a disabled or a static unit, not starting it.
named.service is a disabled or a static unit, not starting it.
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for kali-menu (2023.3.3) ...
┌──(root㉿kali)-[~]
└─# cd /etc/bind
┌──(root㉿kali)-[/etc/bind]
└─# ls
bind.keys db.0 db.127 db.255 db.empty db.local named.conf named.conf.default-zones named.conf.local named.conf.options rndc.key zones.rfc1918
┌──(root㉿kali)-[/etc/bind]
└─# ls -al
total 64
drwxr-sr-x 2 root bind 4096 Jul 17 07:19 .
drwxr-xr-x 179 root root 12288 Jul 17 07:19 ..
-rw-r--r-- 1 root root 2403 Jun 21 14:43 bind.keys
-rw-r--r-- 1 root root 255 Jun 21 14:43 db.0
-rw-r--r-- 1 root root 271 Jun 21 14:43 db.127
-rw-r--r-- 1 root root 237 Jun 21 14:43 db.255
-rw-r--r-- 1 root root 353 Jun 21 14:43 db.empty
-rw-r--r-- 1 root root 270 Jun 21 14:43 db.local
-rw-r--r-- 1 root bind 458 Jun 21 14:43 named.conf
-rw-r--r-- 1 root bind 498 Jun 21 14:43 named.conf.default-zones
-rw-r--r-- 1 root bind 165 Jun 21 14:43 named.conf.local
-rw-r--r-- 1 root bind 846 Jun 21 14:43 named.conf.options
-rw-r----- 1 bind bind 100 Jul 17 07:19 rndc.key
-rw-r--r-- 1 root root 1317 Jun 21 14:43 zones.rfc1918
┌──(root㉿kali)-[/etc/bind]
└─# cp db.local db.zone
'정보보안기사 > linux' 카테고리의 다른 글
[실습] finger 서비스 비활성화 (0) | 2023.07.18 |
---|---|
[kali] FTP 실습 (0) | 2023.07.17 |
칼리 리눅스 재구성(2023-07-26) (0) | 2023.07.16 |
좀비 프로세스 확인 방법 (0) | 2023.07.13 |
손으로 배우는 해킹 study (0) | 2023.06.24 |