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



Similar documents
Copyright

DNS. Computer Networks. Seminar 12

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

- Domain Name System -

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

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

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

ECE 4321 Computer Networks. Network Programming

Understand Names Resolution

Windows 2008 Server. Domain Name System Administración SSII

FAQ (Frequently Asked Questions)

DNS Domain Name System

what s in a name? taking a deeper look at the domain name system mike boylan penn state mac admins conference

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

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

Internet-Praktikum I Lab 3: DNS

Domain Name Server. Training Division National Informatics Centre New Delhi

Using Webmin and Bind9 to Setup DNS Sever on Linux

How to Add Domains and DNS Records

The Domain Name System

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

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

Domain Name System (DNS) Fundamentals

Networking Domain Name System

DNS and BIND. David White

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

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

How to Configure the Windows DNS Server

DNS : Domain Name System

Understanding DNS (the Domain Name System)

Networking Domain Name System

Module 2. Configuring and Troubleshooting DNS. Contents:

Distributed Systems. 09. Naming. Paul Krzyzanowski. Rutgers University. Fall 2015

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

Introduction to DNS CHAPTER 5. In This Chapter

Copyright International Business Machines Corporation All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure

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

DNS at NLnet Labs. Matthijs Mekking

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

How To Guide Edge Network Appliance How To Guide:

THE DOMAIN NAME SYSTEM DNS

3. The Domain Name Service

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

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

DNS and BIND Primer. Pete Nesbitt linux1.ca. April 2012

Networking Domain Name System

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System

DNS Root NameServers

Chapter 23 The Domain Name System (DNS)

Enterprise Architecture Office Resource Document Design Note - Domain Name System (DNS)

Introduction to the Domain Name System

DNS + DHCP. Michael Tsai 2015/04/27

Use Domain Name System and IP Version 6

Zimbra :: The Leader in Open Source Collaboration. Administrator's PowerTip #3: June 21, 2007 Zimbra Forums - Zimbra wiki - Zimbra Blog

Building a Linux IPv6 DNS Server

DNSSEC Applying cryptography to the Domain Name System

The Domain Name System (DNS)

DNS Service on Linux. Supawit Wannapila CCNA, RHCE

How to Configure Split DNS

Basic DNS Course. Module 1. DNS Theory. Ron Aitchison ZYTRAX, Inc. Page 1 of 24

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

Lab 4 Domain Name System - DNS CMPE 150

CDN SERVICE ICSS ROUTE MANAGED DNS DEUTSCHE TELEKOM AG INTERNATIONAL CARRIER SALES AND SOLUTIONS (ICSS)

Domain Name System DNS

DNS. DNS Fundamentals. Goals of this lab: Prerequisites: LXB, NET

The Domain Name System (DNS)

DNS & IPv6. Agenda 4/14/2009. MENOG4, 8-9 April Raed Al-Fayez SaudiNIC CITC rfayez@citc.gov.sa, DNS & IPv6.

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

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

Introduction to Network Operating Systems

The Domain Name System

Services: DNS domain name system

NET0183 Networks and Communications

Application Protocols in the TCP/IP Reference Model

Creating a master/slave DNS server combination for your Grid Infrastructure

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

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

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

CS 355. Computer Networking. Wei Lu, Ph.D., P.Eng.

Understanding DNS: Essential knowledge for all IT professionals

Computer Networks: Domain Name System

Domain Name System. Heng Sovannarith

Computer Networks Prof. S. Ghosh Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 34 DNS & Directory

IPv6 support in the DNS

DNS Basics. DNS Basics

Domain Name Service (DNS) Training Division, NIC New Delhi

Section 1 Overview Section 2 Home... 5

Response Policy Zones for the Domain Name System (DNS RPZ) By Paul Vixie, ISC (et.al.) 2010 World Tour

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

2 HDE Controller X DNS Server Manual

The Application Layer: DNS

CS 348: Computer Networks. - DNS; 22 nd Oct Instructor: Sridhar Iyer IIT Bombay

Installing and Setting up Microsoft DNS Server

Glossary of Technical Terms Related to IPv6

The Use of DNS Resource Records

Talk-101 User Guide. DNSGate

Transcription:

Computer System Security and Management SMD139 Lecture 5: Domain Name System Peter A. Jonsson DNS Translation of Hostnames to IP addresses Hierarchical distributed database DNS Hierarchy The Root Name Servers Root name server.com name server....se name server Keeps track of all top level domains Google.com name server LTU.se name server Do not use as your ordinary name server on your PC

Top Level Domains Centralizing DNS Two types: cctld s, (.fi,.se) - country code TLD s gtld s (.com,.org) - generic TLD s http://www.icann.org/tlds Single point of failure Not scalable Traffic volume Response time Three Kinds of Queries Recursive Example #1 Recursive query Iterative query - mandatory to support! Reverse query - what is the domain name for this MX query Scenario: You want to know the IP of kerberos.kth.se Resolver (you/your computer) asks local NS for kerberos.kth.se, lets assume it doesn t have it cached - have to keep digging NS queries root server for the host, which gives the TLD servers for.se in return

Recursive Example #2 Iterative Example #1 NS queries TLD server for IP of kerberos.kth.se, gets a reply of the NS for kth.se NS queries NS for kth.se for IP of host, zone file defines a CNAME which shows kerberos is an alias for himinbjorg and returns that and the A record (130.237.48.16) Send this information back to the resolver, transaction complete Scenario: You want to know the IP of kerberos.kth.se Resolver (you/your computer) asks local NS for kerberos.kth.se, lets assume it doesn t have it cached - have to keep digging NS replies with referral to root servers Iterative Example #2 Registering Domains Resolver queries root servers for kerberos.kth.se, gets TLD servers for.se in return Resolver queries TLD for the host, gets NS for kth.se in return Resolver queries kth.se which has the information, replies with both the CNAME and A record Register with the proper authority for the TLD you want. cctld s: www.iana.org/root-whois gtld s: www.icann.org/registrars Transaction done

About Domain Names Not case-sensitive Each subdomain component limited to 63 characters The Client Side FQDN is limited to 255 characters räksmörgås.se is a bad name DNS clients Name Service Switch Configured via /etc/resolv.conf in most Unices First line: search csee.ltu.se ltu.se If you try to lookup krb1 and it can t be found, it will first try to find krb1.csee.ltu.se, then krb1.ltu.se Second/Third line: nameserver <ip> Solaris and Linux provides /etc/nsswitch.conf, for specifying where to look for certain data Example line: hosts: files dns Specifies that to find a host it should first look in /etc/hosts, if not there perform a dns lookup

Managing DNS The Server Side Most common server: Bind, consists of: The resolver library (used by gethostbyname() and relatives) The name server, often called named Make sure to watch out for security holes Record types in DNS More Record Types SOA: Start of Authority NS: Name Server definition A: Host name to IP address mapping CNAME: Canonical name, host alias PTR: IP address to host name mapping SRV: Service record AAAA: IPv6 host name to address mapping MX: Mail server definition

Reverse Records Name Servers Resides in in-addr.arpa domain IP number is reversed: 1.1.240.130.inaddr.arpa is really 130.240.1.1 Reverse mapping is *NOT* optional! If a name server has authority of a zone, it has all data for the zone in question Two kinds of name servers - primary and secondary masters. Often referred to as master/slave The slave pulls its data from the master Name Servers #2 Guidelines and Rules The pulling is called a Zone transfer A single name server can be authoritative for several zones. It could also be master for one zone and slave for another Always use FQDN for NS and MX records (Never CNAME, things will break) Email delivery problems often caused by missing or faulty PTR records

Split DNS Troubleshooting DNS Possibility to give different replies depending on who is asking (How do you reproduce errors your customers are seeing with this?) Dig is the command to use for querying DNS servers you want to troubleshoot dig <recordtype> @<server> <name> getent hosts <ip> might give a clue what your OS think is the right answer Watch out for nscd, it might cache bad records! Configuration Example Configuring Bind options { directory var/named ; pid-file /var/run/named ; zone. { type hint; file named.cache ; zone 0.0.127.in-addr.arpa { type master; file localhost.rev ; notify no;

Configuring primary master zone ahania.com { type master; file ahania.com.db ; zone 10.168.192.in-addr.arpa { type master; file 192.168.10.rev ; Configuring secondary master zone verdana.com { type slave; master{192.168.10.1; file sec/verdana.com.db ; zone 10.168.192.in-addr.arpa { type slave; masters{192.168.10.1; file sec/192.168.10.rev ; Zone Transfers Security Is there any real security in not allowing people to list your zones?

Transaction Signatures DNSSEC Provides secure server to server communication (zone transfer, notify, recursive queries) Uses shared secrets and a hash function for authentication Relatively light weight All answers are signed Designed to protect people from DNS cache poisoning No confidentiality of data! DNSSEC #2 Securing the named process Authenticates that data is truly from the domain owner, or not available Possibility to store certificates, useful if using DNS as Public Key Infrastructure Keep track of security holes in the version you use, if necessary upgrade Do not run named as root. Have a separate user that only runs named. Run in a chrooted environment