실습
[root@centos ~]# whereis nslookup
nslookup: /usr/bin/nslookup /usr/share/man/man1/nslookup.1.gz
[root@centos ~]# dpkg -S /usr/bin/nslookup
bash: dpkg: 명령을 찾을 수 없습니다...
-- 유튜브는 우분트. 난 Cent OS 테스트
[root@centos ~]# rpm -q bind
bind-9.11.4-26.P2.el7.x86_64
[root@centos ~]# bind
[root@centos ~]# service start bind
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
https://blog.naver.com/nms200299/222767645411
yum -y install bind
-- 다시 유튜브 영상
[root@centos ~]# nslookup
> naver.com
Server: 210.220.163.82
Address: 210.220.163.82#53
Non-authoritative answer:
Name: naver.com
Address: 223.130.195.200
Name: naver.com
Address: 223.130.200.104
Name: naver.com
Address: 223.130.200.107
Name: naver.com
Address: 223.130.195.95
> 223.130.195.200
** server can't find 200.195.130.223.in-addr.arpa.: NXDOMAIN
> kbs.co.kr
Server: 210.220.163.82
Address: 210.220.163.82#53
Non-authoritative answer:
Name: kbs.co.kr
Address: 52.219.58.9
> 52.219.58.9
9.58.219.52.in-addr.arpa name = s3-website.ap-northeast-2.amazonaws.com.
Authoritative answers can be found from:
-- 수정전 원본
[root@centos etc]# cp named.conf named.conf.org
[root@centos etc]# vi named.conf
cat /var/named/named.ca
named-checkconf /etc/named.conf
named-checkconf /etc/named.rfc1912.zones
systemctl enable named
systemctl restart named
[root@centos etc]# cp /etc/named.rfc1912.zones /etc/named.rfc1912.zones.org
[root@centos etc]# systemctl enable named
Created symlink from /etc/systemd/system/multi-user.target.wants/named.service to /usr/lib/systemd/system/named.service.
You have mail in /var/spool/mail/root
[root@centos etc]# systemctl restart named
[root@centos etc]# ps -ef | grep named
named 26197 1 0 09:37 ? 00:00:00 /usr/sbin/named -u named -c /etc/named.conf
root 26218 30952 0 09:37 pts/1 00:00:00 grep --color=auto named
[root@centos etc]# ps -ef | grep inetd
root 26225 30952 0 09:37 pts/1 00:00:00 grep --color=auto inetd
'정보보안기사 > linux' 카테고리의 다른 글
[실습] 크론탭 (0) | 2023.07.23 |
---|---|
[실습] xinetd finger클라 (0) | 2023.07.23 |
실습 iptables (0) | 2023.07.22 |
CentOS 7 설치 #4 (0) | 2023.07.21 |
CentOS 7 설치 #3 (0) | 2023.07.20 |