
Originally Posted by
gaurav_salve
localhost kef-ho-lap
127.0.0.1 kef-ho-lap
The first one is an invalid line for /etc/hosts.
The second one should at least read
Code:
127.0.0.1 localhost
else all references to localhost can not be resolved.
When you want kef-ho-lap also to be resolved to 127.0.0.1 then make it an alias
Code:
127.0.0.1 localhost kef-ho-lap
When you want a reverse lookup of 127.0.0.1 be resolved as kef-ho-hap instead of localhost, you could change that to
Code:
127.0.0.1 kef-ho-hap localhost
but I am not sure if that is a good idea.
I do not know if kef-ho-hap is the hostname of the system (which one, CUPS client or CUPS server) you are talking about. Normally the hostname is connected to the IP address of the NIC connected to the LAN, not to 127.0.0.1. This would result in something like:
Code:
127.0.0.1 localhost
192.168.1.15 kef-ho-hap
And the last one should be both in your client and your server system to have consistency in your network.
But I can be that I totally misunderstand what you are doing., I only saw your ununderstandable /etc/hosts entry and as long as that is not correct, I doubt you can solve any problem you encounter in this field.
Bookmarks