Route 53

Route 53 ์ž์„ธ-ํžˆ ์•Œ์•„๋ณด๊ธฐ ์‹ค๋ฌด ver.

What is Amzaon Route 53?

: AWS๊ฐ€ ์ œ๊ณตํ•˜๋Š” DNS (Domain Name Service)

Supported DNS record types

: AWS docs๋ฅผ ์ฐธ๊ณ ํ•˜๋ฉด ์ž์„ธํžˆ ์ •๋ฆฌ๋˜์–ด ์žˆ์ง€๋งŒ ์ž์ฃผ ์“ฐ๋Š” ๊ฒƒ์„ ๊ฐ„๋‹จํžˆ ์ •๋ฆฌํ•ด๋ณด๊ธฐ

  • A record type

    • IPv4 address

  • AAAA record type

    • IPv6 address

  • CNAME record type

    • domain ์ฃผ์†Œ๊ฐ€ ๋‹ค๋ฅธ ์ฃผ์†Œ๋ฅผ ๋ฐ”๋ผ๋ณผ ๋•Œ

  • MX record type

    • ๋ง ๊ทธ๋Œ€๋กœ mail server

  • SPF record type

    • mail ๊ด€๋ จ

  • TXT record type

    • ์กฐํšŒํ•˜๋ฉด " ๋กœ ๊ฐ์‹ธ์ง„ 1๊ฐœ ์ด์ƒ์˜ string์„ return ํ•œ๋‹ค

    • Usage

      • reverse dns lookup

      • auth

        • domain ์†Œ์œ ์ฃผ๊ฐ€ ๋งž๋Š”์ง€ ์ธ์ฆํ•˜๋Š” ๋ฐฉ๋ฒ•

          1. domain owner์—๊ฒŒ ๋ฉ”์ผ ๋ณด๋‚ด๊ธฐ

          2. ๋‚ด domain์— mail service (MX record type, etc.)๋ฅผ ์—ฐ๊ฒฐํ•˜๊ณ  ๋ฉ”์ผ์„ ๋ฐ›๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ์ธ์ฆํ•œ๋‹ค

            • ์ด ๋ฐฉ๋ฒ•์€ ์กฐ๊ธˆ ๊ท€์ฐฎ์•„์„œ ์•„๋ž˜์˜ TXT record type์„ ์‚ฌ์šฉํ•œ๋‹ค

alias

  • Route 53์—๋งŒ ์žˆ๋Š” ๊ธฐ๋Šฅ

  • AWS Service๋ฅผ ์—ฐ๊ฒฐํ•  ๋•Œ ์‚ฌ์šฉํ•œ๋‹ค

  • LB๋Š” CNAME์œผ๋กœ ์—ฐ๊ฒฐํ•˜๋ฉด ์•ˆ๋œ๋‹ค

    • why?

      • LB domain์ด ๊ณ„์† ๋ฐ”๋€Œ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค

      • but, ์ด๊ฑด Cloud ํ™˜๊ฒฝ์ด๋ผ์„œ ๊ทธ๋Ÿฐ ๊ฒƒ!

    • ALB๋Š” Instances๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ๋‹ค

      • Instance์˜ IP๋Š” 2๊ฐœ + a์ด๋‹ค

        • why? traffic์ด ๋งŽ์œผ๋ฉด ๋” ๋งŽ์€ IP๋ฅผ ํ• ๋‹นํ•˜๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค

      • ๊ทธ๋ž˜์„œ ๋‹ค์ˆ˜์˜ IP๋ฅผ domain ์ฃผ์†Œ์— mappingํ•ด์„œ ๊ด€๋ฆฌํ•œ๋‹ค

์™œ alias๋ฅผ ์‚ฌ์šฉํ• ๊นŒ?

  • ๋งŒ์•ฝ CNAME์„ ์‚ฌ์šฉํ•˜๋ฉด

    • ์ ‘์†ํ•˜๋Š” client ์ž…์žฅ์—์„œ ํ•ด๋‹น domain ์ •๋ณด๋ฅผ ๋ฌผ์–ด๋ณด๋ฉด ์ตœ์ข… ๋ชฉ์ ์ง€ ์ •๋ณด๋ฅผ ๋ฌผ์–ด๋ณด๊ณ  ๋‹ค์‹œ ๋ฌผ์–ด๋ด์•ผ ํ•œ๋‹ค!

      • why?

        • CNAME์€ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์œผ๋ฉด ํƒ€๊ณ  ํƒ€๊ณ  ๋“ค์–ด๊ฐ€๋‹ค๊ฐ€ ์ข…๋‹จ record๊ฐ€ ๋‚˜์˜จ๋‹ค

          • ๊ทธ๊ฒŒ ๋ฐ”๋กœ IP

  • CNAME์ด ์•„๋‹Œ alias๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ 

    • ํŽธ๋ฆฌํ•จ

      • CNAME ์€ ์—ฌ๋Ÿฌ๋ฒˆ ๋ฌผ์–ด๋ณด๊ธฐ ๋•Œ๋ฌธ์— ๋ถˆํŽธํ•œ๋ฐ alias๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ํŽธ์•ˆํ•˜๋‹ค

        • how?

          • AWS service๋“ค์€ ๋‹ค ์ž๊ธฐ ์ž์›์ด๋‹ˆ๊นŒ Route 53์ด ๋Œ€์‹  ์กฐํšŒํ•ด์„œ ์ตœ์ข… IP๋ฅผ ํ•œ๋ฒˆ์— ์กฐํšŒํ•ด์ค€๋‹ค

    • ์„ฑ๋Šฅ

      • Client ์ž…์žฅ์—์„œ ์„ฑ๋Šฅ์ด ์•ฝ๊ฐ„ ์ข‹์•„์ง„๋‹ค

    • ๋น„์šฉ

      • Route 53 ๋น„์šฉ ๊ณผ๊ธˆ ์ฒด๊ณ„

        • ์กฐํšŒ ์‹œ A record < CNAME

          • CNAME์ด ๋” ๋น„์‹ธ๋‹ค

          • alias ๋น„์šฉ == A record

Route 53 Tips

  • ํ•œ ๊ฐœ์˜ domain ์ฃผ์†Œ์— ๋Œ€ํ•ด ์—ฌ๋Ÿฌ๊ฐœ์˜ record type์„ ๊ฐ€์งˆ ์ˆ˜ ์žˆ๋‹ค

    • ๊ฐ™์€ domain์— ๋˜ ๋‹ค๋ฅธ record ์ถ”๊ฐ€ ๊ฐ€๋Šฅ!

  • ๊ฐ™์€ record type์— ๋Œ€ํ•ด record ์ถ”๊ฐ€๋ฅผ ์›ํ•  ์‹œ multiline์œผ๋กœ ๋“ฑ๋ก ๊ฐ€๋Šฅํ•˜๋‹ค

    • ๋‘ ๊ฐœ๋ฅผ ๋“ฑ๋กํ•˜์ง€ ๋ง์ž!

Last updated