I have a Debian Linux server running on my local network. I also have port forwarding set up on my router so that computers outside my network can use my domain name and get to my website/FTP/SSH Server. That works perfectly.
When I enter the domain name (or even the public ip address) on the local network however, it times out. To make it work I use the private IP address of the server when at home. This works ok, but it makes things a bit messy. If it's possible I'd like that domain name to resolve to the private address when on the local network.
I've done a fair bit of Google searching and I think I need to set up split DNS or maybe dnsspoof. I have no idea how to set up a split DNS and I haven't been able to find a good tutorial for it, but I did follow this tutorial on setting up dnsspoof and I couldn't get it to work.
Currently I have bind9 running in a chrooted environment, but have not idea if I'm actually using it.