Knowledge Search


Add entry to hosts file on STRM

  [KB16499] Show KB Properties

  [KB16499] Hide KB Properties

Knowledge Base ID: KB16499
Last Updated: 24 Jun 2010
Version: 2.0

The /etc/hosts file on STRM allows you to map hostnames to IP addresses

Problem or Goal:
  • How to add entry to /etc/hosts file on STRM
  • Entries in /etc/hosts file are lost

On every Deploy and Reboot the /etc/hosts file is over-written with contents from /etc/hosts.default file.  If you need to add hosts this need to be done in the /etc/hosts.default file

Sample /etc/hosts.default file

[root@strm-104 jars]# cat /etc/hosts.default
# Do not remove the following line, or various programs
# that require network functionality will fail. localhost.localdomain localhost strm-104
[root@strm-104 jars]#


Related Links:

Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.