So You Inherited a DNS Server…

Slides:



Advertisements
Similar presentations
Sergei Komarov. DNS  Mechanism for IP hostname resolution  Globally distributed database  Hierarchical structure  Comprised of three components.
Advertisements

1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
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.
Zone transfer and dns-express
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.
Vulnerability Analysis Borrowed from the CLICS group.
BIND-8 to BIND-9 Migration A short tutorial APNIC Meeting, Brisbane, October 2000 Mathias Körber Nominum, Inc. © Copyright.
Hands-On Microsoft Windows Server 2003 Networking Chapter 6 Domain Name System.
The Domain Name System Unix System Administration Download PowerPoint Presentation.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
Peter Janssen, EURid.eu Ljubljana, RIPE 64, 2012 Peter Janssen, EURid.eu Ljubljana, RIPE 64, April
Module 3 DNS Types.
Advanced Module 3 Stealth Configurations.
Configuring DNS.
Troubleshooting. Why Troubleshoot? What Can Go Wrong? –Misconfigured zone –Misconfigured server –Misconfigured host –Misconfigured network.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 7: Domain Name System.
© NLnet Labs, Licensed under a Creative Commons Attribution 3.0 Unported License.Creative Commons Attribution 3.0 Unported License Troubleshooting.
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
Module 5 BIND Configuration. named.conf – controls operational features Located - Linux: /etc/named.conf /etc/bind/named.conf Located- BSD: /usr/local/etc/named.conf.
Module 8 DNS Tools & Diagnostics. Objectives Understand dig and nslookup Understand BIND toolset Understand BIND logs Understand wire level messages.
Secured Dynamic Updates. Caution Portions of this slide set present features that do not appear in BIND until BIND 9.3 –Snapshot code is available for.
What’s New in Fireware v11.9.5
Krit Witwiyaruj Thai Name Server Co., Ltd.th DNSSEC Implementation.
Olaf M. Kolkman. Apricot 2005, February 2005, Kyoto. DNSSEC An Update Olaf M. Kolkman
Domain Name System (DNS) Joe Abley AfNOG Workshop, AIS 2014, Djibouti Session 2: Resolver Operation and debugging.
* Agenda  What is the DNS ?  Poisoning the cache  Short term solution  Long term solution.
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
CIS 192B – Lesson 2 Domain Name System. CIS 192B – Lesson 2 Types of Services Infrastructure –DHCP, DNS, NIS, AD, TIME Intranet –SSH, NFS, SAMBA Internet.
Linux Operations and Administration
Sample DNS configurations. Example 1: Master 'master' DNS and is authoritative for this zone for example.com provides 'caching' services for all other.
Linux Operations and Administration
1 CMPT 471 Networking II DNS © Janice Regan,
Module 4 DNS Installation. DNS Software BIND (80+ %) Berkeley Internet Name Domain NSD (Name Server Daemon)
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.
FlowLevel Client, server & elements monitoring and controlling system Message Include End Dial Start.
DNS Cache Poisoning (pretending to be the authoritative zone) ns.example.co m Webserver ( ) DNS Caching Server Client I want to access
Troubleshooting. Why Troubleshoot? What Can Go Wrong? –Misconfigured zone –Misconfigured server –Misconfigured host –Misconfigured network.
AfNOG-2003 Domain Name System (DNS) Ayitey Bulley Setting up an Authoritative Name Server.
BIND 10 DNS Project Status + DNS Resolver Status/Plans Shane Kerr 23 January 2013.
DNS Domain name server a server to translate IP aliases to addresses
UC Pro Troubleshooting Guide
Security Issues with Domain Name Systems
Monitoring Windows Server 2012
Delegated RPKI / ARIN Command Line
Geoff Huston APNIC March 2017
Created by : Ashish Shah, J.M.Patel College, Goregoan West
Module 5: Resolving Host Names by Using Domain Name System (DNS)
Department of Computer Science
Database backed DNS.
Configuring and Troubleshooting DNS
LINUX ADMINISTRATION 1
BIND Part 2 pschiu.
LINUX ADMINISTRATION 1
Geoff Huston APNIC Labs September 2017
DNS Session 5 Additional Topics
Unit 5: Providing Network Services
DNS and Bind Presenter David Wood
Environment Manager Troubleshooting and Debugging
NIC Chile Secondary DNS Service History and Evolution
Lame DNS Server Sweeping
Phil Regnauld ccTLD workshop November Amman, Jordan
RPZ Configuration DNS RPZ Configuration Lecturer: Ron Aitchison
DNS RPZ Intro RPZ Overview Lecturer: Ron Aitchison
“DNS Flag day” A tale of five ccTLDs Hugo Salgado, .CL
Applications Layer Functionality & Protocols
Monitoring with logging
Trust Anchor Signals from Custom Applications
Neda Kianpour - Lead Network Engineer - Salesforce
Presentation transcript:

So You Inherited a DNS Server… DNS Best Practices from Day One

How did the DNS find you? Because I knew *nix No one else would It just sort of happened… voluntold

The Question What would you do if dropped into an existing organization to run their DNS?

First action, Recon! Actually, first action is freak out! 2nd action is caffeine, then deep breath and recon: Any network or infrastructure diagrams available?

diagrams

Pick a nameserver, login! Running a current version of dns software? OS? How is dns service started on this box? Does this match the version currently running? Is there a nanny script in use?

named -V % named -V BIND 9.8.4-P2 built with '--prefix=/usr' '-- infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable- threads' '--enable-getifaddrs' '--disable-linux-caps' '--with- openssl=/usr' '--with-randomdev=/dev/random' '--without- idn' '--without-libxml2' using OpenSSL version: OpenSSL 0.9.8zd-freebsd 8 Jan 2015

On to configuration Do the global options make sense? Basic security check: TSIG secured zone transfers? allow-transfer? allow-query (is this an open resolver?)

Global options options {
 directory "/etc/namedb/";
 dnssec-enable yes;
 dnssec- validation yes;
 allow-recursion { none; };
 allow-query { any; };
 allow-transfer { none; };
 notify no;
 key-directory "/etc/namedb/keys";
 max-journal-size 32k;
 zone-statistics yes;
 listen-on { 192.168.53.251; };
 listen-on-v6 { 2001:db8:100::251; };
 notify-source 192.168.53.251;
 notify-source-v6 2001:db8:100::251;
};

zone stanzas zone "example.com" IN {
 file "example.com-zone";
 type slave;
 masters { 192.168.53.4; 192.168.53.8; };
 notify no;
};

logging Is the logging stanza sane and actually occurring? Check the config as well as the actual logs. Have a look at the system logs

logging stanza logging {
 channel query_log {
 file "logs/query.log" versions 5 size 1M;
 severity info;
 print-time yes;
 };
 category queries { query_log; };
};

checkconf is your friend $ named-checkconf –z zone ./IN: loaded serial 121 (DNSSEC signed) zone test.dnslab.org/IN: loaded serial 50 (DNSSEC signed)

rndc Is rndc configured? If not, ‘rndc-confgen –a’ rndc status rndc notify zone rndc retransfer zone

Recon Repeat Repeat the prior Recon for all known nameservers! If diagrams were available, check to see if configs match stated functionality.

Some fun things you ought to know…

DNS personality disorders Clients are often happy even when servers aren’t configured well. A bit passive-aggressive… things are acceptable until they’re not. OCD, clients and resolvers are content to retry and retry and retry...

RFCs https://www.isc.org/community/rfcs/dns/

Back to your new predicament…

Authoritative specific Use external tools to check service: DNSViz dnscheck.iis.se ednscomp.isc.org (firewall check)

Recursive specific Perform queries against these servers via dig dig @192.168.53.53 www.example.com. Are they answering appropriately? Are they refusing appropriately?

Actions for Day 2 and beyond Meet with the following teams: Provisioning: how fast for new servers? Operations: how’s life? Security: about those firewalls… Monitoring: alerting on?, peak traffic? Architecture: future plans? Management: support?

Interconnectedness Join some lists: Get your boss to send you to DNS-OARC meeting(s) Join some lists: dns-operations (DNS OARC) nanog etc

Questions ?

www.isc.org info@isc.org Thank You! www.isc.org info@isc.org