Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.
Some people will die for love,
Others will die because they lost it.
Stop DNSMasq From Forwarding Local Hostnames
Saturday, September 25, 2010 by digitalpeer
My ISP, and likely yours, has found it convenient to setup their DNS servers to resolve bogus hostnames to a valid address hoping you're using a web browser so they can give you junk. If you use DNSMasq (or dd-wrt), by default, when you ping "badhostname" it actually works even though that host does not exist. That's because DNSMasq decides it doesn't know who that host is, so it forwards the lookup to your ISP's DNS server. This is extremely annoying and frankly a security risk when using things like ftp. To get around it, make sure your dnsmasq.conf contains the following with the rest of your config:
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Add local-only domains here, queries in these domains are answered
# from /etc/hosts or DHCP only.
local=/local.lan/
In dd-wrt you can add these into the additional DNSMasq options.