tomato firmware
Apr 18, 2007, 05:02am EDT
I’m a big fan of tomato firmware which I’ve been running on the apartment router for a few months now. It includes a lot of the basic stuff I look for in a router (static IP addresses, traffic shaping, etc). But my favorite feature is the inclusion of Dnsmasq which allows me to set fake internal host names. Now when I type in “w” into my browser url bar, the internal wiki loads. When I type “m”, the interal music player loads. [1]
I found the documentation to be a bit confusing, so I’ll include part of our configuration. This is text copied from Advanced -> DHCP / DNS -> Custom Configuration text area in the tomato firmware admin interface.
domain=local address=/wiki.local/w.local/music.local/m.local/192.168.50.102 address=/router.local/192.168.50.1 address=/printer.local/print.local/192.168.50.150
The first line is important: it sets the domain name for the internal network. Without that line, OSX won’t properly resolve these names.
The second line maps wiki, w, music, and m to 192.168.50.102. The computer at 192.168.50.102 already has a name (it happens to be “shake”), so these are in addition to the existing hostname. Mix in some virtual hosts and it appears like multiple services.
The third line gives a nice alias for the router itself and the fourth line contains aliases for the print server.
[1] These shortcuts actually collide with work intranet aliases when I’m VPN’ed in. In that case, I have to write out w.local or m.local to disambiguate.