• No results found

DNS and BIND. David White

N/A
N/A
Protected

Academic year: 2021

Share "DNS and BIND. David White"

Copied!
27
0
0

Loading.... (view fulltext now)

Full text

(1)

DNS and BIND

(2)

DNS:

Backbone of the Internet

• Translates Domains into unique IP Addresses

– i.e. “developcents.com” = “66.228.59.103”

• Distributed Database of Host Information

(3)

So what is a “Domain”?

• RFC 920: Domains are Administrative entities

• A unique name

(4)

• Hierarchical, Tree-like structure

• Made up of individual Nodes

(5)

DNS:

Series of Delegated Information

A Silly Example…

(6)

checkers.boardgames.games.fun.com

. (root)

.com .fun

(7)

Domain Namespace: Another

Picture

root (.) com google developcents server1 server2 edu taylor

(8)

Components of DNS

• Domain Name Space

• Name Servers (Authoritative Name Servers)

(9)

DNS Zones

• A portion of a Domain Namespace defined by Zone Files (which contain Zone Records)

• Portion of a Domain Namespace that has been administratively delegated

• … Therefore, this information comes from an

authoritative source (Master Name Server)

(10)

Components of Zone Files

• TTL (Time to Live)

– Tells caching nameservers how long

they should cache information from an authoritative source

• The domain administrator’s contact information

(11)

Common DNS Records

(Resource Records)

• SOA Record (Start of Authority)

– Indicates that the nameserver is the best source of info for data within a domain’s zone

• A Record (Address)

– Directly maps a name to an IP address

• MX Record (Mail Exchanger)

(12)

Common DNS Records

(Resource Records)

• NS Records (nameserver)

– Required

– Identify which servers are a particular zone’s nameservers

(13)

Glue Records: What and Why?

• Solve a circular dependency problem:

– The TLD delegates DNS requests for “example.com” to the particular

authoritative name servers for example.com.

– But this DNS information is contained within example.com’s nameservers.

(14)

Glue Records: How?

• Add IP addresses to your nameservers in your Domain Registrar

• THEN… add NS records AND A records for your authoritative nameservers:

INNS ns1.example.com. INNS ns2.example.com. ns1 INA 1.2.3.4

(15)

Anti-Spam Mechanisms

• SPF Records

– Identifies which IP addresses are allowed to send an email from a certain domain.

• DKIM Records

– Uses encryption keys to determine if a sending mail server is who it says it is.

• DMARC

(16)

Introduction to BIND

Berkeley Internet Name Domain

• Originally developed at University of California Berkeley

• Maintained and supported by ISC (Internet Systems Consortium)

(17)

Intro to BIND (con’t)

• Most widely used Domain Name Server Software

• Ported to most flavors of UNIX (including Ubuntu, RHEL, and CentOS)

(18)

Configuring BIND (for

CentOS)

First, install BIND with: “Yum install bind” Main config file: /etc/named.conf

Zone file(s) for Master: /var/named/ Zone file(s) for Slave (Caching):

(19)

BIND’s named.conf for

Master Name Server

Options {

listen-on port53 { any; };

allow-transfer { 2.3.4.5; }; recursion no;

(20)

BIND’s named.conf for

Master Name Server

zone “example.com” IN {

type master;

(21)

BIND’s named.conf for

Slave (Caching) Name Server

Options {

(22)

BIND’s named.conf for

Slave (Caching) Name Server

zone “example.com” IN { type slave;

file “path-to-zone-file-location”; masters { 1.2.3.4; };

(23)

A Couple Security

Considerations

An Open Resolver is a BAD IDEA

DNS Security Extensions (DNSSEC)

• Digitally signs DNS data so that you are assured its valid. It’s a digital signature, • No encryption or decryption takes place • Must be deployed at each step of the

(24)

Recommended

Resources

• BIND Homepage

https://www.isc.org/software/bind

• O’Reilly’s DNS and BIND

• RFCs 920, 1034, 1035, 2308

& their updates - http://tools.ietf.org/html/

• Wikipedia’s List of DNS Record Types:

(25)

Recommended

Resources (con’t)

• Website (Intro to DNS): “How does DNS work?”

http://cr.yp.to/djbdns/intro-dns.html

• Pingdom’s DNS Check Tool:

http://dnscheck.pingdom.com/

• MX Toolbox (for testing MX and DNS configuration):

(26)

Recommended

Resources (con’t)

• DNSSEC – What Is It and Why Is It Important?

(27)

The End

This presentation was prepared and presented by David White, Founder & CEO of Develop CENTS, LLC. IT Consulting, Technical Support, Hosting & More for Nonprofits.

References

Related documents

If, however, the domain is remote and no information about the requested domain is available locally, the name server sends a query message to the top-level name server for the

Arriving all our cap firing guns please make a fireworks adapter so we carry a metal folding stock a desert eagle x model comes with different finishes available.. Airsoft and

Zone refers to all the resource records in a domain but not its sub domains, the com.au zone contains delegations records for ausregistry.com.au, but not the resource records

The Domain Name System The DNS Database DNS Protocols DNS Message Formats DNS Limits Zone Transfer Mapping Addresses to Names.

Some Query Type Field Values everything 255 ANY Mail Exchanger 15 MX Host Info 13 HINFO Pointer 12 PTR Canonical Name 5 CNAME Name Server 2 NS IP Address 1 A Answer Format. 

When delegating zones within your namespace, be aware that for each new zone you create, you will need delegation records in other zones that point to the authoritative DNS

Research, develop and commercialize a cryptographic key management capability scaled to secure communications for the millions of smart meters within the Smart Grid Advanced

With the V5R1 DNS server based on BIND 8, you can configure your DNS zone to accept dynamic updates to DNS records in conjunction with intermittent address changes through DHCP..