Hpux update /etc/hosts

On every reboot hpux 11.31 update etc/hosts
even on dhcp,this cause problems with ssh kerberos
How to avoid update /etc/hosts?
This is my netconf

# netconf:  configuration values for core networking subsystems
#
# @(#) netconf $Date: 2011/01/31 17:30:11 $Revision: r11.31/2 PATCH_11.31 (PHNE_41714) 
#
# HOSTNAME:           Name of your system for uname -S and hostname
#
# OPERATING_SYSTEM:   Name of operating system returned by uname -s
#                     ---- DO NOT CHANGE THIS VALUE ----
#
# LOOPBACK_ADDRESS:   Loopback address
#                     ---- DO NOT CHANGE THIS VALUE ----
#

HOSTNAME=hpux2
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

# Internet configuration parameters.  See ifconfig(1m), autopush(1m)
# 
# INTERFACE_NAME:     Network interface name (see lanscan(1m))
#
# IP_ADDRESS:         IP address in decimal-dot notation (e.g., 192.1.2.3),
#                     or hostname (in /etc/hosts).
#
# SUBNET_MASK:        Subnetwork mask in decimal-dot notation, if different
#                     from default
#
# BROADCAST_ADDRESS:  Broadcast address in decimal-dot notation, if 
#                     different from default
#
# INTERFACE_STATE:    Desired interface state at boot time.
#                     either up, down or force, default is up.
#                     See ifconfig(1m) for more about force option.
#
# DHCP_ENABLE         Determines whether or not DHCP client functionality 
#                     will be enabled on the network interface (see 
#                     auto_parms(1M), dhcpclient(1M)). DHCP clients get 
#                     their IP address assignments from DHCP servers.
#                     1 enables DHCP client functionality; 0 disables it.
#
# INTERFACE_MODULES:  A list of modules to be pushed on a stream
#                     associated with an interface. For example,
#                     INTERFACE_MODULES[0]="mod1 mod2 ... modN-1 modN"
#                     pushes modN on top of modN-1.
#
# INTERFACE_SKIP:    Determines whether this interface needs to be configured
#                    or not. Setting it to "true" will skip or disable the
#                    interface configuration. And setting it to "false" enables
#                    the interface configuration. Default is "false"
#
#
# For each additional network interfaces, add a set of variable assignments
# like the ones below, changing the index to "[1]", "[2]" et cetera.
#

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.0.16
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=192.168.0.255
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=1
INTERFACE_MODULES[0]=""
INTERFACE_SKIP[0]=""

# Internet routing configuration.  See route(1m), routing(7)
#
# ROUTE_DESTINATION:  Destination host or network IP address in decimal-dot
#                     notation, or hostname (in /etc/hosts) or network name
#                     (in /etc/networks), preceded by the word "host" or "net";
#                     or simply the word "default".
#
# ROUTE_MASK:         Subnetwork mask in decimal-dot notation, or C language
#                     hexadecimal notation.  This is an optional field.
#                     An IP address/subnet mask pair uniquely identifies
#                     a subnet to be reached. If a subnet mask is not given,
#                     then the system will assign the longest subnet mask
#                     of the configured network interfaces to this route.
#                     If there is no matching subnet mask, then the system
#                     will assign the default network mask as the route's
#                     subnet mask.
#
# ROUTE_GATEWAY:      Gateway IP address in decimal-dot notation, or hostname
#                     (in /etc/hosts).  If local interface, must use the
#                     same form as used for IP_ADDRESS above (hostname or
#                     decimal-dot notation). If loopback interface, i.e.,
#                     127.0.0.1, the ROUTE_COUNT must be set to zero.
#
# ROUTE_COUNT:        An integer that indicates whether the gateway is a
#                     remote interface (one) or the local interface (zero)
#                     or loopback interface (e.g., 127.*).
#
# ROUTE_ARGS:         Route command arguments and options.  This variable
#                     may contain a combination of the following arguments:
#                     "-f", "-n" and "-p pmtu".
#
# ROUTE_SOURCE:       Local system IP address in decimal-dot notation, or the
#                     equivalent hostname or alias (in /etc/hosts).
#                     This field is optional.  If specified, it must match
#                     one of the configured IP addresses or names of the 
#                     local system.
#
# ROUTE_PARAMS:       Specify "force" to enable force flag for the routes.
#                     See route(1m) for more about force flag.
#
# ROUTE_SKIP:         Determines whether route needs to be configured or not.
#                     Setting it to "true" will skip or disable the configuration
#                     of this route. And setting it to "false" will enable the
#                     route configuration. Default is "false".
#
#                     Please note that if the corresponding source interface is
#                     skipped from the configuration, then set this flag to "true"
#                     or else /sbin/init.d/net fails to add this route.
#
# For each additional route, add a set of variable assignments like the ones
# below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT:  If host or network names are used instead of IP addresses for
#             fields that support both, make sure the system name resolution
#             policy is configured so that a hang during system boot (or slow
#             boot behavior) is avoided.  See nsswitch.conf(4).

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""
ROUTE_SKIP[0]=""

# Dynamic routing daemon configuration.  See gated(1m)
#
# GATED:        Set to 1 to start gated daemon.
# GATED_ARGS:   Arguments to the gated daemon.

GATED=0
GATED_ARGS=""

#
# Router Discover Protocol daemon configuration.  See rdpd(1m)
#
# RDPD:         Set to 1 to start rdpd daemon
#       

RDPD=0

#
# Reverse ARP daemon configuration.  See rarpd(1m)
#
# RARPD:         Set to 1 to start rarpd daemon
#       

RARPD=0

#
# Network interface configuration.  See ifconfig(1m)
#
# DEFAULT_INTERFACE_MODULES contains a default list of modules to be
# pushed on a stream associated with an interface.  For example,
# INTERFACE_MODULES[0]="mod1 mod2 ...  modN-1 modN" pushes modN on top
# of modN-1.
#
# Precedence rules:
# 1) The module names specified in INTERFACE_MODULES[] for the specified
#    interface overrides the modules in DEFAULT_INTERFACE_MODULES. For
#    example, INTERFACE_MODULES[0]="foo" and 
#    DEFAULT_INTERFACE_MODULES="m1 m2", then the module list applied 
#    will be "foo".
#
# 2) If INTERFACE_MODULES[] is set to null string, then the module 
#    names specified in DEFAULT_INTERFACE_MODULES will be used for the
#    specified interface. For example, INTERFACE_MODULES[0]="" ( or
#    INTERFACE_MODULES[0]= ) and DEFAULT_INTERFACE_MODULES="m1 m2", 
#    then the applied module list will be "m1,m2".
#
# 3) If INTERFACE_MODULES[] is explicitly set to "NONE", then no module
#    list will be applied for the specified interface. For example, if
#    INTERFACE_MODULES[0]="NONE" and DEFAULT_INTERFACE_MODULES="m1 m2",
#    then there will be no -m option applied to the interface.
#    Restriction: The module name can't be "NONE", and "NONE" is not 
#    case sensitive. 

DEFAULT_INTERFACE_MODULES=""

LANCONFIG_ARGS[0]=ether
ROUTE_DESTINATION[1]=default
ROUTE_GATEWAY[1]=
ROUTE_COUNT[1]=1

# New Optional Internet configuration parameters BEGINS
#
# INTERFACE_SKIP:    Determines whether corresponding interface specified in INTERFACE_NAME
#                    need to be configured or not. Setting it to "true" will skip or disable
#                    the interface configuration. And setting it to "false" enables
#                    the interface configuration. Default is "false"
#
# For Example,
#                    In  order to skip the configuration of interface mentioned in 
#                    INTERFACE_NAME[0]. User can just set INTERFACE_SKIP[0] to"true".
#
#               
# INTERFACE_STATE:    Desired interface state at boot time.
#                     either up, down or force, default is up.
#                     See ifconfig(1m) for more about force option.
#
# ROUTE_PARAMS:       Specify "force" to enable force flag for the routes.
#                     See route(1m) for more about force flag.
#
# ROUTE_SKIP:         Determines whether the corresponding static route needs to be
#                     configured or not. Setting it to "true" will skip or disable
#                     the configuration of this route. And setting it to "false" will
#                     enable the route configuration. Default is "false".
#
#                     Please note that if the corresponding source interface is
#                     skipped from the configuration, then set this flag to "true"
#                     or else /sbin/init.d/net fails to add this route.
# For example
#                     To skip the configuration of an static route specified in
#                     ROUTE_DESTINATION[0] set ROUTE_SKIP[0] to "true".
#
# Optional Internet configuration parameters ENDS.
ROUTE_DESTINATION[2]=default
ROUTE_GATEWAY[2]=
ROUTE_COUNT[2]=1
ROUTE_DESTINATION[3]=default
ROUTE_GATEWAY[3]=192.168.0.1
ROUTE_COUNT[3]=1

---------- Post updated at 10:24 AM ---------- Previous update was at 10:23 AM ----------

using fqdn :eek: dont' work..

I don't sure about your problem.
BUT on serious server, I will use simple technic by fix static IP on server.
:D:D

My solution: a bash script wich replace with sed the hostname with fqdn in /etc/hosts :slight_smile:

I haven't seen HP-UX updating /etc/hosts during system boot.
Your netconf looks okay. Something else must be wrong.
What do you get with the following shell commands?

uname -a
nslookup `hostname`