on 04-23-2010 4:09 PM
Experts:
I am looking into a /etc/hosts which has something I never saw before.
Every entry in that /etc/hosts file has a format as follows:
123.23.456.678 CHERRY CHERRY.RIO.COM SID CHERRY.BRAVO.NET
For example:
123.23.456.678 CHERRY CHERRY.RIO.COM PRO CHERRY.BRAVO.NET
Observation:
1) each entry has 2 aliases ;
2) "nslookup CHERRY.RIO.COM "
2a) will return the correct IP address IF I run this nslookup on the server
2b) will say "non-exist domain" on my PC
3) "nslookup CHERRY.BRAVO.NET"
3a) will say "non-exist domain" IF I run nslookup on the server
3b) will give the correct IP address on my PC
4) WHY SID (here is PRD) gets into the hosts file? Would it cause some issues?
Thank you for help.
Hi,
The nslookup is trying to resolve the address via the DNS. If you are not using a DNS, you cannot resolve this hostname via your local machine.. In order to do that, you should add the entry to your local hosts file.
I don't think there is any harm in using aliasses in that way, but it looks rather strange though..
Ask your system administrator why the setup of the hosts file is like this. He is responsible for this..
Kind regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.