Results 1 to 3 of 3
Thread: loghost in etc host
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2009
loghost in etc host
I configure the /etc/hosts in red aht ES 5.4
I want to ask what is the function of "loghost "..
If I miss it , any different or problem ??/
Below is the etc/hosts file
192.168.59.10 A.abc.com A loghost
192.168.59.12 B.abc.com B
192.168.59.13 C.abc.com C
Well, someone decided to point loghost to 192.168.59.10
You should be able to tell, if that hostname/IP is correct.
If you remove loghost from /etc/hosts on that rh 5.4 box, then it probably cannot resolve the name loghost anymore.
So, *guessing* from the name: maybe remote logging wont work from there on.
Apart from that:
Usually, DNServer are prefered in comparison to /etc/hosts, as they provide a central and consistent way of managing hostnames, etcYou must always face the curtain with a bow.
- Join Date
- May 2011
The hosts file contains lines of text consisting of an IP address in the first text field followed by one or more hostnames. Each field is separated by white space (blanks or tabulation characters). Comment lines may be included; they are indicated by a hash character (#) in the first position of such lines. Entirely blank lines in the file are ignored. For example a typical hosts file may contain the following:
#This is an example of the hosts file
127.0.0.1 localhost loopback
IOW `loghost` is the name assigned (locally on the machine that has the /etc/hosts file) to the computer at 192.168.59.10.
try to ping loghost from the command line, see how ping automatically resolves the host name into an IP?