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

saving /etc/hosts

Discussion in 'Sveasoft Firmware' started by cmumford, Aug 21, 2004.

  1. cmumford

    cmumford Network Guru Member

    If I add entries to the /etc/hosts file and then do a reboot the file is emptied out. Does anybody know if the newer private releases of the satori firmware have fixed this problem?
  2. pkitester

    pkitester Network Guru Member

    I don't know if anyone considers it a problem. The /etc/hosts file is created each time the router reboots from the code. It is basically empty.

    If you want to add stuff into it your probably going to have to put some commands into the nvram variable that acts like a startup script.

    You could have that cat into the /etc/hosts, if there are just a couple things. Or you could issue a wget if you can put the /etc/hosts file you want on a http server the router can get to... This is what I considered doing since I have a 20k /etc/hosts file that is useful when you are running dnsmasq. Since it was a hassle I just opted to run dnsmasq on a local server instead.

Share This Page