If you don't want to play with hosts file, Split DNS is the solution.
The easiest way is to install Dnsmasq on your local server and reconfigure DHCP on your router to to use it as DNS server.
Dnsmasq should forward queries to send queries to your name servers, then study configuration file how to override DNS records.