<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Ok, I have a linksys router running dd-wrt firmware which is running dnsmasq. My lan is on the 192.168.1.0/24 subnet. I would like to be able to access my dsl modem through the router by its ip address and its hostname. Of course the modem is connected to the WAN side of the router, so I added a ip address in the same subnet as the modems address (which is 192.168.2.254) to my router's wan port (which is vlan2) with this command<br><br>ifconfig vlan2 192.168.2.222 netmask 255.255.255.0<br><br>I also added this iptables rule to get traffic back<br><br>iptables -I POSTROUTING -t nat -o vlan2 -d 192.168.2.0/24 -j MASQUERADE<br><br>Here is the strange stuff that is happening. If I try to access the modem by ip address (192.168.2.254) it seems the modem redirects the browser to 'launchmodem.com' (which is one of the ways you can reach the modem by name) before the homepage will appear. Well this fails. I figured modifying my 'hosts' file on my notebook (running Vista Ultimate) would solve the problem and it did. So I thought instead of modifying my hosts file in Vista I would modify the hosts file on the router then any computer on the lan would be able to reach the modem. I did that but it seems that Vista isn't using the host info from the router. So I tried adding these commands to dnsmasq<br><br>address=/launchmodem/192.168.2.254<br>address=/launchmodem.com/192.168.2.254<br>address=/www.launchmodem.com/192.168.2.254<br><br>When I do this I can ping the modem FROM THE ROUTER all three ways i.e 'launchmodem', 'launchmodem.com', and 'www.launchmodem.com' I can also ping the modem from the router all three ways with these added to the router's hosts file. However, from my notebook I can only ping 'launchmodem.com', and 'www.launchmodem.com' but NOT 'launchmodem' (host not found). Another oddity, I can only reach the modem in my browser with 'launchmodem.com' not with 'www.launchmodem.com' even though I can ping 'www.launchmodem.com'.<br><br>Can anyone advise me on what is going on here and how to troubleshoot/fix?<br><br>Thanks!<br><br /><hr />Bing™ brings you maps, menus, and reviews organized in one place. <a href='http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TEXT_MLOGEN_Core_tagline_local_1x1' target='_new'>Try it now.</a></body>
</html>