<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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">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">Xmodus GSM Router
XM1710E</a><br>
<br>
</body>
</html>