dns서버
-
LINUX DNS Primary IP -> Secondary IP 변경하는 방법System of Infra/Linux System 2022. 8. 4. 00:25
LINUX DNS Primary IP -> Secondary IP 변경하는 방법 [root@LINUX /]# nslookup > server Default server: 10.10.1.1 Address: 10.10.1.1#53 Default server: 10.10.1.2 Address: 10.10.1.2#53 ▶ 현재 리눅스 시스템에서 DNS 주소로 사용하고 있는 주소는 2개입니다. Primary: 10.10.1.1과 Secondary: 10.10.1.2 아이피로 /etc/resolv.conf 파일에 등록이 되어 있습니다.(DNS를 하나로 두어도 상관없음) [root@LINUX /]# sed -i 's/10.10.1.1/1.1.1.1/g' /etc/resolv.conf ▶ sed 문법을 통해서 10.1..
-
LINUX DNS(마이네임전용)서버 구축하기System of Infra/Linux System 2022. 6. 23. 01:22
LINUX DNS(마이네임전용)서버 구축하기 [root@localhost /]# cat /etc/nsswitch.conf | grep -i hosts # hosts: files dns # hosts: files dns # from user file hosts: files dns myhostname /etc/hosts.conf order hosts, bind(nameserver) - hosts 파일에서 우선순위 1. files 2. dns 3. bind hostname/etc/resolv.conf(nameserver) - DNS Name 서버 주소 등록 192.168.111.100 -> DNS 서버 + 웹서버 = 마이네임전용서버 192.168.111.130 -> DNS를 테스트할 Client서버 192.1..
-
LINUX DNS(캐싱전용)서버 구축하기System of Infra/Linux System 2022. 6. 20. 23:57
LINUX DNS(캐싱전용)서버 구축하기 [root@localhost /]# cat /etc/nsswitch.conf | grep -i hosts # hosts: files dns # hosts: files dns # from user file hosts: files dns myhostname /etc/hosts.conf order hosts, bind(nameserver) - hosts 파일에서 우선순위 1. files 2. dns 3. hostname /etc/resolv.conf(nameserver) - DNS Name 서버 주소 등록 192.168.111.100 - DNS 서버 192.168.111.130 - DNS를 테스트할 Client서버 192.168.111.200 - DNS를 테스트할 CL..