--- include/defaults.h | 2 +- samples/autofs.conf.default.in | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) --- a/include/defaults.h +++ b/include/defaults.h @@ -44,7 +44,7 @@ #define DEFAULT_MAP_HASH_TABLE_SIZE 1024 -#define DEFAULT_USE_HOSTNAME_FOR_MOUNTS "0" +#define DEFAULT_USE_HOSTNAME_FOR_MOUNTS "1" struct ldap_schema; struct ldap_searchdn; --- a/samples/autofs.conf.default.in +++ b/samples/autofs.conf.default.in @@ -70,13 +70,15 @@ BROWSE_MODE="no" # #LDAP_URI="" # USE_HOSTNAME_FOR_MOUNTS - nfs mounts where the host name resolves -# to more than one IP address normally need -# to use the IP address to esure a mount to -# a host that isn't responding isn't done. -# If that behaviour is not wanted then set -# ths to "yes", default is "no". +# to more than one IP address normally can +# use the IP address to ensure a mount to +# a host that isn't responding isn't use. +# If that behaviour is required then set +# this to "no", default is "yes" so that the +# expected hostname appear in e.g. 'df' output. +# # -#USE_HOSTNAME_FOR_MOUNTS = "no" +#USE_HOSTNAME_FOR_MOUNTS = "yes" # # LDAP__TIMEOUT - timeout value for the synchronous API calls # (default is LDAP library default).