dns
play

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


  1. DNS Podstawy sieci komputerowej

  2. hosts.txt • Lata 70’ • C:\WINDOWS\system32\drivers\etc

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

  4. DNS - 1984 Holandia arpa com edu gov int mil net org ae nl pl us zw Domeny podstawowe domeny geograficzne ip6 in-addr mit cambridge pcz interia 192 kik wimii Zjednoczone Emiraty Arabskie 0 au2 RFC 882 2 Zimbabwe 1034, 1035 25 1535, 1536, 1537

  5. Serwery DNS Resolver • Serwer nazw • Primary • odpowiedź autorytatywna • Secondary • odpowiedź autorytatywna • Caching • odpowiedź nieautorytatywna

  6. Serwery DNS Resolver • Serwer nazw Funkcje resolvera  ogólne lustrowanie • Primary  translacja nazwy hosta na adres IP • odpowiedź autorytatywna  translacja adresu IP hosta na nazwę • Secondary Informacje od resolvera • odpowiedź autorytatywna  rekordy RR z żądanymi danymi • Caching • odpowiedź nieautorytatywna  błąd nazwy  błąd danych

  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 • …

  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 • …

  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 2 31 -1, which is about 68 years) (4 bytes) • RDLENGTH • Length of RDATA field (2 bytes) • RDATA • Additional RR-specific data (variable length)

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

  11. nslookup

  12. nslookup

  13. Format pakietu DNS 0 – zapytanie ustalane przez 1 - odpowiedź klienta

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

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend