That's great, I will have a try on my testbed in my home. And I agree with you that "admin.myrouter" is a proper domain name for my case.<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;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Claudio Thomas"<ct@xmodus-systems.de>; </div><div><b>发送时间:</b> 2015年3月12日(星期四) 下午5:14</div><div><b>收件人:</b> "Tymon"<banglang.huang@foxmail.com>; </div><div><b >抄送:</b> "openwrt-devel"<openwrt-devel@lists.openwrt.org>; </div><div><b>主题:</b> Re: [OpenWrt-Devel] How to Custom admin page on openwrt ?</div></div><div><br></div>On 12.03.2015 09:45, Tymon wrote:<br>
<blockquote cite="mid:tencent_5446FF11083CDFC84FC209BD@qq.com" type="cite">
<div><br>
</div>
<div> Thank you for your answer, Claudio Thomas:</div>
<div><br>
</div>
<div> I use the default utility called dnsmasq ( a
light-weigh dns server and dhcp server) on openwrt 12.09.</div>
<div> Of course the dhcp-server function is enabled
and PC-wireless client can get the ip address normally.</div>
<div> </div>
<div> Now I can see dns is 192.168.1.1 (just the
router) on my PC network configuration, thus I need to modify</div>
<div> the dnsmasq configuration so that it can map
the domain name (e.g. admin.myrouter.com<-->192.168.1.1)
I type on browser ?</div>
<div><br>
</div>
</blockquote>
Hi Tymon,<br>
again: The service that can map from a domain (like
admin.myrouter.com) to an IP-address (like 192.168.1.1) is a
DNS-Server (like bind9). In your case there is probably no
DNS-server in the world that knows "admin.myrouter.com". Thats why
you don't get the IP to that domain.<br>
Because no server in the world knows this domain YOU must find a
solution so that 1 server in the world knows this domain: your own
DNS-server with a zone file for "myrouter.com".<br>
<br>
The dnsmasq does only forward and cache the queries, but does not
has the option (so far I know) to manage your own domain. You need
to set up a dnsserver and create a zone file where the mapping for
"all" hostnames for the domain "myrouter.com" are defined.<br>
<br>
Sorry, but it is not possible to explain how to set up a DNS-server
by mail. But there are many DNS-server howtos on the net (like in
the <a href="http://wiki.openwrt.org/doc/howto/dns.bind" target="_blank">openwrt
wiki</a>). In small chunks: remove dnsmasq + install
binddns-server, enable forwarding, add a master-zone entry in the
named.conf, define your zone file and start your dns-server (bind).<br>
<br>
PS: be carefull when using domain-names that (could) really exist in
the internet. In your case only use *.com domains if this domain
belongs to you. "admin.myrouter.com" coudl be a bad idea,
"admin.myrouter" would probably be better.<br>
<br>
Best regards,<br>
Claudio<br>
<br>
-- <br>
Working on OpenWrt CC for <a href="http://www.xmodus-systems.de/openwrt" target="_blank">Xmodus GSM Router
XM1710E</a><br>
<br>