Internal Routing for Dynamic DNS Server

So you're running a webserver, great. And you have a dynamic DNS service that is tracking your IP, even better. And it looks good from the outside world.

Then you try to use the Dynamic DNS name internally and get redirected to your router. Welcome to your own personally purgatory. Yes you can set up a hosts file on all your machines, including Windows machines, but still what do you do if you have a laptop?

You could use a split DNS to fix this; however, there is an easier way. Using this trick, you should be fixed up in less than 10 minutes.

TinyProxy
Start off by emerging tinyproxy. Put into your hosts file on that machine, your dynamic domain name and IP it should resolve to. Add tinyproxy to your default runlevel and start it.

proxy.pac
This controls how proxies are resolved. Create the file and add the following lines: function FindProxyForURL(url, host) {        if(isInNet(myIpAddress, "", "255.255.255.0")){ return "PROXY :8888; DIRECT"; }

Replace the items in <> as appropriate.

Configuring Your Browser
Set up your browser to use the proxy.pac file.