Link to home
Start Free TrialLog in
Avatar of nkeables
nkeables

asked on

Server 2016 and DNS DName entries

We use a DNS DName entry to force YouTube Moderate Search settings for our users.  the DName translates "youtube.com" to "restrictmoderate.youtube.com."  After upgrading to MS server 2016 (with AD integrated DNS) the DName entries do not appear function.  When I attempt to visit "www.youtube.com" the page returns "This Site can't be reached," "www.youtube.com's server DNS address could not be found."  

The YouTube site suggests that I create a CName entry for the Domain, but Microsoft will not support a CName entry in a DNS zone of the same name - that's why we used a DName entry.  An "A" record will not work either.  Using the IP returned from an NSLookup request (against my 2012 R2 servers) in my browser returns a Google search page, not a YouTube page.  So an IP mapping doesn't help.

Using the NSlookup tool, I can successfully resolve my DName entries against my remaining 2012 R2 Domain Controllers, but not against any of my 6, 2016 DC's.

I found a KB article that addresses this behavior in 2012 R2, but says nothing about server 2016.  The KB is KB3133954.

Please help.  How do I configure a DName Alias on a 2016 server running AD integrated DNS and make it work?
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

I don't think you are going to find a fix for this, and the issue described in the KB isn't quite the same issue.  Since you don't own youtube.com, you can't delegate it (which is what a DNAME record is supposed to be used for.)  While you can misuse this record type in some situations, 2016's hardened DNS/DANE support tends to make these types of MitM plays less effective, as you are finding out.  DNS manipulation has never been a great way to do content filtering, and is one of my major gripes against OpenDNS, who as popularized the method and misrepresents it for monetary gain.

-Cliff
As Cliff said, if you were able to hack some version of DNS + fool it into returning restrictmoderate.youtube.com for youtube.com some way, this will probably only work if...

1) All DNS traffic is forced through your DNS servers, so TDP/UDP IPV4 + IPV6 traffic to port 53 is blocked + everyone must point to your custom DNS entries.

2) The DNS server you're running is buggy, so you can spoof zone delegation for youtube.com in some way.

Newer versions of DNS servers likely will catch oddities like this, which break correct resolution + just ignore this type of DNS zone file setup.
Avatar of nkeables
nkeables

ASKER

Only our DC's doing forward lookup's are allowed through the firewall, and then only to specific outside DNS servers.  The firewall rule restricting this is an app based rule, so its doing a much deeper inspection than simple port traversal awareness.  We can, and have been , effectively owning the resolution of www.youtube.com.  

The solution suggested by Google is linked below.  Google suggests using a DNS CName entry.  But Microsoft won't allow me to do that in a zone with the same name.  

How does one successfully use a 'DNAME' entry in server 2016.  Is it the intent of the standard to only use these entries for zones that we're authoritative for, why then can't I choose to be authoritative for any zone I choose (within the boundary of my network)?  And since when has Microsoft cared about conforming to DNS standards?  My only option at this point, seems to be to revert my 2016 DC back to 2012.

https://support.google.com/a/answer/6214622?hl=en&ref_topic=6248111
One successfully uses a DNAME record on 2016 for domains they are *ACTUALLY* authoritative for.

Why can't you chose to be authoritative for any zone you choose?  Because legitimate real attacks have used MitM and DNS poison attacks, so DNS standards have evolved to mitigate this.  Claiming authority and BEING authoritative are two different things, and if you don't own the domain, you shouldn't pretend to be authoritative.  Blame the hackers, not Microsoft.

Since when has Microsoft cared aboeu conforming to DNS standards?  Since at least 2003.  Which is why you can't add a CNAME record to as a root zone. That's against RFC and isn't Microsoft's arbitrary rule. Google is recommend a non-spec fix. Blame Google.

You can revert to a less secure solution, sure.  If you see that as your only option...go for it.  The *right* solution though is to use real content filtering. Which any reasonable UTM can do without breaking spec. And when 2012 goes into end-of-life, you'll need to do anyways, as BIND (and most good unix DNS servers) have similar "limitations" by following spec.
Cliff,

Thank you for your comments.  I do not disagree.  Instead, I am frustrated by the loss of function - even if it's due to standards adherence.  

Microsoft has not always followed standards, I think back to 2000/2003 with Microsoft's acceptance of the Non-RFC standard underscore character in DNS Host names.  This caused us some naming convention problems then.  So while my comment was meant more in jest, it's not entirely wrong.

You are correct however, the real issue lies with Google.  For the time being, I have re-directed all my internal DNS traffic to my two remaining Win 2k12 DC's, at least until we decide how we're going to address this situation.

As for real content filtering, we have an HA pair of PaloAlto devices, capable of a wide variety of DPI, SSL decryption, and as complex an ACL as you'd like to build with App-ID or port based rule sets.  What it doesn't do, is header re-writes.  So, even with real URL filtering, I am still stuck.

Thank you for your comments.
ASKER CERTIFIED SOLUTION
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cliff,

You are correct.  I apologize.  You did answer the question as asked.

I really should have asked what a valid workaround is for  someone in my situation (having lost the ability to use DName entries), needing to force "moderate search" settings in YouTube, who doesn't have a device that modifies header content.  I should have re-read my initial question before closing.