Domain names implementation and specification
This presentation is the property of its rightful owner.
Sponsored Links
1 / 18

Domain Names Implementation and specification PowerPoint PPT Presentation


  • 62 Views
  • Uploaded on
  • Presentation posted in: General

RFC #1035. Domain Names Implementation and specification. 陳怡良  [email protected] 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.

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Domain names implementation and specification

RFC #1035

Domain Names Implementation and specification

[email protected]


Overview

Overview

  • Provide a mechanism for naming resources

  • User’s view

  • Resolver’s view

  • Two kinds of data:

    • Authoritative

    • Cache


Common configuration

Local host

Foreign

User queries

queries

User

Program

Resolver

Foreign

Name

Server

User responses

responses

cache additions

reference

cache

Common configuration


Common configuration cont

Local host

Foreign

responses

Foreign

Resolver

Name

Server

Master

files

queries

maintenance queries

Foreign

Name

Server

maintenance responses

Common configuration(cont.)


Conventions

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.


Conventions cont

Conventions(cont.)

Data Transmission Order--octets

Character Case—case-insensitive

Size limits

  • labels63 octets or less

  • names255 octets or less

  • TTLpositive values of a signed 32 bit number

  • UDP messages512 octets or less


Rr definitions format

RR definitions--Format

111111

0123456789012345


Rr definitions cont type values

RR definitions(cont.)--TYPE values


Rr definitions cont

RR definitions(cont.)


Rr definitions cont soa rdata format

RR definitions(cont.) –SOA RDATA format


Messages format

111111

0123456789012345

Messages--Format


Messages cont format

Messages(cont.)--Format

OPCODE

0QUERY

1IQUERY

2STATUS

3-15reserved

RCODE

0No error condition

1Format error

2Server failure

3Name Error

4Not Implemented

5Refused

6-15reserved


Messages cont question section format

111111

0123456789012345

Messages(cont.)—Question section format


Messages cont resource record format

111111

0123456789012345

Messages(cont.)—Resource record format

  • The answer, authority, and additional sections


Resolver implementation mail support

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>


Master files named conf

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; };

};


Master files cont rev 200

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.


Master files cont hosts im

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


  • Login