1 / 18

Domain Names Implementation and specification

RFC #1035. Domain Names Implementation and specification. 陳怡良  cyl@mail.im.tku.edu.tw. Overview. Provide a mechanism for naming resources User’s view Resolver’s view Two kinds of data: Authoritative Cache. Local host. Foreign. User queries. queries. User Program. Resolver.

nen
Download Presentation

Domain Names Implementation and specification

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RFC #1035 Domain Names Implementation and specification 陳怡良 cyl@mail.im.tku.edu.tw

  2. Overview • Provide a mechanism for naming resources • User’s view • Resolver’s view • Two kinds of data: • Authoritative • Cache

  3. Local host Foreign User queries queries User Program Resolver Foreign Name Server User responses responses cache additions reference cache Common configuration

  4. Local host Foreign responses Foreign Resolver Name Server Master files queries maintenance queries Foreign Name Server maintenance responses Common configuration(cont.)

  5. Conventions Preferred name syntax • <domain> ::= <subdomain> | “ “ • <subdomain> ::= <subdomain> “.” <label> • <label> ::= <letter> [[ <ldh-str> ] <let-dig> ] • <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str> • <let-dig-hyp> ::= <let-dig> | “=“ • <let-dig> ::= <letter> | <digit> • <letter> ::= [A-Z][a-z] • <digit> ::= [0-9] PS.Labels must be 63 characters or less.

  6. Conventions(cont.) Data Transmission Order--octets Character Case—case-insensitive Size limits • labels 63 octets or less • names 255 octets or less • TTL positive values of a signed 32 bit number • UDP messages 512 octets or less

  7. RR definitions--Format 111111 0123456789012345

  8. RR definitions(cont.)--TYPE values

  9. RR definitions(cont.)

  10. RR definitions(cont.) –SOA RDATA format

  11. 111111 0123456789012345 Messages--Format

  12. Messages(cont.)--Format OPCODE 0 QUERY 1 IQUERY 2 STATUS 3-15 reserved RCODE 0 No error condition 1 Format error 2 Server failure 3 Name Error 4 Not Implemented 5 Refused 6-15 reserved

  13. 111111 0123456789012345 Messages(cont.)—Question section format

  14. 111111 0123456789012345 Messages(cont.)—Resource record format • The answer, authority, and additional sections

  15. Resolver Implementation& Mail support • Transforming a user request into a query • Sending the queries • Processing responses • Using the cache Mail support • <local-part>@<mail-domain>

  16. Master Files相關範例—named.conf節錄 zone "200.13.163.IN-ADDR.ARPA" { type master; file "rev.200"; }; zone "im.tku.edu.tw" { type master; file "hosts.im"; allow-update { none; }; };

  17. Master Files相關範例(cont.)—rev.200節錄 $TTL 86400; @ IN SOA mail.im.tku.edu.tw. root.mail.im.tku.edu.tw. ( 2000092915 ; Serial 43200 ; Refresh 3600 ; Retry 3600000 ; Expire 2419200 ) ; Minimum IN NS mail.im.tku.edu.tw. IN NS mis.im.tku.edu.tw. IN NS tkgis.tku.edu.tw. ;IMNA Servers 30 IN PTR web.im.tku.edu.tw. 32 IN PTR mis.im.tku.edu.tw. 33 IN PTR sun.im.tku.edu.tw. 37 IN PTR wwwbbs.im.tku.edu.tw. 39 IN PTR ftp.im.tku.edu.tw. 40 IN PTR bbs.im.tku.edu.tw. 222 IN PTR mail.im.tku.edu.tw.

  18. Master Files相關範例(cont.)—hosts.im節錄 $TTL 86400; @ IN SOA mail.im.tku.edu.tw. root.mail.im.tku.edu.tw. ( 2001092980 ; Serial 10800 ; Refresh 3600 ; Retry 3600000 ; Expire 2419200) ; Time to live IN NS mail.im.tku.edu.tw. IN NS mis.im.tku.edu.tw. IN MX 1 mail.im.tku.edu.tw. IN MX 2 mis.im.tku.edu.tw. mail IN A 163.13.200.222 mis IN A 163.13.200.32 sun IN A 163.13.200.33 www IN CNAME sun wwwbbs IN A 163.13.200.37 IN MX 0 wwwbbs.im.tku.edu.tw. bbs IN A 163.13.200.40

More Related