ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • DNS
    개발/Web 2022. 6. 18. 17:11

    *복습 자료라서 뻔한 내용은 생략

     

     

    Summary.

     

    1. Domain Name을 IP Address로 변환시켜주는 Database 시스템

        + 같은 도메인이어도 다른 서버의 ip가 할당됨 (Load Balancing)

        + Cache에 저장해두기 때문에 Cache Poisoning 위험

     

    2. 동작 순서 (ex: yahoo.com)

        + 브라우저 캐시에서 찾기

        + ISP 서버 (Resolver 서버)로 query 전송

        + Resolver 서버는 Cache를 확인한 뒤, Root Server로 query 전송

        + Root Server 은 해당 Domain Name의 IP Address를 알고있는 TLD (top-level domian) 서버의 주소를 알려줌 (.com, .net, 등)

        + TLD 서버는 다시 Authoritative Name Server를 알려줌 (yahoo에 해당하는)

        + 해당 Authoritative Name Server가 IP Address를 알려줌

        + Resolver는 해당 IP Address를 Caching 해둚

     

     

    3. DNS records (aka zone files) are instructions that live in authoritative DNS servers and provide information about a domain including what IP address is associated with that domain and how to handle requests for that domain

        + Global DNS Name Server에서 48시간까지만 Cache 됨

        + CNAME: 다른 domain name을 가리키는 record

        + A RECORD:  translate from a domain name to an IPv4 address

        + MX RECORD: email 서버 설정 관련

        + TXT RECORD: 그냥 text record (SSL Authentication, 등 활용)

        + NS: lists which name servers can answer lookups on a DNS zone

        + SOA: The DNS ‘start of authority’ (SOA) record stores important information about a domain or zone such as the email address of the administrator, when the domain was last updated, and how long the server should wait between refreshes. All DNS zones need an SOA record in order to conform to IETF standards. SOA records are also important for zone transfers

        + Hosted Zone: AWS 관련. (다음에)

        + Alias: AWS 관련. (다음에) CNAME으로 대신 할 수 없는 경우 (S3 Bucket, ELB, 등, ?)

        + https://www.cloudflare.com/learning/dns/dns-records/

     

     

     

    Additional.

    1. dig 명령어로 DNS tracing 가능

     

    2. DNS 구조는 tree. 각 node는 label과 multiple resource records를 가지며, 특정 Domain과 매칭됨. www.example.com 을 예로들면, com 아래 subdomain이 example, 그 아래 subdomain이 www 인 식이며 tree구조로 타고 내려가서 각 zone이 구성되는 방식인 모양 (최대 127개 subdomain 생성 가능)

     

    3. DNS 에서 쓰이는 Message Format이 있음. Question, 등 

     

    4. DNS Zone

     

    5. (다음에) Google Gmail, AWS Route 53이나 GoDaddy, 등, 실제 Domain 등록하는 법, 유지하는 법, 다른 registrar로 변경하는 법, 등, 알기 (대충 각 registrar마다 담당하는 zone, name servers가 있고, 관련 Record Set을 관리하는 듯)

     

     

     

    Reference.

    '개발 > Web' 카테고리의 다른 글

    Cookie & Session vs JWT  (0) 2022.06.18
    OAuth 2.0  (0) 2022.06.18
    Security Context  (0) 2022.06.18
    HTTP Range Request  (0) 2022.06.14
    HTTP Compression  (0) 2022.06.14
Designed by Tistory.