Ping from another computer to a domain in my sever resolves all domains I've configured in Vhosts

Support for webhosts that use CentOS
Post Reply
oceanidas
Posts: 1
Joined: 2010/07/17 13:39:12

Ping from another computer to a domain in my sever resolves all domains I've configured in Vhosts

Post by oceanidas » 2010/07/17 14:00:33

Hi there,
I'm a newbie on severs and I recently contracted a vps without any control panel with Cent Os 5.5, but thanks to this forum and loads of manual I configured almost everything and already I move some domains to my server running Apache where i did the configurations for 3 domains in httpd.conf like the code at the end
, everything runs fine, but when I do a PING to any of the domain names in that server from another computer It resolve all the domains I have in that server.

I would like when I ping any of the domains I host in my server it resolves only that domain but not the others... Please help me, I've been trying to realize what I'm doing wrong or what I'm not doing at all but I stil can figure it out.

When I ping the domain1, domain2 or domain3 it shows liket this

[code]ping domain1
PING ping domain1 (ip.ip.ip.ip) 56(84) bytes of data.
64 bytes from domain1.net (93.189.94.149): icmp_seq=1 ttl=251 time=62.5 ms
64 bytes from domain2.es (93.189.94.149): icmp_seq=2 ttl=251 time=61.7 ms
64 bytes from domain3.es (93.189.94.149): icmp_seq=3 ttl=251 time=61.8 ms
[/code]


That is the code how it's configured in the httpd.conf file.


[code]NameVirtualHost *:80

<virtualhost *:80>
DocumentRoot /var/www/vhosts/domain1/public
ServerName domain1
<directory /var/www/vhosts/domain1/public>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</directory>
ErrorLog logs/domain1.net-error_log
CustomLog logs/domain1.net-access_log common
</virtualhost>


<virtualhost *:80>
DocumentRoot /var/www/vhosts/domain2/public
ServerName domain2.es
<directory /var/www/vhosts/domain2/public>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</directory>
ErrorLog logs/domain2.es-error_log
CustomLog logs/domain2.es-access_log common
</virtualhost>

<virtualhost *:80>
DocumentRoot /var/www/vhosts/domain3/public
ServerName domain3
<directory /var/www/vhosts/domain3/public>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</directory>
ErrorLog logs/domain3.es-error_log
CustomLog logs/domain1.es-access_log common
</virtualhost>[/code]

Thank you very much. Antonio

hansolo
Posts: 231
Joined: 2010/01/13 11:17:42
Location: SI

Ping from another computer to a domain in my sever resolves

Post by hansolo » 2010/08/26 20:45:33

Hello

I can see your IP 93.189.94.149 of your server hosts 3 domains (enter IP [url=http://www.domaintools.com/reverse-ip/]here[/url]) which is normal when using VHosts. All domains are on the same server, which has only one IP.

But when checking DNS records for that domains (you know the names) it shows errors (check names [url=http://www.intodns.com/]here[/url])
[code]Missing nameservers reported by parent:
FAIL: The following nameservers are listed at your nameservers as nameservers for your domain,
but are not listed at the parent nameservers (see RFC2181 5.4.1). You need to make sure that these nameservers are working.
If they are not working ok, you may have problems!
ns2.dns-raiz.net
ns1.dns-raiz.net[/code]

So the problem you have to resolve is with your DNS settings for that domains, not the settings on your server Apache.

Of course, the ping can return different IP's regarding of what you ping:
ex. 'PING www.google.com' will show you 74.125.39.147
'PING google.com' -> 74.125.39.105
'PING ns.google.com' -> 216.239.32.10
'PING mail.google.com' -> 74.125.39.19

... see the difference of the same domain name but different 'subdomain ?
This is all controlled in DNS record settings.

Post Reply

Return to “CentOS 5 - Webhosting Support”