DNS Podstawy sieci komputerowej hosts.txt Lata 70 - - PowerPoint PPT Presentation

dns
SMART_READER_LITE
LIVE PREVIEW

DNS Podstawy sieci komputerowej hosts.txt Lata 70 - - PowerPoint PPT Presentation

DNS Podstawy sieci komputerowej hosts.txt Lata 70 C:\WINDOWS\system32\drivers\etc Zastosowanie hosts.txt Sie IP bez serwera DNS Uywane oprogramowanie nie korzystajce z DNS Zastosowanie specjalne Uwaga na zatrucie


slide-1
SLIDE 1

DNS

Podstawy sieci komputerowej

slide-2
SLIDE 2

hosts.txt

  • Lata 70’
  • C:\WINDOWS\system32\drivers\etc
slide-3
SLIDE 3

Zastosowanie hosts.txt

  • Sieć IP bez serwera DNS
  • Używane oprogramowanie nie korzystające z DNS
  • Zastosowanie specjalne
  • Uwaga na zatrucie hosts.txt
slide-4
SLIDE 4

DNS - 1984

domeny geograficzne Domeny podstawowe arpa com edu gov int mil net

  • rg

ae nl pl us zw pcz interia kik mit cambridge au2 wimii in-addr ip6 192 2 25

Zjednoczone Emiraty Arabskie Holandia Zimbabwe RFC 882 1034, 1035 1535, 1536, 1537

slide-5
SLIDE 5

Serwery DNS

  • Serwer nazw
  • Primary
  • odpowiedź autorytatywna
  • Secondary
  • odpowiedź autorytatywna
  • Caching
  • odpowiedź nieautorytatywna

Resolver

slide-6
SLIDE 6

Serwery DNS

  • Serwer nazw
  • Primary
  • odpowiedź autorytatywna
  • Secondary
  • odpowiedź autorytatywna
  • Caching
  • odpowiedź nieautorytatywna

Resolver

Funkcje resolvera

ogólne lustrowanie translacja nazwy hosta na adres IP translacja adresu IP hosta na nazwę

Informacje od resolvera

rekordy RR z żądanymi danymi błąd nazwy błąd danych

slide-7
SLIDE 7

Podstawowe typy rekordów DNS

  • SOA – DNS zone authority
  • A, AAAA – IP addresses
  • CNAME – domain name aliases
  • PTR – pointers for RDNS
  • MX – SMTP mail exchangers
  • NS – name servers
  • RP – responsible person
  • HINFO
  • TXT
slide-8
SLIDE 8

Podstawowe typy rekordów DNS

  • SOA – DNS zone authority
  • A, AAAA – IP addresses
  • CNAME – domain name aliases
  • PTR – pointers for RDNS
  • MX – SMTP mail exchangers
  • NS – name servers
  • RP – responsible person
  • HINFO
  • TXT
slide-9
SLIDE 9

Rekord DNS

  • NAME
  • Name of the node to which this record pertains (variable length)
  • TYPE
  • Type of RR in numeric form (e.g. 15 for MX RRs) (2 bytes)
  • CLASS
  • Class code (2 bytes)
  • TTL
  • Count of seconds that the RR stays valid (The maximum is 231-1, which is

about 68 years) (4 bytes)

  • RDLENGTH
  • Length of RDATA field (2 bytes)
  • RDATA
  • Additional RR-specific data (variable length)
slide-10
SLIDE 10

Zone file

$ORIGIN example.com. ; designates the start of this zone file in the namespace $TTL 1h ; default expiration time of all resource records without their own TTL value example.com. IN SOA ns.example.com. username.example.com. ( 2007120710 1d 2h 4w 1h ) example.com. IN NS ns ; ns.example.com is a nameserver for example.com example.com. IN NS ns.somewhere.example. ; ns.somewhere.example is a backup nameserver for example.com example.com. IN MX 10 mail.example.com. ; mail.example.com is the mailserver for example.com @ IN MX 20 mail2.example.com. ; equivalent to above line, "@" represents zone origin @ IN MX 50 mail3 ; equivalent to above line, but using a relative host name example.com. IN A 192.0.2.1 ; IPv4 address for example.com IN AAAA 2001:db8:10::1 ; IPv6 address for example.com ns IN A 192.0.2.2 ; IPv4 address for ns.example.com IN AAAA 2001:db8:10::2 ; IPv6 address for ns.example.com www IN CNAME example.com. ; www.example.com is an alias for example.com wwwtest IN CNAME www ; wwwtest.example.com is another alias for www.example.com mail IN A 192.0.2.3 ; IPv4 address for mail.example.com mail2 IN A 192.0.2.4 ; IPv4 address for mail2.example.com mail3 IN A 192.0.2.5 ; IPv4 address for mail3.example.com $ORIGIN example.com. ; designates the start of this zone file in the namespace $TTL 1h ; default expiration time of all resource records without their own TTL value example.com. IN SOA ns.example.com. username.example.com. ( 2007120710 1d 2h 4w 1h ) example.com. IN NS ns ; ns.example.com is a nameserver for example.com example.com. IN NS ns.somewhere.example. ; ns.somewhere.example is a backup nameserver for example.com example.com. IN MX 10 mail.example.com. ; mail.example.com is the mailserver for example.com @ IN MX 20 mail2.example.com. ; equivalent to above line, "@" represents zone origin @ IN MX 50 mail3 ; equivalent to above line, but using a relative host name example.com. IN A 192.0.2.1 ; IPv4 address for example.com IN AAAA 2001:db8:10::1 ; IPv6 address for example.com ns IN A 192.0.2.2 ; IPv4 address for ns.example.com IN AAAA 2001:db8:10::2 ; IPv6 address for ns.example.com www IN CNAME example.com. ; www.example.com is an alias for example.com wwwtest IN CNAME www ; wwwtest.example.com is another alias for www.example.com mail IN A 192.0.2.3 ; IPv4 address for mail.example.com mail2 IN A 192.0.2.4 ; IPv4 address for mail2.example.com mail3 IN A 192.0.2.5 ; IPv4 address for mail3.example.com

slide-11
SLIDE 11

nslookup

slide-12
SLIDE 12

nslookup

slide-13
SLIDE 13

Format pakietu DNS

ustalane przez klienta 0 – zapytanie 1 - odpowiedź

slide-14
SLIDE 14

Format pakietu DNS

ustalane przez klienta 0 – zapytanie 1 - odpowiedź 0-zapytanie stand. 1-zapytanie odwrotne 2-żądanie stanu serwera 1 – odpowiedź potwierdzona 1 – wiadomość obcięta (512 bajtów) 1 – pytanie rekurencyjne 1 – serwer obsługuje pytania rekurencyjne 0 – OK 1 – błędny format 2 – awaria serwera 3 – błędna nazwa (tylko odp. potw.) 5 – odmowa (zał. bezpieczeństwa) liczba pól serwerów nazw liczba pól dodatkowych