Skip to content

How to resolve Route 53 private hosted zones from an on-premises network via an Ubuntu instance?

Notifications You must be signed in to change notification settings

karlesnine/k9-docker-dnsforwardtoaws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dns forward to aws CI /CD

DNS forward to aws

How to resolve Route 53 private hosted zones from an on-premises network via an Ubuntu instance?

You can resolve domain names for private zones from your on-premises network by configuring a DNS redirector. The instructions assume that your on-premises network is configured using a VPN or AWS Direct Connect in AWS VPC and that a private Route 53 hosted zone is associated with this VPC.

  • Based upon bind9 named
  • Embed Prometheus bind exporter
  • Forward incoming DNS requests to the AWS DNS of the VPC
  • Self-discovery of VPN DNS by AWS metadata

Based

Based on the dnsforwardaws from Cohesive Networks

Docker Network

  • port 53 tcp and udp for bind9 named
  • port 9153 tcp for Prometheus bind exporter

Local test

Because you cannot use aws metadata if the container is hosted on your localhost there is a workaround

  • Curl call to metadata timeout after 30s
  • If the variable for the VPN DNS ip adresse is empty by default 127.0.0.2 is used
  • Like this the bind start and the container is up

Ok this is not super clean

About

How to resolve Route 53 private hosted zones from an on-premises network via an Ubuntu instance?

Resources

Stars

Watchers

Forks

Packages

No packages published