NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

gmatas's avatar
gmatas
Aspirant
May 27, 2015

/etc/hosts file overwitten with old values on ReadyNAS 1500

/etc/hosts file overwitten with old values each time we restart ReadyNAS 1500 system.

Each time we boot system, we have to modify this file.

So, any idea why is happenning this issue?

Thanks in advance.

Regards
Gabriel

3 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    You could get a script to populate this file at the appropriate point in the boot process.

    Why do you need a custom /etc/hosts file?
  • mdgm wrote:
    You could get a script to populate this file at the appropriate point in the boot process.

    Why do you need a custom /etc/hosts file?



    We are using rsh from an unix server, to call to the NAS to call some files, however, each time we reboot NAS, the UNIX host dissapeared on /etc/hosts file, so rsh give me errors and on syslog file on NAS system records "system didn't recognice host". When we modify /etc/hosts file inserting the UNIX host, it works again.

    Some idea about the script you mentioned? Where can I configure to launch at boot time?

    Thanks in advance.

    Regards
    Gabriel
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    One way would be to do it like how an add-on does it.

    Another way would be to have a script in one of the /etc/rc*.d folders, I think.

    You would need to give it the appropriate ownership, permissions and get it to start at the appropriate point in the boot process.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More