How to update hosts on Merlin(ASUS router)
In order to add private domain for home network, e.g. git.me on my NAS(10.0.0.x:3000), wanna to access via http://git.me, the easiest way is to adding the domain to hosts file.
Access your ASUS router via ssh first
1 | $ echo "addn-hosts=/jffs/configs/hosts" > /jffs/dnsmasq.conf.add |
then create a hosts file:
1 | $ touch /jffs/configs/hosts |
after that, you can add your domain to this hosts file as following:
1 | 192.168.0.10 git.me |
Once edited it, restart DNS service.
1 | $ service restart_dnsmasq |
Done, enjoy and try your new domain. :)
Reflection
Why no one develop a plugin for Merlin firmware for this requirement?
a bit complex prerequisites, uninstallation might be a issue also.