The Domain Name System. CeylonLinux DNS concepts using BIND 2 Hostnames IP Addresses are great for computers –IP address includes information used for.

Slides:



Advertisements
Similar presentations
Web Server Administration
Advertisements

Web Server Administration Chapter 4 Name Resolution.
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
Copyright © 2007 by Scott Orr and the Trustees of Indiana University
DNS server & Client Objectives Contents
DNS Domain name server – a server to translate IP aliases to addresses As you know, IP (internet protocol) works by providing every Internet machine with.
DNS. DNS is a network service that enables clients to resolve names to IP address and vice-versa. Allows machines to be logically grouped by domain names.
1 DNS. 2 BIND DNS –Resolve names to IP address –Resolve IP address to names (reverse DNS) BIND –Berkeley Internet Name Domain system Version 4 is still.
Chapter 4 - Lab DNS Configuration in Linux.  DNS Configuration in Linux Projects 4-1 through 4-3 Projects 4-4 deals with multiple domains  DNS Configuration.
McGraw-Hill©The McGraw-Hill Companies, Inc., Chapter 25 Domain Name System.
Domain Name System (DNS) Network Information Center (NIC) : HOSTS.TXT.
DNS Domain Name Service america.pcs.cnu.edu->
The Domain Name System Unix System Administration Download PowerPoint Presentation.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
1 DNS,NFS & RPC Rizwan Rehman, CCS, DU. Netprog: DNS and name lookups 2 Hostnames IP Addresses are great for computers –IP address includes information.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Domain Name System ( DNS )  DNS is the system that provides name to address mapping for the internet.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
DNS. Outline r Domain Name System r DNS Hierarchy r Resolution.
Domain Name Services Oakton Community College CIS 238.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
DNS. Introduction What is DNS? –Hierarchy or Tree –Dot used as a separator.
New SA Training Topic 7: DNS and DHCP To implement the underlying basis for our organizations networking, we rely on two fundamental services  DNS – the.
DNS Domain Name System. Hostnames  IP Addresses are great for computers – IP address includes information used for routing.  IP addresses are tough.
1 Network Administration Module 6 Domain Name Service (DNS)
Netprog: DNS and name lookups1 Address Conversion Functions and The Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Chapter 16 – DNS. DNS Domain Name Service This service allows client machines to resolve computer names (domain names) to IP addresses DNS works at the.
Domain Names System The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the.

DNS and C# SWE 344 Internet Protocols & Client Server Programming.
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Domain Name System HISTORY File hosts (the size of Internet became more than 1000.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
14 DNS : The Domain Name System. 14 Introduction - Problem Computers are used to work with numbers Humans are used to work with names ==> IP addresses.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 25 (Data Communication & Networking Book): Domain Name System (DNS) 1.
Chapter 17 Domain Name System
DNS Related Commands Sayed Ahmed Computer Engineering, BUET, Bangladesh (Graduated on 2001 ) MSc, Computer Science, U of Manitoba, Canada
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 6: Name Resolution.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 6: Name Resolution.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
Domain Name System CH 25 Aseel Alturki
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
Netprog: DNS and name lookups1 Address Conversion Functions and The Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Internet and Intranet Protocols and Applications Lecture 5 Application Protocols: DNS February 20, 2002 Joseph Conron Computer Science Department New York.
1 Kyung Hee University Chapter 18 Domain Name System.
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
1 Internet Network Services. 2 Module - Internet Network Services ♦ Overview This module focuses on configuring and customizing the servers on the network.
DNS DNS overview DNS operation DNS zones. DNS Overview Name to IP address lookup service based on Domain Names Some DNS servers hold name and address.
DNS server & Client Objectives –to learn how to setup dns servers Contents –An Introduction to DNS –How To Download and Install The BIND Packages –How.
Linux Operations and Administration
DNS - BIND9 Přednášející Vaše jméno. Master and caching name server options { directory "/var/named"; allow-transfer {“none”;}; }; zone "." { type hint;
Web Server Administration Chapter 4 Name Resolution.
1 CMPT 471 Networking II DNS © Janice Regan,
OPTION section It is the first section of the named.conf User can use only one option statement and many option-value pair under the section. Syntax is.
2/26/2003 Lecture 4 Computer System Administration Lecture 4 Networking Startup/DNS.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
Internet Naming Service: DNS* Chapter 5. The Name Space The name space is the structure of the DNS database –An inverted tree with the root node at the.
Domain Name System DPNM Lab. Seongho Cho
1 Internet Service DNS & BIND OPS335 Seneca College of Applied Technology.
System Administration(SAD622S) Name of Presenter: Shadreck Chitauro Lecturer 18 July 2016 Faculty of Computing and Informatics.
DNS Domain name server a server to translate IP aliases to addresses
Understand Names Resolution
Networking Applications
LINUX ADMINISTRATION 1
DNS and Bind Presenter David Wood
CpSc 360: Distributed and Network Programming
Net 323 D: Networks Protocols
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
DNS : Domain Name System
Computer Networks Primary, Secondary and Root Servers
Windows Name Resolution
Presentation transcript:

The Domain Name System

CeylonLinux DNS concepts using BIND 2 Hostnames IP Addresses are great for computers –IP address includes information used for routing. IP addresses are tough for humans to remember. IP addresses are impossible to guess. –ever guessed at the name of a WWW site?

CeylonLinux DNS concepts using BIND 3 The Domain Name System The domain name system is usually used to translate a host name into an IP address. Domain names comprise a hierarchy so that names are unique, yet easy to remember.

CeylonLinux DNS concepts using BIND 4 DNS Hierarchy educomorgjp rpialbany

CeylonLinux DNS concepts using BIND 5 Host name structure Each host name is made up of a sequence of labels separated by periods. –Each label can be up to 63 characters –The total name can be at most 255 characters. Examples: –whitehouse.gov –barney.the.purple.dinosaur.com –monica.cs.rpi.edu

CeylonLinux DNS concepts using BIND 6 Domain Name The domain name for a host is the sequence of labels that lead from the host (leaf node in the naming tree) to the top of the worldwide naming tree. A domain is a subtree of the worldwide naming tree.

CeylonLinux DNS concepts using BIND 7 Top level domains edu, gov, com, net, org, mil, … Countries each have a top level domain (2 letter domain name). New top level domains include:.aero.biz.coop.info.name.pro

CeylonLinux DNS concepts using BIND 8 DNS Organization Distributed Database –The organization that owns a domain name is responsible for running a DNS server that can provide the mapping between hostnames within the domain to IP addresses. –So - some machine run by RPI is responsible for everything within the rpi.edu domain.

CeylonLinux DNS concepts using BIND 9 rpi.edu DNS DB rpi.edu DNS DB DNS Distributed Database There is one primary server for a domain, and typically a number of secondary servers containing replicated databases. rpi.edu DNS DB Authoritative rpi.edu DNS DB Replicas rpi.edu DNS server

CeylonLinux DNS concepts using BIND 10 DNS Clients A DNS client is called a resolver. A call to gethostbyname() is handled by a resolver (typically part of the client). Most Unix workstations have the file /etc/resolv.conf that contains the local domain and the addresses of DNS servers for that domain.

CeylonLinux DNS concepts using BIND 11 /etc/resolv.conf domain rpi.edu

CeylonLinux DNS concepts using BIND 12 nslookup nslookup is an interactive resolver that allows the user to communicate directly with a DNS server. nslookup is usually available on Unix workstations.

CeylonLinux DNS concepts using BIND 13 DNS Servers Servers handle requests for their domain directly. Servers handle requests for other domains by contacting remote DNS server(s). Servers cache external mappings.

CeylonLinux DNS concepts using BIND 14 Server - Server Communication If a server is asked to provide the mapping for a host outside it’s domain (and the mapping is not in the server cache): –The server finds a nameserver for the target domain. –The server asks the nameserver to provide the host name to IP translation. To find the right nameserver, use DNS!

CeylonLinux DNS concepts using BIND 15 DNS Data DNS databases contain more than just hostname-to-address records: –Name server recordsNS –Hostname aliases CNAME –Mail ExchangersMX –Host InformationHINFO

CeylonLinux DNS concepts using BIND 16 The Root DNS Server The root server needs to know the address of 1st (and many 2nd) level domain nameservers. educomorgjp albany rpi

CeylonLinux DNS concepts using BIND 17 Server Operation If a server has no clue about where to find the address for a hostname, ask the root server. The root server will tell you what nameserver to contact. A request may get forwarded a few times.

CeylonLinux DNS concepts using BIND 18 DNS Message Format HEADER QUERIES Response RESOURCE RECORDS Response AUTHORITY RECORDS Response ADDITIONAL INFORMATION HEADER QUERIES Response RESOURCE RECORDS Response AUTHORITY RECORDS Response ADDITIONAL INFORMATION

CeylonLinux DNS concepts using BIND 19 Question Format Name: domain name (or IP address) Query type (A, NS, MX, …)

CeylonLinux DNS concepts using BIND 20 Response Resource Record Domain Name Response type Class (IP) Time to live (in seconds) Length of resource data Resource data

CeylonLinux DNS concepts using BIND 21 UDP & TCP Both UDP and TCP are used: –TCP for transfers of entire database to secondary servers (replication). –UDP for lookups –If more than 512 bytes in response - requestor resubmits request using TCP.

CeylonLinux DNS concepts using BIND 22 Name to Address Conversion There is a library of functions that act as DNS client (resolver).

CeylonLinux DNS concepts using BIND 23 DNS Data Flow

CeylonLinux DNS concepts using BIND 24 Example suranga.com This is named.conf in /etc/ folder According to the following configuration I have created a zone called suranga.com and in that zone im3 is a host. Therefore the full name of that host would be im3.suranga.com. like that you can have any amount of PCs in your domain. This will definitely works if you type following according to your network.

CeylonLinux DNS concepts using BIND 25 Example Network

CeylonLinux DNS concepts using BIND 26 This is named.conf in /etc/ folder options { directory "/var/named"; // query-source address * port 53; }; zone "." IN { type hint; file "named.ca"; }; zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; }; zone " in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; }; zone "suranga.com" IN { type master; file "suranga.com.zone"; allow-update { none; }; }; zone " in-addr.arpa" IN { type master; allow-update { none; }; };

CeylonLinux DNS concepts using BIND 27 BIND Files Following files should be created in /var/named/ folder we do not need to customize the default file named.ca in the /var/named/ folder in-addr.arpa.zone in-addr.arpa.zone 3.suranga.com.zone 4.localhost.zone 5. named.local

CeylonLinux DNS concepts using BIND 28 The contents of in- addr.arpa.zone as follows $TTL IN SOA localhost. root.localhost ( 1 ; serial ; refresh 7200 ; retry ; expire ; ttk IN NS localhost. 1 IN PTR localhost.

CeylonLinux DNS concepts using BIND in-addr.arpa.zone file $TTL IN SOA root.localhost ( 1 ; serial ; refresh 7200 ; retry ; expire ; ttk IN NS localhost. 1 IN PTR localhost. 2 IN PTR im3.

CeylonLinux DNS concepts using BIND 30 suranga.com.zone file $TTL IN root.suranga.com ( 1 ; serial ; refresh 7200 ; retry ; expire ; ttl ) IN NS IN A im3 IN A

CeylonLinux DNS concepts using BIND 31 localhost.zone file $TTL IN root.localhost ( 1 ; serial ; refresh 7200 ; retry ; expire ; ttl ) IN NS IN A

CeylonLinux DNS concepts using BIND 32 named.localhost file $TTL IN SOA localhost. root.localhost. ( ; Serial ; Refresh ; Retry ; Expire ) ; Minimum IN NS localhost. 1 IN PTR localhost.

CeylonLinux DNS concepts using BIND 33 Results Now go to the prompt and type service named start and type nslookup commands to verify your domain as follows. #nslookup >suranga.com Server: Address: #53 Name: suranga.com Address: >im3.suranga.com Server: Address: #53 Name: im3.suranga.com Address:

CeylonLinux DNS concepts using BIND 34 Configuration Files named configuration file (/etc/named.conf): It basically defines the parameters that point to the sources of domain database information, which can be local files or on remote servers. Hint file (cache file)(/var/named/named.ca): It actually provides the name of root server which gets activated in case the machine name, which is to be searched, is not there in user defined zone. localhost file (/var/named.local): All configuration have a local domain Database for resolving address to the host name localhost. Zone: Basically a zone that keeps the information about the domain database.

CeylonLinux DNS concepts using BIND 35 More on zone It means from the origin to the lastname object that is suranga.com. IN: This stands for Internet servers SOA: This stands for `Start Of Authority’. It marks the beginning of a zone’s data and defines the parameter that affects the entire zone. Followed by the current machine name where the DNS server is maintained ;serial: This is the serial number--a numeric value that tells or notifies the slave server, that the database has been updated. So slave server should also update it. 3600;refresh: This is the refresh cycle in seconds. In every refresh cycle the slave server comes to master server and checks for the updated database.

CeylonLinux DNS concepts using BIND 36 More on zone files 1800;retry: This particular line refers to the retry cycle which in turn means that the slave server should wait before asking the master server again in case master server doesn’t respond ;expire: This is the time for slave server to respond to queries of client for the expiration time if master server fails and has to be up and not getting up. After this period slave server also fails to solve the queries of clients and sits idle ;default_ttl: This refers to the default time to leave, for this domain to work for, when named is once started. Remember the user doesn’t have to play with this unless he wants that the query time from the slave server should be somewhat less or more. In case we want to change, we should change only the refresh time in both master and slave. The best way is to make it 2, which means after each 2 seconds slave server will query to master server.