[OpenWrt-Devel] 回复: How to Custom admin page on openwrt ?
Tymon
banglang.huang at foxmail.com
Thu Mar 12 05:54:56 EDT 2015
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.
------------------
Regards,
banglang huang
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
------------------ 原始邮件 ------------------
发件人: "Claudio Thomas"<ct at xmodus-systems.de>;
发送时间: 2015年3月12日(星期四) 下午5:14
收件人: "Tymon"<banglang.huang at foxmail.com>;
抄送: "openwrt-devel"<openwrt-devel at lists.openwrt.org>;
主题: Re: [OpenWrt-Devel] How to Custom admin page on openwrt ?
On 12.03.2015 09:45, Tymon wrote:
Thank you for your answer, Claudio Thomas:
I use the default utility called dnsmasq ( a light-weigh dns server and dhcp server) on openwrt 12.09.
Of course the dhcp-server function is enabled and PC-wireless client can get the ip address normally.
Now I can see dns is 192.168.1.1 (just the router) on my PC network configuration, thus I need to modify
the dnsmasq configuration so that it can map the domain name (e.g. admin.myrouter.com<-->192.168.1.1) I type on browser ?
Hi Tymon,
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.
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".
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.
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 openwrt wiki). 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).
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.
Best regards,
Claudio
--
Working on OpenWrt CC for Xmodus GSM Router XM1710E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150312/c0358e71/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list