I have been using /etc/hosts to map ip addresses to aliases for as long as I can remember; but lately I've noticed my file has been overwritten. Also I noticed the following:
# Local Host Database
#
# This AUTOMATICALLY-GENERATED file describes a number of aliases-to-address
# mappings for the local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#
# DO NOT EDIT THIS FILE BY HAND; YOUR CHANGES WILL BE OVERWRITTEN
#
# Define alias-to-address mappings in /etc/conf.d/hostname
I've relied on my hosts file heavy, is there a preferred way to to match ip addresses with names similar to using the hosts file?
Question
gnuisance
I have been using /etc/hosts to map ip addresses to aliases for as long as I can remember; but lately I've noticed my file has been overwritten. Also I noticed the following:
I've relied on my hosts file heavy, is there a preferred way to to match ip addresses with names similar to using the hosts file?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts