ECE 4321 Computer Networks. Network Programming



Similar documents
- Domain Name System -

DNS. Computer networks - Administration 1DV202. fredag 30 mars 12

Copyright

Motivation. Domain Name System (DNS) Flat Namespace. Hierarchical Namespace

Domain Name Servers. Domain Types WWW host names. Internet Names. COMP476 Networked Computer Systems. Domain Name Servers

Understand Names Resolution

DNS. Computer Networks. Seminar 12

Understanding DNS (the Domain Name System)

How to Add Domains and DNS Records

How to Configure the Windows DNS Server

DNS : Domain Name System

Using Webmin and Bind9 to Setup DNS Sever on Linux

Domain Name System (DNS) Fundamentals

Installing and Setting up Microsoft DNS Server

DNS. The Root Name Servers. DNS Hierarchy. Computer System Security and Management SMD139. Root name server. .se name server. .

How to set up the Integrated DNS Server for Inbound Load Balancing

Introduction to Network Operating Systems

DNS Domain Name System

HTG XROADS NETWORKS. Network Appliance How To Guide: EdgeDNS. How To Guide

Domain Name System (DNS)

Configuring the BIND name server (named) Configuring the BIND resolver Constructing the name server database files

The Domain Name System (DNS)

Domain Name System (DNS) Session-1: Fundamentals. Ayitey Bulley

IPv6 Support in the DNS. Workshop Name Workshop Location, Date

THE DOMAIN NAME SYSTEM DNS

Application Protocols in the TCP/IP Reference Model

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Concept. DNS - Domain Name System

CS3250 Distributed Systems

Local DNS Attack Lab. 1 Lab Overview. 2 Lab Environment. SEED Labs Local DNS Attack Lab 1

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Domain Name System

Lecture 2 CS An example of a middleware service: DNS Domain Name System

DNS - Domain Name System

How to Configure Split DNS

DNS Session 4: Delegation and reverse DNS. Joe Abley AfNOG 2006 workshop

Services: DNS domain name system

How To Guide Edge Network Appliance How To Guide:

Hostnames. HOSTS.TXT was a bottleneck. Once there was HOSTS.TXT. CSCE515 Computer Network Programming. Hierarchical Organization of DNS

Lesson 13: DNS Security. Javier Osuna GMV Head of Security and Process Consulting Division

Domain Name Server. Training Division National Informatics Centre New Delhi

How to Configure DNS Zones

Domain Name System :49:44 UTC Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement

How-to: DNS Enumeration

Glossary of Technical Terms Related to IPv6

DNS and Interface User Guide

API of DNS hosting. For DNS-master and Secondary services Table of contents

APNIC elearning: Reverse DNS for IPv4 and IPv6

Networking Domain Name System

Introduction to DNS CHAPTER 5. In This Chapter

Internet-Praktikum I Lab 3: DNS

Windows 2008 Server. Domain Name System Administración SSII

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

Introduction to the Domain Name System

CSIS 3230 Computer Networking Principles, Spring 2012 Lab 7 Domain Name System (DNS)

DNS + DHCP. Michael Tsai 2015/04/27

IPv6 support in the DNS

CS3600 SYSTEMS AND NETWORKS

The Domain Name System

Overview. Principles Creating reverse zones Setting up nameservers Reverse delegation procedures IPv6 Reverse DNS

Networking Domain Name System

Deploying & Configuring a DNS Server on OpenServer 6 or UnixWare 7. Kirk Farquhar

Domain Name System. Heng Sovannarith

Agenda. Network Services. Domain Names. Domain Name. Domain Names Domain Name System Internationalized Domain Names. Domain Names & DNS

Chapter 7 Implementing Domain Name System (DNS)

Introduction to DNS and Application Issues related to DNS. Kirk Farquhar

DNS Resolving using nslookup

Part 5 DNS Security. SAST01 An Introduction to Information Security Martin Hell Department of Electrical and Information Technology

Simple DNS Configuration Example

Understanding DNS By Robert Sterler

Section 1 Overview Section 2 Home... 5

Chapter 23 The Domain Name System (DNS)

Configuring DNS. Finding Feature Information

Domain Name System. Overview. Domain Name System. Domain Name System

netkit lab dns Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version Author(s)

Module 2. Configuring and Troubleshooting DNS. Contents:

Internet Security [1] VU Engin Kirda

DNS based Load Balancing with Fault Tolerance

IP addresses have hierarchy (network & subnet) Internet names (FQDNs) also have hierarchy. and of course there can be sub-sub-!!

The Domain Name System

Switching Your DNS WiredTree

DNS ActiveX Control for Microsoft Windows. Copyright Magneto Software All rights reserved

HTG XROADS NETWORKS. Network Appliance How To Guide: DNS Delegation. How To Guide

IPv6 Support in the DNS. Workshop Name Workshop Location, Date

My Services Online Service Support. User Guide for DNS and NTP services

DNS Pharming Attack Lab

Configuring a Domain to work with your Server

Outline. Definition. Name spaces Name resolution Example: The Domain Name System Example: X.500, LDAP. Names, Identifiers and Addresses

Domain Name System DNS

19 Domain Name System (DNS)

The Use of DNS Resource Records

DNS: How it works. DNS: How it works (more or less ) DNS: How it Works. Technical Seminars Spring Paul Semple psemple@rm.

How To Manage Dns On An Elfiq Link Load Balancer (Link Balancer) On A Pcode (Networking) On Ipad Or Ipad (Netware) On Your Ipad On A Ipad At A Pc Or Ipa

Application and service delivery with the Elfiq idns module

Fasthosts Internet Parallels Plesk 10 Manual

Transcription:

ECE 4321 Computer Networks Network Programming

Name Space System.Net

Domain Name System (DNS) To resolve computer naming Host database is split up and distributed among multiple systems on the Internet Uses a hierarchical database approach Provides means for clients to query the database in real time

DNS Hierarchy (Root) Stay Nameless.com.edu.org.uk.cnn.umn.smallorg.tpcs.acc

Who controls DNS? In the past, the Internic Corporation controlled all US domain names in the.com,.net, and.org Today, a nonprofit organization, the Internet Corporation for Assigned Names and Numbers (ICANN) is responsible Domain names can be purchased from multiple vendors, but all domain names must be cleared by the ICANN for use in the US domain

Finding a Hostname in DNS Search a host within the local domain Search a remote host whose name is not on the local server Search a remote host whose name is on the local DNS server cache root Remote host Local

DNS Database Each DNS server is responsible for keeping track of the hostnames in its zone Each DNS server must store host information in a database that can be queried by remote machines DNS database is a text file that consists of resource records(rrs) for host and network functions in the zone DNS server communicates the DNS information with the root and remote DNS servers

DNS Server s Database Local domain definition Each registered host in the domain Common nicknames for hosts in the domain Special services, such as DNS servers and mail servers

Core DNS Database Records Record Type SOA A NS CNAME HINFO MX PTR Description Start of Authority Internet address Name server Canonical name (nickname) Host information Mail server Pointer (IP address)

SOA Each database starts with a SOA record that defines the zone in which the database resides domain name [TTL] [class] SOA origin person ( serial number refresh retry expire minimum)

DNS database records (1) Internet Address Record (A) Each host in the zone host [TTL] [class] A address Canonical Name Record (CNAME) Nickname of the host nickname [TTL] [class] CNAME hostname Name Server Record (NS) Each zone must have at least two DNS which are defined by NS domain [TTL] [class] NS server

DNS database records (2) Host Information Record (HINFO) Additional host information host [TTL] [class] HINFO hardware software Pointer Record (PTR) Used for reverse queries from IP address IN-ADDR name [TTL] [class] PTR hostname Mail Exchange Record (MX) Instructs remote mail servers where to forward mail for the domain name [TTL] [class] MX preference host

Sample DNS Database Entries smallorg.org IN SOA master.isp.net. Postmaster.master.isp.net postmaster.master.isp.net ( 1999080501 ;unique serial number 8H ; refresh rate 2H ; retry period 1W ; expiration period 1D ) ; minimum NS ns1.isp.net. ;defines primary nameserver NS ns2.isp.net. ; defines secondary nameserver MX 10 mail1.isp.net ;defines primary mailsever MX 20 mail2.isp.net ; defines secondary mail server www CNAME host1.isp.net ;defines a www server at the ISP ftp CNAME host1.isp.net ;defines a ftp server at the ISP host1.isp.net A 10.0.0.1 1.0.0.10.IN-ADDR.ARPA PTR host1.isp.net ;pointer for reverse DNS

DNS test > ping ub.d.umn.edu When you get a response without timeout, it means the IP address was successfully resolved > nslookup www.microsoft.com

DNS Clients UNIX: /etc/hosts WINDOWS C:\WINDOWS\SYSTEM32\DRIVERS\ETC Hosts networks Protocol Services If DHCP is used, dns data is in registry. RegistryKey start = Registry.LocalMachine; String DNSservers = @ SYSTEM\CurrentControlSet\Services\Tcpip\Parameters ; RegistryKey DNSserverKey = start.opensubkey(dnsservers); String serverlist = (string) DNSserverKey.GetValue( NameServer )

DNS Classes System.net contains DNS classes Synchronous methods GetHostName() ;to lookup hostname of local system GetHostByName() ;to lookup Ip by hostname GetHostByAddress() ;to lookup host by address Resolve() ;lookup either by ip or hostname Asynchronous methods BeginGetHostByName() BeginResolve() EndGetHostByName() EndResolve()

Required Reading Rfc on dns