1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Replace Asus HOSTS file

Discussion in 'ASUS Wireless' started by sinshiva, Nov 13, 2013.

  1. sinshiva

    sinshiva Very Senior Member

    Joined:
    Nov 8, 2013
    Messages:
    1,067
    Location:
    FL
    Quick guide to make use of a better HOSTS file on some Asus routers. A better explanation of the HOSTS file can be found here, but essentially using a customized HOSTS file helps filter advertisements and prevent users on your network from connecting to some known sources of malware. This can help speed up browsing significantly on smartphones, etc.

    At the router's configuration page, at Administration > System, enable the Telnet server.

    Using your preferred telnet client (PuTTY), login to the router using your set credentials. After logging in, you'll need to enter the following commands.

    cd ~
    wget http://winhelp2002.mvps.org/hosts.txt
    mv /etc/hosts /etc/hosts.old
    mv hosts.txt /etc/hosts

    logout and reboot the router from the webadmin. isn't this router awesome? perhaps remember to disable the telnet service when you are done.
     
  2. RMerlin

    RMerlin Super Moderator

    Joined:
    Apr 14, 2012
    Messages:
    30,619
    Location:
    Canada
    That won't work. /etc/hosts is dynamically generated at boot time in the ram disk, so rebooting the router will lose all your changes.

    You need a custom firmware to be able to replace the hosts file.
     
  3. dweiss

    dweiss Occasional Visitor

    Joined:
    Apr 6, 2013
    Messages:
    20
    The same thing can be accomplished, of course, simply by updating the hosts file on any individual computers on the network. Although this does not provide the convenience of a centrally managed hosts file through the router, it will provide all the other benefits you are seeking on a computer-by-computer basis. Since the hosts file generally does not need to be updated very often, you do not lose much by simply creating a file and then distributing it to the individual machines.
     
  4. sinshiva

    sinshiva Very Senior Member

    Joined:
    Nov 8, 2013
    Messages:
    1,067
    Location:
    FL
    installed; thank you, sir