SlideShare una empresa de Scribd logo
1 de 42
Descargar para leer sin conexión
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lee Zen, AWS Edge Services
October 2015
NET308
Consolidating DNS Data in the Cloud
with Amazon Route 53
Agenda
• Why should I do this? Why is now the right time?
• Cost
• Simplicity
• Single view
• API management
• Basic DNS use cases
• Advanced private DNS
example.com
Third-party monitoring
System monitoring
Internal DNS
Public DNS
Route 53 public zones
Route 53 private zones
Route 53 health checks
example.com
Basic DNS use cases
Bulk transfer domains
1. Export DNS to Route 53
2. Delegate to Route 53
3. Transfer domains to Route 53
Order matters for availability!
Export DNS
Highly dependent on your existing DNS provider.
Two examples:
• GoDaddy
• “DNS Zone File” tab with an “Export (UNIX)” format
• BIND
• Typically in /var/named/chroot/var/named
• Use cli53 to import
• https://github.com/barnybug/cli53
Export DNS
# assuming we have files in the format
[domain].zone, we can do this:
#!/bin/sh
for zonefile in *.zone; do
domain=$(basename "$zonefile" .zone)
cli53 create ${domain} --comment 'bulk'
cli53 import ${domain} --file ${zonefile}
done
Delegate to Route 53
• This step is registrar dependent.
• Namecheap example:
• https://api.namecheap.com/xml.response?
ApiUser=<example>&
ApiKey=<key>&
UserName=<user>&
Command=namecheap.domains.dns.setCustom&
ClientIp=192.168.1.109&
SLD=domain&
TLD=com&
NameServers= ns-425.awsdns-53.com,ns-793.awsdns-
35.net,ns-1049.awsdns-03.org,ns-1692.awsdns-19.co.uk
Delegate to Route 53
• Check that you’re actually delegated (dig +trace)
$ dig +trace awsarchitectureblog.com
…
. 505108 IN NS k.root-servers.net.
…
com. 172800 IN NS
…
awsarchitectureblog.com. 172800 IN NS ns-425.awsdns-53.com.
awsarchitectureblog.com.172800 IN NS ns-793.awsdns-35.net.
awsarchitectureblog.com. 172800 IN NS ns-1049.awsdns-03.org.
awsarchitectureblog.com. 172800 IN NS ns-1692.awsdns-19.co.uk.
• Wait for TTLs to expire
Transfer domains
• Also registrar dependent, but you will want to unlock your domains and
obtain authorization codes.
• Namecheap example:
• Unlock:
https://api.namecheap.com/xml.response?
ApiUser=<example>&
ApiKey=<key>&
UserName=<user>&
Command=namecheap.domains.setRegistrarLock&
ClientIp=192.168.1.109&
DomainName=example.com&
LockAction=unlock
• Obtain authorization codes (depends on the registrar; GoDaddy has a
bulk download option)
Transfer domains
#/usr/bin/ruby
require 'csv'
require 'aws-sdk-core'
route53domains =
Aws::Route53Domains::Client.new(region: 'us-east-1')
CSV.foreach("authcodes.csv") do |row|
route53domains.transfer_domain(...
end
Third-party monitoring
System monitoring
Internal DNS
Route 53 public zones
example.com
Take advantage of AWS integration
• ALIAS
• Health checks and DNS failover
• Calculated health checks
• Latency measurements
Internal DNS
Route 53 public zones
Route 53 health checks
example.com
Set up private DNS
$ cli53 import
example.integ --file
example.integ.zone
Route 53 public zones
Route 53 private zones
Route 53 health checks
example.com
Advanced private DNS
Using in-VPC resolver
• What we can’t do with the gateway+2 (e.g. 10.0.0.2)
• Private DNS combines the resolver and authority – this
means you can’t treat it as an authoritative server
• Delegation back via NS records doesn’t work
On-premises to cloud
Resolver
Route 53
Authority
+2 Resolver
Q
1
2
34
5
6
On-premises to cloud
Resolver
Route 53
Authority
+2 Resolver
Q
1
2
45
7
8
Forwarder
3
6
Setup unbound as the forwarder
$ sudo apt-get install unbound
/etc/unbound/unbound.conf:
server:
...
interface: 0.0.0.0
interface: ::0
access-control: 0.0.0.0/0 allow
...
$ sudo unbound-control reload
Setup unbound as the forwarder
forward-zone:
name: "."
forward-addr: 10.0.0.2
AWS Directory Service as the forwarder
• Fully managed on your behalf
• If you want to utilize Active Directory in your VPC, you
also get to take advantage of that as well
Set up Active Directory
Set up Active Directory
Example
$ cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search ad.cloud.zen
nameserver 10.0.1.114
nameserver 10.0.2.135
Example
Example
$ dig TXT example.cloud.zen
;; QUESTION SECTION:
;example.cloud.zen. IN TXT
;; ANSWER SECTION:
example.cloud.zen. 60 IN TXT "hello world"
;; Query time: 4 msec
;; SERVER: 10.0.1.114#53(10.0.1.114)
Active Directory and Route 53 Private DNS
• Manage all non-AD names in Private DNS (because it
will fall through)
• API endpoint in Route 53
• Zones can cross regions with private DNS
Resolver
Route 53
Authority
+2 Resolver
Q
1
2
45
7
8
Forwarder
3
6
BIND configuration
options {
...
forwarders { 10.0.1.114; 10.0.2.135; };
forward only; # depending on your configuration
};
zone ”cloud.zen" {
type forward;
forwarders { 10.0.1.114; 10.0.2.135; };
};
Unbound configuration
forward-zone:
name: "."
forward-addr: 10.0.1.114
forward-addr: 10.0.2.135
forward-zone:
name: ”cloud.zen"
forward-addr: 10.0.1.114
forward-addr: 10.0.0.135
Flatten your zones instead of subdelegating
Resolver
cloud.zen
+2 Resolver
Q
Forwarder
sub.cloud.zen
Flatten your zones instead of subdelegating
Resolver
cloud.zen
+2 Resolver
Q
Forwarder
sub.cloud.zen
On-premises contains data not in private DNS
• Loop the query through on-premises
• Copy the data into private DNS
• Setup conditional forwarding in Active Directory
Queries from on-premises will see the data
Resolver
Route 53
Authority
+2 Resolver
Q
1
2
45
7
8
Forwarder
3
6
Loop the query through on-premises for VPC
Resolver
Route 53
Authority
+2 Resolver
Q
1
2
45
7
8
Forwarder
3
6
Copy the data into private DNS
https://code.google.com/p/route53d/
• or cli53 or
[hostedzone]
#
# Enumerate the zone IDs for each hosted zone, e.g.:
# [hostedzone]
# foo.com = Z123
# baz.org = Z456
Copy the data into private DNS
Resolver
Route 53
Authority
+2 Resolver
Q
1
23
Forwarder
4
Summary
• Consolidating your DNS infrastructure in the cloud is
easy and simplifies management
• There are a number of ways to combine private DNS
with an on-premises or existing DNS solution
• We’re aware of the limitations of the gateway+2 and are
working toward resolving those limitations
Remember to complete
your evaluations!
Thank you!

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
 
Another Day, Another Billion Packets
Another Day, Another Billion PacketsAnother Day, Another Billion Packets
Another Day, Another Billion Packets
 
EDNS0 Client-Subnet for DNS Based CDNs
EDNS0 Client-Subnet for DNS Based CDNs EDNS0 Client-Subnet for DNS Based CDNs
EDNS0 Client-Subnet for DNS Based CDNs
 
(NET301) New Capabilities for Amazon Virtual Private Cloud
(NET301) New Capabilities for Amazon Virtual Private Cloud(NET301) New Capabilities for Amazon Virtual Private Cloud
(NET301) New Capabilities for Amazon Virtual Private Cloud
 
Speeding up delivery of web content using Amazon Route 53, Elastic Load Balan...
Speeding up delivery of web content using Amazon Route 53, Elastic Load Balan...Speeding up delivery of web content using Amazon Route 53, Elastic Load Balan...
Speeding up delivery of web content using Amazon Route 53, Elastic Load Balan...
 
NGINX Plus on AWS
NGINX Plus on AWSNGINX Plus on AWS
NGINX Plus on AWS
 
AWS re:Invent 2016: Another Day, Another Billion Packets (NET401)
AWS re:Invent 2016: Another Day, Another Billion Packets (NET401)AWS re:Invent 2016: Another Day, Another Billion Packets (NET401)
AWS re:Invent 2016: Another Day, Another Billion Packets (NET401)
 
Caching the Uncacheable [Long Version]
Caching the Uncacheable [Long Version]Caching the Uncacheable [Long Version]
Caching the Uncacheable [Long Version]
 
Apache Knox setup and hive and hdfs Access using KNOX
Apache Knox setup and hive and hdfs Access using KNOXApache Knox setup and hive and hdfs Access using KNOX
Apache Knox setup and hive and hdfs Access using KNOX
 
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
 
Advanced Task Scheduling with Amazon ECS
Advanced Task Scheduling with Amazon ECSAdvanced Task Scheduling with Amazon ECS
Advanced Task Scheduling with Amazon ECS
 
Deep Dive on Amazon EC2 Instances (March 2017)
Deep Dive on Amazon EC2 Instances (March 2017)Deep Dive on Amazon EC2 Instances (March 2017)
Deep Dive on Amazon EC2 Instances (March 2017)
 
NET201_Creating Your Virtual Data Center
NET201_Creating Your Virtual Data CenterNET201_Creating Your Virtual Data Center
NET201_Creating Your Virtual Data Center
 
HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011
 
DAT302_Deep Dive on Amazon Relational Database Service (RDS)
DAT302_Deep Dive on Amazon Relational Database Service (RDS)DAT302_Deep Dive on Amazon Relational Database Service (RDS)
DAT302_Deep Dive on Amazon Relational Database Service (RDS)
 
NET302_Global Traffic Management with Amazon Route 53
NET302_Global Traffic Management with Amazon Route 53NET302_Global Traffic Management with Amazon Route 53
NET302_Global Traffic Management with Amazon Route 53
 
Deep Dive into AWS Fargate - CON333 - re:Invent 2017
Deep Dive into AWS Fargate - CON333 - re:Invent 2017Deep Dive into AWS Fargate - CON333 - re:Invent 2017
Deep Dive into AWS Fargate - CON333 - re:Invent 2017
 
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
 
Build your own CDN with Varnish - Confoo 2022
Build your own CDN with Varnish - Confoo 2022Build your own CDN with Varnish - Confoo 2022
Build your own CDN with Varnish - Confoo 2022
 
Comenzando com la nube hibrida
Comenzando com la nube hibrida Comenzando com la nube hibrida
Comenzando com la nube hibrida
 

Destacado

AWS April Webianr Series - How Willbros Builds Securely in AWS with Trend Micro
AWS April Webianr Series - How Willbros Builds Securely in AWS with Trend MicroAWS April Webianr Series - How Willbros Builds Securely in AWS with Trend Micro
AWS April Webianr Series - How Willbros Builds Securely in AWS with Trend Micro
Amazon Web Services
 

Destacado (20)

(SDD408) Amazon Route 53 Deep Dive: Delivering Resiliency, Minimizing Latency...
(SDD408) Amazon Route 53 Deep Dive: Delivering Resiliency, Minimizing Latency...(SDD408) Amazon Route 53 Deep Dive: Delivering Resiliency, Minimizing Latency...
(SDD408) Amazon Route 53 Deep Dive: Delivering Resiliency, Minimizing Latency...
 
Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...
Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...
Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...
 
Amazon Route 53 - Webinar Presentation 9.16.2015
Amazon Route 53 - Webinar Presentation 9.16.2015Amazon Route 53 - Webinar Presentation 9.16.2015
Amazon Route 53 - Webinar Presentation 9.16.2015
 
(NET403) Another Day, Another Billion Packets
(NET403) Another Day, Another Billion Packets(NET403) Another Day, Another Billion Packets
(NET403) Another Day, Another Billion Packets
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet Count
 
AWS April Webianr Series - How Willbros Builds Securely in AWS with Trend Micro
AWS April Webianr Series - How Willbros Builds Securely in AWS with Trend MicroAWS April Webianr Series - How Willbros Builds Securely in AWS with Trend Micro
AWS April Webianr Series - How Willbros Builds Securely in AWS with Trend Micro
 
Route 53 Latency Based Routing
Route 53 Latency Based RoutingRoute 53 Latency Based Routing
Route 53 Latency Based Routing
 
Container Patterns
Container PatternsContainer Patterns
Container Patterns
 
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013
 
A Day in the Life of a Billion Packets (CPN401) | AWS re:Invent 2013
A Day in the Life of a Billion Packets (CPN401) | AWS re:Invent 2013A Day in the Life of a Billion Packets (CPN401) | AWS re:Invent 2013
A Day in the Life of a Billion Packets (CPN401) | AWS re:Invent 2013
 
(ARC307) Infrastructure as Code | AWS re:Invent 2014
(ARC307) Infrastructure as Code | AWS re:Invent 2014(ARC307) Infrastructure as Code | AWS re:Invent 2014
(ARC307) Infrastructure as Code | AWS re:Invent 2014
 
An introduction to AWS Direct Connect
An introduction to AWS Direct ConnectAn introduction to AWS Direct Connect
An introduction to AWS Direct Connect
 
Unique Ways Veritas can Supercharge your AWS Investment - Session Sponsored b...
Unique Ways Veritas can Supercharge your AWS Investment - Session Sponsored b...Unique Ways Veritas can Supercharge your AWS Investment - Session Sponsored b...
Unique Ways Veritas can Supercharge your AWS Investment - Session Sponsored b...
 
AWS re:Invent 2016: Hybrid Architectures: Bridging the Gap to the Cloud( ARC2...
AWS re:Invent 2016: Hybrid Architectures: Bridging the Gap to the Cloud( ARC2...AWS re:Invent 2016: Hybrid Architectures: Bridging the Gap to the Cloud( ARC2...
AWS re:Invent 2016: Hybrid Architectures: Bridging the Gap to the Cloud( ARC2...
 
Business Continuity & Disaster Recovery with Microsoft Azure
Business Continuity & Disaster Recovery with Microsoft AzureBusiness Continuity & Disaster Recovery with Microsoft Azure
Business Continuity & Disaster Recovery with Microsoft Azure
 
Establishing a Scalable, Resilient Web Architecture | AWS Public Sector Summi...
Establishing a Scalable, Resilient Web Architecture | AWS Public Sector Summi...Establishing a Scalable, Resilient Web Architecture | AWS Public Sector Summi...
Establishing a Scalable, Resilient Web Architecture | AWS Public Sector Summi...
 
Selecting the Best VPC Network Architecture (CPN208) | AWS re:Invent 2013
Selecting the Best VPC Network Architecture (CPN208) | AWS re:Invent 2013Selecting the Best VPC Network Architecture (CPN208) | AWS re:Invent 2013
Selecting the Best VPC Network Architecture (CPN208) | AWS re:Invent 2013
 
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
 
Architecting for Resiliency
Architecting for ResiliencyArchitecting for Resiliency
Architecting for Resiliency
 
Club review presentation
Club review presentationClub review presentation
Club review presentation
 

Similar a (NET308) Consolidating DNS Data in the Cloud with Amazon Route 53

Dns protocol design attacks and security
Dns protocol design attacks and securityDns protocol design attacks and security
Dns protocol design attacks and security
Michael Earls
 
Microsoft Offical Course 20410C_07
Microsoft Offical Course 20410C_07Microsoft Offical Course 20410C_07
Microsoft Offical Course 20410C_07
gameaxt
 
Die ultimative Anleitung für HCL Nomad Web Administratoren
Die ultimative Anleitung für HCL Nomad Web AdministratorenDie ultimative Anleitung für HCL Nomad Web Administratoren
Die ultimative Anleitung für HCL Nomad Web Administratoren
panagenda
 

Similar a (NET308) Consolidating DNS Data in the Cloud with Amazon Route 53 (20)

Consolidating DNS with Amazon Toute 53 - Pop-up Loft Tel Aviv
Consolidating DNS with Amazon Toute 53 - Pop-up Loft Tel AvivConsolidating DNS with Amazon Toute 53 - Pop-up Loft Tel Aviv
Consolidating DNS with Amazon Toute 53 - Pop-up Loft Tel Aviv
 
AWS User Group - Perth - April 2021 - DNS
AWS User Group - Perth - April 2021 - DNSAWS User Group - Perth - April 2021 - DNS
AWS User Group - Perth - April 2021 - DNS
 
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOSPart 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
 
Dns protocol design attacks and security
Dns protocol design attacks and securityDns protocol design attacks and security
Dns protocol design attacks and security
 
Advanced Globus System Administration Topics
Advanced Globus System Administration TopicsAdvanced Globus System Administration Topics
Advanced Globus System Administration Topics
 
Implementing Domain Name
Implementing Domain NameImplementing Domain Name
Implementing Domain Name
 
GlobusWorld 2021 Tutorial: Globus for System Administrators
GlobusWorld 2021 Tutorial: Globus for System AdministratorsGlobusWorld 2021 Tutorial: Globus for System Administrators
GlobusWorld 2021 Tutorial: Globus for System Administrators
 
Apache Directory and the OSGi Service Platform - Enrique Rodriguez, PMC Membe...
Apache Directory and the OSGi Service Platform - Enrique Rodriguez, PMC Membe...Apache Directory and the OSGi Service Platform - Enrique Rodriguez, PMC Membe...
Apache Directory and the OSGi Service Platform - Enrique Rodriguez, PMC Membe...
 
Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto
Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto
Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto
 
Microsoft Offical Course 20410C_07
Microsoft Offical Course 20410C_07Microsoft Offical Course 20410C_07
Microsoft Offical Course 20410C_07
 
Namespaces for Local Networks
Namespaces for Local NetworksNamespaces for Local Networks
Namespaces for Local Networks
 
Domain Name System (DNS) Fundamentals
Domain Name System (DNS) FundamentalsDomain Name System (DNS) Fundamentals
Domain Name System (DNS) Fundamentals
 
Powering Remote Developers with Amazon Workspaces
Powering Remote Developers with Amazon WorkspacesPowering Remote Developers with Amazon Workspaces
Powering Remote Developers with Amazon Workspaces
 
Introduction to Globus for System Administrators
Introduction to Globus for System AdministratorsIntroduction to Globus for System Administrators
Introduction to Globus for System Administrators
 
Private DNS
Private DNSPrivate DNS
Private DNS
 
Introduction to Globus for System Administrators
Introduction to Globus for System AdministratorsIntroduction to Globus for System Administrators
Introduction to Globus for System Administrators
 
Living on the edge
Living on the edgeLiving on the edge
Living on the edge
 
getdns PyCon presentation
getdns PyCon presentationgetdns PyCon presentation
getdns PyCon presentation
 
Big Data in Container; Hadoop Spark in Docker and Mesos
Big Data in Container; Hadoop Spark in Docker and MesosBig Data in Container; Hadoop Spark in Docker and Mesos
Big Data in Container; Hadoop Spark in Docker and Mesos
 
Die ultimative Anleitung für HCL Nomad Web Administratoren
Die ultimative Anleitung für HCL Nomad Web AdministratorenDie ultimative Anleitung für HCL Nomad Web Administratoren
Die ultimative Anleitung für HCL Nomad Web Administratoren
 

Más de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Más de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 

(NET308) Consolidating DNS Data in the Cloud with Amazon Route 53

  • 1. © 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lee Zen, AWS Edge Services October 2015 NET308 Consolidating DNS Data in the Cloud with Amazon Route 53
  • 2. Agenda • Why should I do this? Why is now the right time? • Cost • Simplicity • Single view • API management • Basic DNS use cases • Advanced private DNS
  • 3. example.com Third-party monitoring System monitoring Internal DNS Public DNS Route 53 public zones Route 53 private zones Route 53 health checks example.com
  • 5. Bulk transfer domains 1. Export DNS to Route 53 2. Delegate to Route 53 3. Transfer domains to Route 53 Order matters for availability!
  • 6. Export DNS Highly dependent on your existing DNS provider. Two examples: • GoDaddy • “DNS Zone File” tab with an “Export (UNIX)” format • BIND • Typically in /var/named/chroot/var/named • Use cli53 to import • https://github.com/barnybug/cli53
  • 7. Export DNS # assuming we have files in the format [domain].zone, we can do this: #!/bin/sh for zonefile in *.zone; do domain=$(basename "$zonefile" .zone) cli53 create ${domain} --comment 'bulk' cli53 import ${domain} --file ${zonefile} done
  • 8. Delegate to Route 53 • This step is registrar dependent. • Namecheap example: • https://api.namecheap.com/xml.response? ApiUser=<example>& ApiKey=<key>& UserName=<user>& Command=namecheap.domains.dns.setCustom& ClientIp=192.168.1.109& SLD=domain& TLD=com& NameServers= ns-425.awsdns-53.com,ns-793.awsdns- 35.net,ns-1049.awsdns-03.org,ns-1692.awsdns-19.co.uk
  • 9. Delegate to Route 53 • Check that you’re actually delegated (dig +trace) $ dig +trace awsarchitectureblog.com … . 505108 IN NS k.root-servers.net. … com. 172800 IN NS … awsarchitectureblog.com. 172800 IN NS ns-425.awsdns-53.com. awsarchitectureblog.com.172800 IN NS ns-793.awsdns-35.net. awsarchitectureblog.com. 172800 IN NS ns-1049.awsdns-03.org. awsarchitectureblog.com. 172800 IN NS ns-1692.awsdns-19.co.uk. • Wait for TTLs to expire
  • 10. Transfer domains • Also registrar dependent, but you will want to unlock your domains and obtain authorization codes. • Namecheap example: • Unlock: https://api.namecheap.com/xml.response? ApiUser=<example>& ApiKey=<key>& UserName=<user>& Command=namecheap.domains.setRegistrarLock& ClientIp=192.168.1.109& DomainName=example.com& LockAction=unlock • Obtain authorization codes (depends on the registrar; GoDaddy has a bulk download option)
  • 11. Transfer domains #/usr/bin/ruby require 'csv' require 'aws-sdk-core' route53domains = Aws::Route53Domains::Client.new(region: 'us-east-1') CSV.foreach("authcodes.csv") do |row| route53domains.transfer_domain(... end
  • 12. Third-party monitoring System monitoring Internal DNS Route 53 public zones example.com
  • 13. Take advantage of AWS integration • ALIAS • Health checks and DNS failover • Calculated health checks • Latency measurements
  • 14. Internal DNS Route 53 public zones Route 53 health checks example.com
  • 15. Set up private DNS $ cli53 import example.integ --file example.integ.zone
  • 16. Route 53 public zones Route 53 private zones Route 53 health checks example.com
  • 18. Using in-VPC resolver • What we can’t do with the gateway+2 (e.g. 10.0.0.2) • Private DNS combines the resolver and authority – this means you can’t treat it as an authoritative server • Delegation back via NS records doesn’t work
  • 19. On-premises to cloud Resolver Route 53 Authority +2 Resolver Q 1 2 34 5 6
  • 20. On-premises to cloud Resolver Route 53 Authority +2 Resolver Q 1 2 45 7 8 Forwarder 3 6
  • 21. Setup unbound as the forwarder $ sudo apt-get install unbound /etc/unbound/unbound.conf: server: ... interface: 0.0.0.0 interface: ::0 access-control: 0.0.0.0/0 allow ... $ sudo unbound-control reload
  • 22. Setup unbound as the forwarder forward-zone: name: "." forward-addr: 10.0.0.2
  • 23. AWS Directory Service as the forwarder • Fully managed on your behalf • If you want to utilize Active Directory in your VPC, you also get to take advantage of that as well
  • 24. Set up Active Directory
  • 25. Set up Active Directory
  • 26. Example $ cat /etc/resolv.conf ; generated by /sbin/dhclient-script search ad.cloud.zen nameserver 10.0.1.114 nameserver 10.0.2.135
  • 28. Example $ dig TXT example.cloud.zen ;; QUESTION SECTION: ;example.cloud.zen. IN TXT ;; ANSWER SECTION: example.cloud.zen. 60 IN TXT "hello world" ;; Query time: 4 msec ;; SERVER: 10.0.1.114#53(10.0.1.114)
  • 29. Active Directory and Route 53 Private DNS • Manage all non-AD names in Private DNS (because it will fall through) • API endpoint in Route 53 • Zones can cross regions with private DNS
  • 31. BIND configuration options { ... forwarders { 10.0.1.114; 10.0.2.135; }; forward only; # depending on your configuration }; zone ”cloud.zen" { type forward; forwarders { 10.0.1.114; 10.0.2.135; }; };
  • 32. Unbound configuration forward-zone: name: "." forward-addr: 10.0.1.114 forward-addr: 10.0.2.135 forward-zone: name: ”cloud.zen" forward-addr: 10.0.1.114 forward-addr: 10.0.0.135
  • 33. Flatten your zones instead of subdelegating Resolver cloud.zen +2 Resolver Q Forwarder sub.cloud.zen
  • 34. Flatten your zones instead of subdelegating Resolver cloud.zen +2 Resolver Q Forwarder sub.cloud.zen
  • 35. On-premises contains data not in private DNS • Loop the query through on-premises • Copy the data into private DNS • Setup conditional forwarding in Active Directory
  • 36. Queries from on-premises will see the data Resolver Route 53 Authority +2 Resolver Q 1 2 45 7 8 Forwarder 3 6
  • 37. Loop the query through on-premises for VPC Resolver Route 53 Authority +2 Resolver Q 1 2 45 7 8 Forwarder 3 6
  • 38. Copy the data into private DNS https://code.google.com/p/route53d/ • or cli53 or [hostedzone] # # Enumerate the zone IDs for each hosted zone, e.g.: # [hostedzone] # foo.com = Z123 # baz.org = Z456
  • 39. Copy the data into private DNS Resolver Route 53 Authority +2 Resolver Q 1 23 Forwarder 4
  • 40. Summary • Consolidating your DNS infrastructure in the cloud is easy and simplifies management • There are a number of ways to combine private DNS with an on-premises or existing DNS solution • We’re aware of the limitations of the gateway+2 and are working toward resolving those limitations