I've got DNSMasq running. Thanks for the help. This is on a LinkStation Pro Duo LS-WTGL/R1-V3 that reports a processor type of: ARM926EJ-Sid(wb) rev 0 (v5l)
To help others who may be searching on "dnsmasq" here is what I did.
Install the 3.10 software from the Buffalo site. It does
contain sshd, telnetd, and wget. It does
work with acp_commander. However, be sure
you are running Version 3 software before you do this; you'll brick your machine if you try to install 3.10 over 1.xx.
Remove root password and enable telnet with acp_commander, then fix sshd to start automagically on reboot using steps 1.1 to 1.5 from this article: http://buffalo.nas-central.org/index.php/Open_Stock_Firmware
. (I skipped adding telnet to the startup.)
Log in using ssh and 'cat /proc/cpuinfo' to verify that the CPU is ARM926EJ-Sid(wb) rev 0 (v5l) (If it's not, you may need a different version of optware, and I don't have the experience to help figure that out. Sorry.)
Bootstrap the optware stuff as follows:
# If 404, check for newer version of bootstrap
I installed the nano editor as well as DNSmasq because I'm slow with vi:
ipkg install nano
ipkg install dnsmasq
Make a place for the "leases" file in the /opt directory:
chown nobody dnsmasq.leases
Make a backup of the configuration file:
cp dnsmasq.conf dnsmasq.conf.original
Now edit the configuration file to suit you; be sure you change the location of "dnsmasq.leases". Search for it.
Rebooting the Linkstation overwrites /etc/hosts. If you want to use a hosts file, create one in /opt/etc/hosts, add an "addn-hosts=/opt/etc/hosts" line to dnsmasq.conf, and populate your hosts file.
Rebooting the Linkstation overwrites /etc/resolve.conf. Create and edit /opt/etc/resolv.conf to give DNSmasq some "outside" name servers to use. You must specify resolv-file=/opt/etc/resolv.conf in the DNSmasq configuration. See the sample below.
# Only local requests go here; dnsmasq ignores this
# OpenDNS Public Nameservers
# Google's public nameservers
# AT&T's nameservers (Use your own ISP's name servers if not an AT&T customer)
Start DNSmasq and See What Happens(tm):
I have a cut-down configuration file that may be easier than starting with the one that comes with the package. Once I've been using it for a week or so, I can make it available to anyone who wants it. Edit: You can find my cut-down configuration file here: http://www.hardcastle.us/network/dnsmasq_conf.html
PS: If you have a router running DD-WRT (or several other newer routers, I am told) you don't need this because you have DNSmasq and web-based configuration right in your router.Edits:
2010-12-24 12:01 Rebooting the Linkstation overwrites /etc/resolv.conf and /etc/hosts. Provide alternates /opt/etc/resolv.conf and /opt/etc/hosts and include them in the DNSmasq configuration.
2010-12-20 16:23 Added link to my cut-down config file and a comment in the resolv.conf code not to use AT&T's name servers if one is not an AT&T customer.
2010-12-11 21:59 Added "LS-WTGL/R1-V3" to the description of the LinkStation Pro Duo and rearranged the first paragraphs.