I'm running a server at home and let say it has an internal IP address of 192.168.1.100. The external (static) IP address is 126.96.36.199. Let say if I host mywebsite.co.nz in that server.
At the moment every time I'm at home, I have to change my hosts file to point mywebsite.co.nz to the internal IP 192.168.1.100 and every time I'm not home I need to remove that from the hosts file which is a pain.
I want to make this automatic and the only way I know how is to run a DNS server and set the router to use that DNS server.
But I'm thinking if there is an easier way to do this? There is this thing called 'Static Routing' and I'm wondering if that's exactly what I need?