|
|
Archives of the TeradataForum
Message Posted: Thu, 08 Sep 2005 @ 10:29:35 GMT
Subj: | | Re: The HOSTS dosen't work |
|
From: | | Victor Sokovin |
> 127.0.0.1 localhost
> 211.71.16.254 server servercop1
| if I input "ping 211.71.16.254" it return right result. | |
| if I input "ping servercop1" it return: | |
| "Ping request could not find host test. Please check the name and try again." | |
I could think of one explanation which nobody seems to have mentioned so far. As I can reproduce the same behavior on my side, I thought I
should mention it. Hopefully, the prize has not been given away yet?
If for some reason the hosts file has been saved in the encoding such as Unicode, then host synonym lookup stops working. I guess it would be
the same with any multibyte encoding used in environments with such default languages as Chinese, Japanese, Korean, etc.
It might be difficult to spot the problem because when you open the file in, say, notepad, everything looks the same as in ASCII encoding. But
it only looks the same. Internally the file is quite different as you can verify by viewing it in any binary editor. The size of the file doubles
after it is saved in Unicode, so this is an easy indicator to check first and compare it with the file size on the machines where there is no
problem. Of course, the remedy is just to save the hosts file in ASCII mode.
Regards,
Victor
| |