<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hybrid DNS &#8211; Blog of Kliment Andreev &#8211; A place so I won&#039;t forget things</title>
	<atom:link href="https://blog.andreev.it/tag/hybrid-dns/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.andreev.it</link>
	<description></description>
	<lastBuildDate>Mon, 02 Nov 2020 13:25:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>AWS: Hybrid DNS resolution between on-prem and AWS</title>
		<link>https://blog.andreev.it/2019/01/145-aws-hybrid-dns-resolution-between-on-prem-and-aws/</link>
					<comments>https://blog.andreev.it/2019/01/145-aws-hybrid-dns-resolution-between-on-prem-and-aws/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Wed, 30 Jan 2019 16:04:38 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Hybrid DNS]]></category>
		<category><![CDATA[on-prem]]></category>
		<guid isPermaLink="false">https://blog.andreev.it/?p=4364</guid>

					<description><![CDATA[Lately I was playing with Docker and the AWS EFS file systems and I&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>Lately I was playing with Docker and the AWS EFS file systems and I realized that I can&#8217;t access my new NFS file system because of the DNS resolution. The reason being that I use a DNS that&#8217;s at home and this DNS has no clue about any AWS resources. This is how my setup looks like.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-01.jpg"><img fetchpriority="high" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-01.jpg" alt="" width="1312" height="766" class="aligncenter size-full wp-image-8409" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-01.jpg 1312w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-01-300x175.jpg 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-01-1024x598.jpg 1024w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-01-768x448.jpg 768w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-01-1170x683.jpg 1170w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-01-585x342.jpg 585w" sizes="(max-width: 1312px) 100vw, 1312px" /></a><br />
I have two domain controllers, DC01 and DC02. The first one is at home/on-prem and the other one is in AWS. They are on a different subnets. I also have a site-to-site VPN connection between the two. All of my resources use the DNS servers that I provide. This means that the AWS DNS that comes as default when you create a new VPC was never used. I have a specific DHCP Option Set in AWS that I use to provide my DNS servers to all of my AWS resources.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-02.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-02.png" alt="" width="1336" height="305" class="aligncenter size-full wp-image-8410" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-02.png 1336w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-02-300x68.png 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-02-1024x234.png 1024w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-02-768x175.png 768w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-02-1170x267.png 1170w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-02-585x134.png 585w" sizes="(max-width: 1336px) 100vw, 1336px" /></a><br />
And here is the problem. When I created a new EFS file system, I tried to mount it, but my DNS had no clue where this resource is. The hostname for the EFS is not publicly resolvable. On top of that, you can&#8217;t resolve this hostname from on-prem over VPN and Direct Connect even if you use the provided AWS DNS as a forwarder. The solution before was to build a DNS server in the cloud and make it as a forwarder. As of November 2018, AWS expanded the Route 53 DNS and now you can create inbound and outbound endpoints that do this for you. In my case, I needed amazonaws.com to be resolved by my DNS. All I have to do is to create an inbound endpoint in Route 53 and tell my DNS servers to use the IPs provided by Route 53.<br />
Here is what I did.<br />
In Route 53, click on <strong>Inbound endpoints</strong>. Click on <strong>Create inbound endpoint</strong>. Fill out the values by specifying a name for the inbound endpoint, the VPC where your resources reside and a security group that allow access. I am not quite sure what security levels are needed here, I assume TCP/UDP 53, so I assigned a security group that gives access to all my AWS resources to the resources on-prem. Try with TCP/UDP 53 first and see if it works.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-03.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-03.png" alt="" width="1015" height="553" class="aligncenter size-full wp-image-8411" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-03.png 1015w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-03-300x163.png 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-03-768x418.png 768w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-03-585x319.png 585w" sizes="(max-width: 1015px) 100vw, 1015px" /></a><br />
Specify two subnets and let AWS choose the IPs. These are the actual DNS server IPs that AWS will provide for you.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-04.png" alt="" width="1012" height="938" class="aligncenter size-full wp-image-8412" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-04.png 1012w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-04-300x278.png 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-04-768x712.png 768w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-04-585x542.png 585w" sizes="(max-width: 1012px) 100vw, 1012px" /></a><br />
Click <strong>Submit</strong>. Once completed you&#8217;ll see your inbound endpoint ready.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-05.png" alt="" width="1107" height="331" class="aligncenter size-full wp-image-8413" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-05.png 1107w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-05-300x90.png 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-05-1024x306.png 1024w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-05-768x230.png 768w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-05-585x175.png 585w" sizes="(max-width: 1107px) 100vw, 1107px" /></a><br />
If you click on the endpoint, you&#8217;ll see the IPs that AWS provides to you.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-06.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-06.png" alt="" width="1279" height="388" class="aligncenter size-full wp-image-8414" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-06.png 1279w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-06-300x91.png 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-06-1024x311.png 1024w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-06-768x233.png 768w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-06-1170x355.png 1170w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-06-585x177.png 585w" sizes="(max-width: 1279px) 100vw, 1279px" /></a><br />
Now, go back to your on-prem DNS and create a conditional forwarder for amazonaws.com.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-07.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-07.png" alt="" width="540" height="239" class="aligncenter size-full wp-image-8415" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-07.png 540w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-07-300x133.png 300w" sizes="(max-width: 540px) 100vw, 540px" /></a><br />
Specify the domain amazonaws.com and enter the two IPs that were provided to you.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-08.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-08.png" alt="" width="789" height="715" class="aligncenter size-full wp-image-8416" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-08.png 789w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-08-300x272.png 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-08-768x696.png 768w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-08-585x530.png 585w" sizes="(max-width: 789px) 100vw, 789px" /></a><br />
I made sure that they are stored in AD, so both DCs can get the settings. By default, a conditional forwarder is not stored in AD, which means it won&#8217;t replicate.<br />
Now that everything is configured, I can resolve my EFS filesystem from my on-prem server.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/01/P122-09.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/01/P122-09.png" alt="" width="623" height="301" class="aligncenter size-full wp-image-8417" srcset="https://blog.andreev.it/wp-content/uploads/2019/01/P122-09.png 623w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-09-300x145.png 300w, https://blog.andreev.it/wp-content/uploads/2019/01/P122-09-585x283.png 585w" sizes="(max-width: 623px) 100vw, 623px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2019/01/145-aws-hybrid-dns-resolution-between-on-prem-and-aws/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
