<div>strange, how can the cgi or uhttp translate myrouter.site1 to gateway ip(i.e. your router, default is 192.168.1.1) ?</div><div> </div><div><sign signid="1"><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style='font-size:14px;font-family:Verdana;color:#000;'><div>Regards,<br /><br />banglang huang<br />_______________________________________________<br />openwrt-devel mailing list<br /><a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank"><font color="#082a4e">openwrt-deve<wbr />l@lists.open<wbr />wrt.org</font></a><br /><a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank"><font color="#082a4e">https://list<wbr />s.openwrt.or<wbr />g/cgi-bin/ma<wbr />ilman/listin<wbr />fo/openwrt-d<wbr />evel</font></a>
<style>.qmbox #mailContentContainer .txt {height:auto;}
</style>
</div></div></sign></div><div> </div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original message ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From:</b> "Ben Mulvihill"<ben.mulvihill@gmail.com>; </div><div><b>Sendtime:</b> Thursday, Mar 12, 2015 6:27 PM</div><div><b>To:</b> "Tymon"<banglang.huang@foxmail.com>; </div><div><b >Cc:</b> "Claudio Thomas"<ct@xmodus-systems.de>; "openwrt-devel"<openwrt-devel@lists.openwrt.org>; </div><div><b>Subject:</b> Re: [OpenWrt-Devel] »Ø¸´£º How toCustom admin page on openwrt ?</div></div><div><br></div>Surely it is possible to do this using dnsmasq? I have something<br>like this in my /etc/config/dhcp file:<br><br>config dnsmasq<br> option domainneeded '1'<br> option boguspriv '1'<br> option filterwin2k '0'<br> option localise_queries '1'<br> option rebind_protection '1'<br> option rebind_localhost '1'<br> list rebind_domain 'site2'<br> list server '/site2/10.121.1.1'<br> option local '/site1/'<br> option domain 'site'<br> option expandhosts '1'<br> option nonegcache '0'<br> option authoritative '1'<br> option readethers '1'<br> option leasefile '/tmp/dhcp.leases'<br> option resolvfile '/tmp/resolv.conf.auto'<br><br>My local domain is 'site1', so I can access my router<br>in a browser at the address 'myrouter.site1' , which<br>it I have understood correctly is what you are <br>trying to do, right?<br>(Note that I also have a vpn to another local network<br>with domain 'site2', and can access the router there<br>at 'myotherrouter.site2')<br><br>Check the various configuration options I use in the <br>dnsmasq documentation, because it is some time since<br>I set this up and I don't remember the details.<br>The 'server' and 'rebind_domain' are for the vpn,<br>so you shouldn't need those.<br><br>Or have I misunderstood the question?<br><br>Ben<br><br><br>