Posted on 2001-06-22
I am running NT Server.
I type , at the dos prompt, ping localhost
The anser is
pinging A123.whatever where
A123 is the computer name and whatever is the domain.
We have set up a DNS that maps my machine to A123.whatever.com.
I can say ping A123.whatever.com and the ping works, however if I just say ping A123 or ping localhost it just resolve it to A123.whatever , without the .com
My problem is that on that machine I am running a servlet engine, and that also returnes A123.localhost, as a request URL(the url that the client running a web browser typed to get to the web server running on A123.whatever.com), and that created problems.
I need to have A123.whatever.com returned, and I presume that the ping uses something to resolve the IPadress or the word localhost, but that something is obviously not the DNS. As I said the ping works also if I say ping A123.whatever.com, so I just think that that something takes precedency in resolving the name of the host.