DNS๋
- Domain Name System์ ์ฝ์๋ก ํธ์คํธ&๋๋ฉ์ธ ์ด๋ฆ์ ๋งค์นญํ์ฌ IP ์ฃผ์(๋คํธ์ํฌ ์ฃผ์) ์ ๋ณด๋ฅผ ๊ฐ์ง๊ณ ์์ด ํด๋ผ์ด์ธํธ๋ก๋ถํฐ ๋๋ฉ์ธ(naver.com) ํน์ FQDN(www.naver.com)์ผ๋ก ์ฟผ๋ฆฌ ์์ฒญ์ด ์์ ๋ ์ค์ IP ์ฃผ์(1.2.3.4)๋ฅผ ๋ฐํํ์ฌ ํด๋ผ์ด์ธํธ๊ฐ ์๋ฒ๋ฅผ ์ฐพ์๊ฐ ์ ์๋๋ก ํด์ฃผ๋ ์์คํ
Process
๊ตญ๊ฐ | ์ผ๋ฐ | |
์์ | 11st.co.kr ๋ฑ | blog.naver.com ๋ฑ |
1๋จ๊ณ | ccTLD | gTLD |
kr, jp, cn ๋ฑ | net, com, biz ๋ฑ | |
2๋จ๊ณ | SLD | ๋๋ฉ์ธ ์ด๋ฆ |
co, go, or ๋ฑ | naver, daum, google ๋ฑ | |
3๋จ๊ณ | ๋๋ฉ์ธ ์ด๋ฆ | ํธ์คํธ ์ด๋ฆ |
naver, daum, google ๋ฑ | www, login, mail ๋ฑ | |
4๋จ๊ณ | ํธ์คํธ ์ด๋ฆ | |
www, login, mail ๋ฑ |
1. ํด๋ผ์ด์ธํธ > DNS ์๋ฒ(Google, KT, SKT, LG ๋ฑ DNS ์๋ฒ)๋ก www.google.com ์ฟผ๋ฆฌ
2. DNS ์๋ฒ <-> root DNS ์๋ฒ ์ฟผ๋ฆฌ๋ฅผ ํตํด com DNS ์๋ฒ ์์น ์๋ต
- ICANN(์์ด์นธ) : ์ธํฐ๋ท ๋๋ฉ์ธ ๊ด๋ฆฌ์ ์ ์ฑ ์ ๊ฒฐ์ ํ๋ ๋น์๋ฆฌ ๊ธฐ๊ตฌ
- com | NS | com DNS ์๋ฒ
3. DNS ์๋ฒ <-> com DNS ์๋ฒ ์ฟผ๋ฆฌ๋ฅผ ํตํด google DNS ์๋ฒ ์์น ์๋ต
- TLD DNS ์๋ฒ
- www.iana.org/domains/root/db : TLD DNS ์๋ฒ๊ฐ ๊ด๋ฆฌ๋๋ ๊ธฐ๊ด
- google | NS | google DNS ์๋ฒ
4. DNS ์๋ฒ <-> google DNS ์๋ฒ ์ฟผ๋ฆฌ๋ฅผ ํตํด 142.250.199.78 IP ์๋ต
- ๋๋ฉ์ธ ๋ฑ๋ก ๋ํ์ : ๊ฐ๋น์, ๋ท๋ค์ ์ฝ๋ฆฌ์ ๋ฑ
- www.google.com | CNAME | google.com
- google.com | A | 142.250.199.78
5. DNS ์๋ฒ > ํด๋ผ์ด์ธํธ๋ก 142.250.199.78 IP ์๋ต
Domain Record Type
์ข ๋ฅ | ์ค๋ช |
A | ๋๋ฉ์ธ์ด๋ FQDN์ IPv4์ ์ฐ๊ฒฐ |
AAA | ๋๋ฉ์ธ์ด๋ FQDN์ IPv6์ ์ฐ๊ฒฐ |
CNAME | A Record์ ์ฐ๊ฒฐํ์ฌ ๋ณ์นญ ์ ์ |
MX | ๋ฉ์ผ ์๋ฒ์ ์ฐ๊ฒฐ |
NS | ๊ณต์์ ์ธ ๋ค์ ์๋ฒ์ ์ฐ๊ฒฐ |
PTR | IP๋ฅผ ๊ฐ์ง๊ณ ๋๋ฉ์ธ์ ์ง์(์ญ๋ฐฉํฅ ์ง์) |
SOA | ๊ธฐ๋ณธ ์ด๋ฆ ์๋ณ |
SRV | ์๋น์ค์ ์์น(ํธ์คํธ ์ด๋ฆ, ํฌํธ ๋ฒํธ)๋ฅผ ์ ์ฅ |
TXT | ์์ ํ ๋๋ฉ์ธ์ ๊ฐ๋จํ ํ ์คํธ ๋ฐ์ดํฐ ์ ๋ ฅ |
์ฃผ์ DNS
์์น | main | sub | |
ํด์ธ | 8.8.8.8 | 8.8.4.4 | |
KT | ๊ตญ๋ด | 168.126.63.1 | 168.126.63.2 |
SKT | ๊ตญ๋ด | 210.220.163.82 | 219.250.36.130 |
LG | ๊ตญ๋ด | 164.124.107.9 | 203.248.242.2 |
๊ด๋ จ ๋ช ๋ น์ด
# google.com ๋ก์ปฌ์ ์ฐ๊ฒฐ๋ dns ์๋ฒ(kt ํ์ ์ด๋ผ kt dns ์๋ ์ฐ๊ฒฐ)์์ nslookup
$ nslookup google.com
Server: 168.126.63.1
Address: 168.126.63.1#53
Non-authoritative answer:
Name: google.com
Address: 142.250.199.78
# google.com 8.8.8.8 dns ์๋ฒ์์ nslookup
$ nslookup google.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.com
Address: 172.217.24.206
# google.com mx record type nslookup
$ nslookup -q=mx google.com
Server: 168.126.63.1
Address: 168.126.63.1#53
Non-authoritative answer:
google.com mail exchanger = 40 alt3.aspmx.l.google.com.
google.com mail exchanger = 50 alt4.aspmx.l.google.com.
google.com mail exchanger = 10 aspmx.l.google.com.
google.com mail exchanger = 20 alt1.aspmx.l.google.com.
google.com mail exchanger = 30 alt2.aspmx.l.google.com.
Authoritative answers can be found from:
alt3.aspmx.l.google.com internet address = 173.194.74.27
alt3.aspmx.l.google.com has AAAA address 2607:f8b0:4001:c0d::1a
alt4.aspmx.l.google.com internet address = 173.194.209.26
alt4.aspmx.l.google.com has AAAA address 2607:f8b0:4024:c02::1b
aspmx.l.google.com internet address = 64.233.189.27
aspmx.l.google.com has AAAA address 2404:6800:4008:c03::1a
alt1.aspmx.l.google.com internet address = 74.125.137.27
alt1.aspmx.l.google.com has AAAA address 2607:f8b0:4023:c03::1a
alt2.aspmx.l.google.com internet address = 64.233.180.26
alt2.aspmx.l.google.com has AAAA address 2607:f8b0:4003:c0b::1a
'Network' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
SDN (0) | 2021.03.14 |
---|---|
TCP์ UDP (0) | 2021.02.01 |
ARP Spoofing (0) | 2020.06.06 |
Switch Jamming Attack (0) | 2020.06.06 |
CDN (0) | 2020.06.06 |