리눅스 nslookup

John Jeong (토론 | 기여)님의 2019년 2월 25일 (월) 19:27 판 (→‎실행 예시)

1 개요

리눅스 nslookup
/usr/bin/nslookup
  • 도메인 네임서버의 정보를 쿼리하기 위해 사용

2 실행 예시

[root@zetawiki ~]# nslookup
> exit
[root@zetawiki ~]# nslookup 8.8.8.8
Server:		210.220.163.82
Address:	210.220.163.82#53

Non-authoritative answer:
8.8.8.8.in-addr.arpa	name = google-public-dns-a.google.com.

Authoritative answers can be found from:
  • 네이버
john@ubuntu:~$ nslookup naver.com
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
www.naver.com	canonical name = www.naver.com.nheos.com.
www.naver.com.nheos.com	canonical name = www.naver.com.edgekey.net.
www.naver.com.edgekey.net	canonical name = e6030.a.akamaiedge.net.
Name:	e6030.a.akamaiedge.net
Address: 173.223.141.49
→ Server: 127.0.0.53 은 내 시스템의 DNS 서버를 가리킴.

3 내 시스템의 DNS 서버 정보 확인

Ubuntu 18.04 에서 아래와 같이 확인 가능

john@ubuntu:~$ cat /etc/resolv.conf 
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 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 "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must 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

4 같이 보기

5 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}