Hello,
I have a strange problem when i want to contact a domain using "ping" or the function dns_get_record() of PHP : When the domain doesn't exist, the function adds automatically ".com" at the end of the domain before testing it.
Here are some examples :
--> real domain : all is OK.
--> this domain doesn't exist, the domain "tdr1bgyseg5e.com.com" is tested... why ?
--> this domain doesn't exist, the domain "tdr1bgyseg5e.test.com" is tested... why ?
--> this domain doesn't exist, but the comportment of the ping is good. It seems that the problem doesn't occurs with .fr domain extensions.
--> this domain doesn't exist, but the comportment of the ping is good. It seems that the problem doesn't occurs with .net domain extensions.
I have searched if there are bad configurations on my server or in my DNS, but i haven't found anything. Can you please help me to solve the problem ? Why ".com" is added sometimes ?
My server is an Ubuntu 12.04.4 LTS, running Plesk 12.5.30
Thank you
I have a strange problem when i want to contact a domain using "ping" or the function dns_get_record() of PHP : When the domain doesn't exist, the function adds automatically ".com" at the end of the domain before testing it.
Here are some examples :
Code:
# ping google.com
PING google.com (216.58.208.206) 56(84) bytes of data.
64 bytes from par10s21-in-f206.1e100.net (216.58.208.206): icmp_req=1 ttl=57 time=1.20 ms
Code:
# ping tdr1bgyseg5e.com
PING tdr1bgyseg5e.com.com (54.201.82.69) 56(84) bytes of data.
Code:
# ping tdr1bgyseg5e.test
PING tdr1bgyseg5e.test.com (69.172.200.109) 56(84) bytes of data.
Code:
# ping tdr1bgyseg5e.fr
ping: unknown host tdr1bgyseg5e.fr
Code:
# ping tdr1bgyseg5e.net
ping: unknown host tdr1bgyseg5e.net
I have searched if there are bad configurations on my server or in my DNS, but i haven't found anything. Can you please help me to solve the problem ? Why ".com" is added sometimes ?
My server is an Ubuntu 12.04.4 LTS, running Plesk 12.5.30
Thank you