If I understood you correctly than try to do following:
Execute this command in terminal as root (on CentOS):
echo '192.168.136.1 www.gamesaint.com' >> /etc/hosts
Try to access your web site using this host name. If that works - I will give explanation why it does.
OK. Apparently it works for you. So, what is happening - you are using real hostname from Internet for internal purposes. When you try to access it from CentOS your browser performs DNS lookup procedure.
- It asks DNS server - what is IP address of the hostname www.gamesaint.com?
- And it receives answer from DNS server: The IP address of www.gamesaint.com is 208.73.210.210
- Now your browser connects to IP address 208.73.210.210 which is different from your local web server address.
In order to handle that we just instructed your CentOS that if it needs to communicate with www.gamesaint.com than it should use address 192.168.136.1
I hope it gives you good explanation.
Is DNS resolving works fine on your guest OS? – VL-80 – 2013-08-07T14:53:08.550
can't tell I am new to this stuff like protocols and vmware – UDB – 2013-08-07T15:59:21.617
OK. In your CentOS open terminal and execute 'cat /etc/resolv.conf'. After that execute 'nslookup alias_of_apache'. Post outputs of both commands here. – VL-80 – 2013-08-07T17:09:46.173
>Generated by NetworkManager
domain localdomain search localdomain nameserver 192.168.136.2 – UDB – 2013-08-07T17:22:50.737
;; connection timed out; trying next origin Server: 192.168.136.2 Address: 192.168.136.2#53
** server can't find alias_of_apache: NXDOMAIN – UDB – 2013-08-07T17:24:35.743
Did you substitute 'alias_of_apache' with your real alias which you are using to access it? If no - do so, and execute second command again. – VL-80 – 2013-08-07T17:41:17.873
Server: 192.168.136.2 Address: 192.168.136.2#53
Non-authoritative answer: Name: www.gamesaint.com Address: 208.73.211.167 – UDB – 2013-08-07T17:46:52.093
@Nikolay 208.73.211.167 is a domain on internet while mine(www.gamesaint.com) is just a local servername for Apache services i am using for my college project – UDB – 2013-08-07T18:10:50.153