DNS
Network

DNS

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
Google ํ•ด์™ธ 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