DNS

Override a single external hostname with internal DNS-entry

Problem: Company.com has an exernal dns-record for service.company.com which should be resolved to an inernal IP by internal clients. Let’s say that service.company.com resolves to 1.1.1.1 by the external DNS but when computers are connecting to this URL from inside the company network the internal DNS servers at ad.company.com needs to resolve service.company.com to 172.16.51.25. Adding an entry to the hosts-file on each client computer to override service.company.com will not work when clients connect on exteral networks like from home or a coffeeshop.