I am running Solaris 2.7.
I have created a script that updates the /etc/hosts file every night by running a command that gives me all ip addresses and hostnames on my network, writes the output to a file and I am "cat"ing that with a file I call /etc/hosts.static to give me my updated /etc/hosts file.
My question:
Can this cause any potential problems? Assume for the sake of argument that there was no /etc/hosts file at boot time. Would that cause the system not to boot? Are there any other potential problems with not having an /etc/hosts file? My /etc/hosts has a link to /etc/inet/hosts as well. My /etc/nsswitch.conf file is set up as follows:
hosts dns
Thanks in advance.
I have created a script that updates the /etc/hosts file every night by running a command that gives me all ip addresses and hostnames on my network, writes the output to a file and I am "cat"ing that with a file I call /etc/hosts.static to give me my updated /etc/hosts file.
My question:
Can this cause any potential problems? Assume for the sake of argument that there was no /etc/hosts file at boot time. Would that cause the system not to boot? Are there any other potential problems with not having an /etc/hosts file? My /etc/hosts has a link to /etc/inet/hosts as well. My /etc/nsswitch.conf file is set up as follows:
hosts dns
Thanks in advance.