Use specific DNS server for certain website resolving and all other use the default DNS

Sivasan
Sivasan used Ask the Experts™
on
Hi There,
We are testing our new website on Test environment , Couple pages on it uses angular 8  and the images on it is not displaying  when we go to our test website from within our organization, when we check from outside our network it works fine.

We do use OpenDNS to block certain category of web, so if we change our dns to use google public dns 8.8.8.8 the test website displays the images correctly. We did try to disable OpenDNS still the web site doesn't display the images. So something internal when we use our DNS is blocking it.
Till we figure this completely,  is there a way inside our network where we can adjust the host file  or something so only for this particular website which we know is safe we can default it to use the dns server 8.8.8.8 and all other request go through our DNS server which basically gets forwarded to OpenDns.

so for example anybody inside our networks look for www.example.com  8.8.8.8 should be the dns server that should resolve it, any other website should go through our DNS.
I will appreciate anybody has any idea if we could do that and if so how..
Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Conditional forwarding is available in Windows 2012 R2 and onwards. Obviously, this only works if you're sure which DNS requests are denied and which are not. Do you use the FREE OpenDNS version? Or the advanced (for school, etc, or paid). Because the advanced version can have a specific whitelist, meaning no need to do these tricks.

Author

Commented:
We have added it to whitelist  in OpenDNS, but I'm not sure if OpenDNS is blocking it. Yes our DNS is Win 2012 R2. Can you please let me know the steps how I can do conditional forwarding just for this website to be resolved through 8.8.8.8
Thanks

Commented:
Right click on Conditional Forwarders and select New Conditional Forwarder.
If images from images.twitter.com (just an example!) are not working,

add either twitter.com or images.twitter.com (your choice, if you suspect more from twitter is blocked or not) as DNS Domain, then input 8.8.8.8 underneath. That's all
Continue to add more domains that are blocked by OpenDNS.

While the whitelist function should've worked, it could also be you whitelisted the wrong items. That's because it was still an OpenDNS issue as you tested it fully working with Google DNS.
If that's the case, inputting the same wrong items in Conditional Forwarding will have the same unsuccessful results.

In that case, use the browser's Developer Tools to investigate more thoroughly (or use Wireshark on port 53 on the server)
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Olgierd UngehojerSenior Network Administrator

Commented:
You may have link to images goes by different domain or some cash still on local system or local server. Try to clean it.

Author

Commented:
I ended up adding entry in local host file on all computer. I couldn't do conditional forwarding as when I tried to put the entry, it said it exist. My domain name and web site name are the same not sure if that has something to do with it..
Commented:
I ended up adding entry in local host file on all computer.

Commented:
Adding an entry in a local host file, is the same as adding an entry in the DNS server (not even conditional forwarding), but much easier.
You do realise that, right?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial