User loginNavigation |
Ridiculously easy home DNS/DHCP Setup2008.10.15 I had been meaning to setup internal DNS/DHCP since we moved into our house back in 2001. I kept putting it off because I was not looking forward to getting intimate with bind. I got lucky and found out about an awesome tool called dnsmasq. I would have probably never done this had two things not happened:
When I listed everything on my wireline network I had:
The challenge I have is that I host a couple of websites on my home computers. This causes problems when I use the website address from within my home network - basically it can't resolve properly. My work-around was to have two sets of bookmarks for those items but that's pretty ugly. What I really needed was a way of having the URL resolve correctly from within my home network. In the list above you'll see IOSLave. This machine handles most of the drudge work in my office. It now also assumes the DNS/DHCP server duties - this was formerly handled by Linksys BEFSR-41. So... Installation of dnsmasq is trivial - many Linux distributions include this package. IOSlave is running an ancient version of Slackware so I installed from source which was simply a matter of running make install. The configuration of dnsmasq is where the payoff is. In my case I wanted to do a couple of things:
dnsmasq can be configured by the contents of /etc/dnsmasq.conf and by command line arguments. I chose to modify the config file because I didn't want all the arguments showing up on a 'ps'. The example dnsmasq.conf file included in the package is almost what I needed, just a few tweaks:
That's it, really really painless. Resources: |
Search |