Test cases for domain checks – a step towards a best practice Mats Dufberg,.SE Sandoche Balakrichenan, AFNIC.

Slides:



Advertisements
Similar presentations
Review iClickers. Ch 1: The Importance of DNS Security.
Advertisements

Sergei Komarov. DNS  Mechanism for IP hostname resolution  Globally distributed database  Hierarchical structure  Comprised of three components.
School of Electrical Engineering and Computer Science, 2004 Slide 1 Autonomic DNS Experiment Architecture, Symptom and Fault Identification.
2.1 Installing the DNS Server Role Overview of the Domain Name System Role Overview of the DNS Namespace DNS Improvements for Windows Server 2008 Considerations.
Implementing Domain Name System
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
DNS Session 4: Delegation and reverse DNS Joe Abley AfNOG 2006 workshop.
The Domain Name System. CeylonLinux DNS concepts using BIND 2 Hostnames IP Addresses are great for computers –IP address includes information used for.
1 SecSpider: Distributed DNSSEC Monitoring Eric Osterweil Michael Ryan Dan Massey Lixia Zhang.
Domain Name System (DNS) Network Information Center (NIC) : HOSTS.TXT.
Impact of Configuration Errors on DNS Robustness Vasileios Pappas, Zhiguo Xu, Songwu Lu, Daniel Massey, Andreas Terzis, Lixia Zhang SIGCOMM 2004 Presented.
1 The State and Challenges of the DNSSEC Deployment Eric Osterweil Michael Ryan Dan Massey Lixia Zhang.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 5 Introduction to DNS in Windows Server 2008.
Domain Name System ( DNS )  DNS is the system that provides name to address mapping for the internet.
Domain Name System Security Extensions (DNSSEC) Hackers 2.
Measuring DANE TLSA Deployment Liang Zhu 1, Duane Wessels 2, Allison Mankin 2, John Heidemann 1 1. USC ISI 2. Verisign Labs 1.
Peter Janssen, EURid.eu Ljubljana, RIPE 64, 2012 Peter Janssen, EURid.eu Ljubljana, RIPE 64, April
DNS Workbench Update DNS-OARC Workshop Phoenix, Arizona, USA Sat Oct 5, Jelte Jansen, Antoin Verschuren.
Basic DNS Course Lecturer: Ron Aitchison. Module 1 DNS Theory.
Tony Kombol ITIS Who knows this? Who controls this? DNS!
Domain Name Service (DNS) at Colorado State University
NAME SERVICES. Names and addresses File names /etc/passwd URLS Internet domain names—dcs.qmw.ac.uk Identifiers- ROR, NFS.
Domain Names System The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the.
Implementing DNS Module D 7: Implementing DNS
IIT Indore © Neminath Hubballi
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Domain Name System HISTORY File hosts (the size of Internet became more than 1000.
Chapter 17 Domain Name System
DNS Related Commands Sayed Ahmed Computer Engineering, BUET, Bangladesh (Graduated on 2001 ) MSc, Computer Science, U of Manitoba, Canada
© NLnet Labs, Licensed under a Creative Commons Attribution 3.0 Unported License.Creative Commons Attribution 3.0 Unported License Troubleshooting.
Domain Names Implementation and specification 陳怡良 RFC #1035.
Internet and Intranet Protocols and Applications Lecture 5 Application Protocols: DNS February 20, 2002 Joseph Conron Computer Science Department New York.
Module 2 Zone Files. Objective Understand the idea of a zone and how it relates to a domain name understand zone file structure Understand the major Resource.
1 Kyung Hee University Chapter 18 Domain Name System.
Tony Kombol ITIS DNS! overview history features architecture records name server resolver dnssec.
Configuring and Troubleshooting Domain Name System
Configuring Name Resolution and Additional Services Lesson 12.
Domain Name System (DNS). DNS Server Service Overview of Domain Name System What Is a Domain Namespace? Standards for DNS Naming.
1 Internet Network Services. 2 Module - Internet Network Services ♦ Overview This module focuses on configuring and customizing the servers on the network.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
Security in DNS(DNSSEC) Yalda Edalat Pramodh Pallapothu.
Module 8 DNS Tools & Diagnostics. Dig always available with BIND (*nix) and windows Nslookup available on windows and *nix Dig on windows – unpack zip,
© F5 Networks, Inc. 1 How Does DNS Work? A user browses to A user browses to
Publishing zone scan data using an open data portal Sebastian Castro OARC Workshop Montreal – Oct 2015.
DNS Security Extension 1. Implication of Kaminsky Attack Dramatically reduces the complexity and increases the effectiveness of DNS cache poisoning –No.
Linux Operations and Administration
DNS Security 1. Fundamental Problems of Network Security Internet was designed without security in mind –Initial design focused more on how to make it.
1 CMPT 471 Networking II DNS © Janice Regan,
Ch 6: DNSSEC and Beyond Updated DNSSEC Objectives of DNSSEC Data origin authentication – Assurance that the requested data came from the genuine.
DNS Cache Poisoning (pretending to be the authoritative zone) ns.example.co m Webserver ( ) DNS Caching Server Client I want to access
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.
WHAT IS DNS??????????.
Grades update. Homework #1 Count35 Minimum Value47.00 Maximum Value Average
KAPLAN SCHOOL OF INFORMATION SYSTEMS AND TECHNOLOGY IT375 Window Enterprise Administration Course Name – IT Introduction to Network Security Instructor.
Monitoring, analyzing and cleaning DNS configuration errors across European NRENs Slavko Gajin University of Belgrade, Serbia
AfNOG-2003 Domain Name System (DNS) Ayitey Bulley Setting up an Authoritative Name Server.
Monitoring, analyzing and cleaning DNS configuration errors across European NRENs Slavko Gajin University of Belgrade, Serbia
Using Digital Signature with DNS. DNS structure Virtually every application uses the Domain Name System (DNS). DNS database maps: –Name to IP address.
DNS Session 3: Configuration of Authoritative Nameservice Joe Abley AfNOG 2013, Lusaka, Zambia.
System Administration(SAD622S) Name of Presenter: Shadreck Chitauro Lecturer 18 July 2016 Faculty of Computing and Informatics.
DNS and Inbound Load Balancing
Domain Name System (DNS)
Geoff Huston APNIC March 2017
DNS zones and resource records
Domain Name System Tony Kombol ITIS 3110.
Module 5: Resolving Host Names by Using Domain Name System (DNS)
IMPLEMENTING NAME RESOLUTION USING DNS
Networking Applications
RPZ Configuration DNS RPZ Configuration Lecturer: Ron Aitchison
Presentation transcript:

Test cases for domain checks – a step towards a best practice Mats Dufberg,.SE Sandoche Balakrichenan, AFNIC

Zonemaster Upcoming tool for test of delegation of a domain The development of Zonemaster has several purposes – Replace tools built by Afnic (Zonecheck) and.SE (DNSCheck), respectively with a better tool. – Create a tool that should be modular and easy to update. – Create explicit requirements for correct delegation of a domain. – Create explicit requirements that can be used to verify the tool

The goals of the requirements General accepted requirements of a delegation of a domain. Requirements accepted as a best practice for a domain. Requirements for domain and tool that could be used for any tool, not only Zonemaster.

Requirements on tool and specification for domain delegation Requirements on tool: – The tool must be able to detect errors and certain behavior to make sure that we do not get false positives or false negatives. Specification for delegation of a domain: – These are everything that we require on the domain to be considered to correctly delegated.

Why this presentation? Is this right approach? Is it possible to define generally accepted requirements? Can we reach a best practice for testing the delegation of a domain? Can we reach the point where different tools test the same thing? – If two come to different conclusions, one is probably wrong? What are your thoughts? Have we missed something?

Requirements on the requirements The requirements must be SMaRT – Specific – It must be clear what the requirement is. – Measurable – It must be possible to issue a DNS query, or a set of queries, and from that determine if the requirement has been fulfilled or not. – Realistic – We cannot assume more access to the name servers than we normally have. – Time – It cannot be too time-consuming to perform the tests. In this presentation all details are, of course, not included. See for more details.

Requirements on tool The tool must be able to detect restrictions, such as hostname syntax, and configuration errors, such as CNAME collision and lame delegation. The tool must be able to differentiate between different status of an answer, such as NXDOMAIN and psuedo-status NODATA. This is work in progress. More requirements to come.

Explicit specification for the delegation of a domain The specifications fall into groups: – Basic – Delegation – Address – Connectivity – Consistency – Name server – Syntax – Zone – DNSSEC

Source of specifications The specifications are, as long as it is possible, based on documented requirements, mostly RFCs. Some specifications are based on best practice and experience of DNS operation. In all cases, the requirements are stated at the Zonemaster Github site, ( to main site).

Basic The domain must meet the following requirements, or else the rest of the requirements are meaningless: – The domain must have a parent domain – The domain must have at least one working name server

Delegation The delegation is here seen as the overlap between the delegating zone and the zone in question. – At least two NS – Each NS must resolve to a distinct address – Referral must fit 512 bytes – NS must be authoritative – NS must not point at CNAME – SOA must exist – Glue in delegation must exist in zone

Address The resolved IP addresses must meet some requirements: – Address must be globally routable – No addresses in bogon prefixes – Address should have reverse (PTR) – Reverse (PTR) should match the name

Connectivity Connectivity is fundamental. – UDP – TCP – AS and network diversity

Consistency Consistency between data from different name servers of the same domain is needed for a healthy domain. – All parameters in SOA equal between all server. – The same NS RR set in all servers.

Name server The behavior of the name servers used for the domain will be fundamental to the quality of the domain. – Must handle queries for AAAA correctly. – Must respond from the same IP as the query came to. – Should or must support EDNS0 – Should not be a recursor. – Should not allow AXFR from ”the world”.

Syntax The format of names must meet the standards. – No illegal characters in domain name (only LDH) – No hyphen in initial or final position of any label. – "xn--" is OK, but else "--" is not OK in third and forth position – Name server name must be valid – No in SOA RNAME (mail addr) – No illegal characters in SOA RNAME (mail addr) – No illegal characters in SOA MNAME (master server) – Any MX in apex must point at a valid hostname

Zone A complete analysis of the zone would require AXFR. Some parts can be tested. – Name server in SOA MNAME must be a fully qualified master server for the zone. – SOA values (refresh, retry, expire, minimum) must be sensible – SOA MNAME must not point at a CNAME – The zone should have an MX in apex (unless it is the root or a TLD) – MX must not point at a CNAME – The zone should have an A or AAAA in apex unless it has a valid MX (unless it is the root or a TLD)

DNSSEC The DNSSEC tests are of course only relevant for signed zones. – If it has a DS record in the delegation, it must be signed – Legal values for DS hash digest algorithms – DS must match DNSKEY in the zone – Not too many NSEC3 iterations – Not too short or too long RRSIG lifetime – DNSKEY algorithm must be valid – Answers must contain RRISG RR – Signed zone should have a DS in parent – RRSIG of DNSKEY and SOA must be valid – Zone must have NSEC or NSEC3

A framework Instead of focusing on the tool doing the cool testing we have here presented the requirements. If we succeed, the requirements will turn into a best practice and living outside the Zonemaster tool.

Thank you. Questions and comments?