learning_coredns.pdf

(7679 KB) Pobierz
Learning
CoreDNS
Configuring DNS for Cloud Native
Environments
John Belamaric
& Cricket Liu
Configuring DNS for
Cloud Native Environments
Learning CoreDNS
John Belamaric and Cricket Liu
Beijing
Boston Farnham Sebastopol
Tokyo
Learning CoreDNS
by John Belamaric and Cricket Liu
Copyright © 2019 John Belamaric and Cricket Liu. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional
sales department: 800-998-9938 or
corporate@oreilly.com.
Acquisitions Editor:
John Devins
Development Editor:
Melissa Potter
Production Editor:
Christopher Faucher
Copyeditor:
Octal Publishing, LLC
Proofreader:
Christina Edwards
September 2019:
First Edition
Indexer:
Ellen Troutman-Zaig
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
Revision History for the First Edition
2019-08-30:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781492047964
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Learning CoreDNS,
the cover image,
and related trade dress are trademarksvof O’Reilly Media, Inc.
The views expressed in this work are those of the authors, and do not represent the publisher’s views.
While the publisher and the authors have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-492-04796-4
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1.
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What Is CoreDNS?
CoreDNS, Containers, and Microservices
CoreDNS Limitations
CoreDNS, Kubernetes, and the Cloud Native Computing Foundation
What Is the Domain Name System?
Domain Names and the Namespace
Domains, Delegation, and Zones
Resource Records
DNS Servers and Authority
Resolvers
Resolution and Recursion
Caching
Resource Records
NAME
TTL
CLASS
Resource Record Types
The A Record
The AAAA Record
The CNAME Record
The MX Record
The NS Record
1
2
3
4
2.
A DNS Refresher. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5
6
7
9
10
11
12
15
15
16
16
17
17
17
18
18
19
20
iii
Zgłoś jeśli naruszono regulamin