반응형
리눅스 DNS 확인
/etc/resolv.conf 파일을 확인하면 설정되어있는 nameserver로 지정되어있는 IP를 확인할 수 있다. 복수개로 지정할 수 있으며 첫번째 검색에서 실패할 경우 다음으로 지정되어있는 IP로 검색을 한다.
duru@ykd2:/sbin$ cat /etc/resolv.conf
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
options edns0 trust-ad
search .
반응형
'Infra Architecture > linux' 카테고리의 다른 글
[ Linux ] 사설 및 공인 IP 확인 (0) | 2023.01.08 |
---|---|
[ Linux ] ifconfig (0) | 2023.01.08 |
[ Linux ] sudo 권한 주기 (0) | 2023.01.08 |
[ Linux ] 유저 생성 (0) | 2023.01.08 |
[ Linux ] Shell Script 산술연산/조건문 (0) | 2023.01.07 |