DNS and Inbound Load Balancing

Slides:



Advertisements
Similar presentations
Daves DNS Show Read at your own risk. Domain Name Service Maps IP addresses to more human readable domain names Every domain name ultimately resolves.
Advertisements

Domain Name System (DNS) Adapted from a presentation by Ayitey Bulley DNS Fundamentals.
Web Server Administration
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.
Web Server Administration Chapter 4 Name Resolution.
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
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.
20101 The Application Layer Domain Name System Chapter 7.
Hands-On Microsoft Windows Server 2003 Networking Chapter 6 Domain Name System.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
Reverse DNS. Overview Principles Creating reverse zones Setting up nameservers Reverse delegation procedures.
Domain Name Services Oakton Community College CIS 238.
Configuring and Managing the DNS Server Role Lesson 4.
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
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
DNS Related Commands Sayed Ahmed Computer Engineering, BUET, Bangladesh (Graduated on 2001 ) MSc, Computer Science, U of Manitoba, Canada
DNS & SPAM SHAREPOINT 2010 IT:NETWORK:APPLICATIONS.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
CITA 310 Section 1 Name Resolution (Textbook Chapter 4)
Deploying a Web Application Presented By: Muhammad Naveed Date:
Chapter 16 – The Domain Name System (DNS) Presented by Shari Holstege Tuesday, June 18, 2002.
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.
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.
Linux Operations and Administration
4343 X2 – Outline The Domain Name System The Web.
AfNOG-2003 Domain Name System (DNS) Ayitey Bulley
Web Server Administration Chapter 4 Name Resolution.
1 CMPT 471 Networking II DNS © Janice Regan,
2/26/2003 Lecture 4 Computer System Administration Lecture 4 Networking Startup/DNS.
Domain Name System (DNS) Joe Abley AfNOG Workshop, AIS 2014, Djibouti Session-1: Fundamentals.
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 INTRODUCTION to Eng. Yasser Al-eimad
WHAT IS DNS??????????.
4343 X2 – The Application Layer Tanenbaum Chapter 7.
Configuring and Managing the DNS Server Role Lesson 4.
Google Developer Console: How to Configure DNS on Google Cloud To learn more visit
AfNOG-2003 Domain Name System (DNS) Ayitey Bulley Setting up an Authoritative Name Server.
Chapter 5c.  Upon completion of this chapter, you should be able to:  Configure IP addresses  Identify & select valid IP addresses for networks  Configure.
1 Internet Service DNS & BIND OPS335 Seneca College of Applied Technology.
Domain Name System (DNS) Ayitey Bulley extended by Phil Regnauld DNS Fundamentals AfNOG 2006.
DNS Domain name server a server to translate IP aliases to addresses
Ip addressing: dhcp & dns
Understand Names Resolution
Domain Name System (DNS)
Domain Name System (DNS)
Networking Applications
Session-1: Fundamentals
CS2911 Week 4, Class 3 Today Next Class: DNS – Domain Name Service
Everything You need to know
Chapter 9: Domain Name Servers
OSINT: DNS Module Type: Basic Method Module Number: 0x06
Module 5: Resolving Host Names by Using Domain Name System (DNS)
Domain Name System (DNS)
IMPLEMENTING NAME RESOLUTION USING DNS
Configuring and Troubleshooting DNS
LINUX ADMINISTRATION 1
Configuring and Managing the DNS Server Role
Internet Applications
Domain Name System (DNS)
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Ip addressing: dhcp & dns
DNS : Domain Name System
INTERNET APPLICATIONS
Chapter-2-NameServices
CS2911 Week 5, Class 3 Today Next Class: DNS – Domain Name Service
Presentation transcript:

DNS and Inbound Load Balancing

Understanding DNS The Domain Name System (DNS) is a hierarchical distributed naming system Mainly for querying a human readable domain name into IP addresses

DNS Tree . .com peplink www forum google mail org wikipedia .edu Root Top-level Domain Second-level Domain Third-level Domain

Type of DNS server Authoritative DNS DNS Forwarder Authoritative DNS will only answer the DNS queries of domain name which configured in this DNS. Bind (a UNIX based DNS Server), Microsoft DNS Server, Peplink DNS Server DNS Forwarder Find any DNS caching locally (optional) Forward the DNS queries to another DNS servers PC/MAC/Linux, Peplink LAN DNS, ISP’s DNS server

When will DNS query happen? Open the URL via a web browser, it needs to resolve the domain name to IP address before connecting to web server Email agent connects to mail server Type “nslookup” a domain name in command line of Windows/Mac/Linux

DNS Query Flow PC: Query www.foobar.com Any DNS caching locally? Query DNS via Peplink Peplink LAN DNS Any Local DNS Records? Query via ISP DNS ISP DNS Query via Authoritative DNS Authoritative DNS Give the result

Type of DNS Records Type Description Fuction A Address record Link the domain or subdomain to IPv4 address NS Name server record Delegates a DNS zone to use the given authoritative name servers MX mail exchange record Directs email to servers for a domain with the order of priority CNAME Canonical name records Aliases for A records TXT Text record Uses for SPF, Domain Key etc SOA Start of [a zone of] authority record Specifies authoritative information about a DNS zone

Domain Registrar The companies who sell the second-level / third-level domain name (eg: yourdomain.com / yourdomain.co.uk) It requires to setup at least two name servers (NS) which is used to pointing the zone to the authoritative DNS servers Update the NS records in Domain Registrar will take up to 72 hours due to most other DNS in internet choose to periodically check for updates and not realtime

Requirement of Authoritative DNS At least Two Authoritative DNS servers with fixed IP At least two NS records and two A records in the settings of DNS servers

Requirement of Authoritative DNS For example: “foobar.com” The DNS servers IP are 210.10.10.3 and 22.2.2.2 foobar.com. NS ns1.foobar.com. foobar.com. NS ns2.foobar.com. ns1 A 210.10.10.3 ns2 A 22.2.2.2 Without trailing dot will add the DNS zone “foobar.com” as suffix ns1 = ns1.foobar.com. ns1.foobar.com = ns1.foobar.com.foobar.com This applies to all DNS server software including Peplink

Using Peplink as Authoritative DNS Enable the DNS Server Define “Default SOA/NS” Create the domain name “foobar.com”

Using Peplink as Authoritative DNS Using “Default SOA and NS Records”, Peplink will automatically fill in the NS and A records

Using Peplink as Authoritative DNS Create A record “www” for “foobar.com” Includes the IP address on different WAN links

Troubleshooting Verify the NS records are setup correctly in Domain Registrar Perform “nslookup –q=ns foobar.com” $ nslookup –q=ns foobar.com Non-authoritative answer: foobar.com nameserver = ns1.foobar.com. foobar.com nameserver = ns2.foobar.com.

IP of Authoritative DNS (Peplink DNS’s IP) Troubleshooting Verify the NS and A are setup correctly in Peplink “nslookup –q=ns foobar.com 210.10.10.3” “nslookup –q=a ns1.foobar.com 210.10.10.3” “nslookup –q=a ns2.foobar.com 210.10.10.3” IP of Authoritative DNS (Peplink DNS’s IP) $ nslookup –q=ns foobar.com 210.10.10.3 foobar.com nameserver = ns1.foobar.com. foobar.com nameserver = ns2.foobar.com. $ nslookup –q=a ns1.foobar.com 210.10.10.3 Name: ns1.foobar.com Address: 210.10.10.3 $ nslookup –q=a ns2.foobar.com 210.10.10.3 Name: ns2.foobar.com Address: 22.2.2.2

Troubleshooting Verify the Peplink Authoritative DNS returns correct result for www.foobar.com “nslookup –q=a www.foobar.com 210.10.10.3 $ nslookup –q=a www.foobar.com 210.10.10.3 Name: www.foobar.com Address: 210.10.10.10 Address: 22.2.2.2 Address: 33.3.3.2

Delegate the subdomain to Peplink Customers have their own authoritative DNS and they want to keep it. In existing authoritative DNS of “foobar.com” ; zone for ‘foobar.com’ balance NS wan1 balance NS wan2 wan1 A 210.10.10.3 wan2 A 22.22.2.2

Delegate the subdomain to Peplink In Peplink Add the domain “balance.foobar.com” Add the A record “www”

Delegate the subdomain to Peplink In the Authoritative DNS Create a CNAME as below “www.foobar.com” aliases to “www.balance.foobar.com” ; zone for ‘foobar.com’ www CNAME www.balance

Delegate the subdomain to Peplink Nslookup result below $ nslookup www.foobar.com Non-authoritative answer: www.foobar.com canonical name = www.balance.foobar.com. Name: www.balance.foobar.com Address: 210.10.10.10 Address: 22.2.2.2 Address: 33.3.3.2

Reverse DNS Lookup Resolve the IP address to a domain name Using PTR DNS record to perform reverse lookup Reverse DNS lookup will be performed within a special domain “in-addr.arpa” 210.10.10.3 > 3.10.10.210.in-addr.arpa “arpa” is another top-level domain In most cases, your ISP will manage PTR record for you

Reverse DNS Lookup If your ISP delegate the right to you to manage the PTR You can create the Reverse lookup zone in Peplink For example, you have authorized to manage the PTR of 210.10.10.0/24

Reverse DNS Lookup Nslookup a IP address is same as using the syntax “-q=ptr” “Nslookup 210.10.10.2” will be equal to resolve the PTR record of “2.10.10.210.in-addr.arpa” $ nslookup 210.10.10.2 2.10.10.210.in-addr.arpa name = firewall.foobar.com. $ nslookup -q=ptr 2.10.10.210.in-addr.arpa

Appendix Useful syntax of nslookup Syntax Description Nslookup –q=ns Query NS records Nslookup –q=a Query A records Nslookup –q=mx Query MX records Nslookup –q=cname Query CNAME Nslookup –q=txt Query TXT records