• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

ping modify domains

Félix1

New Pleskian
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 :

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
--> real domain : all is OK.

Code:
# ping tdr1bgyseg5e.com
PING tdr1bgyseg5e.com.com (54.201.82.69) 56(84) bytes of data.
--> this domain doesn't exist, the domain "tdr1bgyseg5e.com.com" is tested... why ?

Code:
# ping tdr1bgyseg5e.test
PING tdr1bgyseg5e.test.com (69.172.200.109) 56(84) bytes of data.
--> this domain doesn't exist, the domain "tdr1bgyseg5e.test.com" is tested... why ?

Code:
# ping tdr1bgyseg5e.fr
ping: unknown host tdr1bgyseg5e.fr
--> 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.

Code:
# ping tdr1bgyseg5e.net
ping: unknown host tdr1bgyseg5e.net
--> 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
 
Hello Felix,

Normaly you should end a Domain Name with a dot, if you don't do this your resolver will try to attach a search Domain from you network config (for example from DHCP)

Your example with tdr1bgyseg5e.com should be written as tdr1bgyseg5e.com.

To find out the reason is set the search domain, you can use a static IP and set a different DNS Server and than you should not get a search domain. You should check you /etc/network/interfaces config for a search-domain parameter:

Code:
#/etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8
fns-search myrealdomain.com

There is also a suggested solution on the URL below:

http://serverfault.com/questions/584864/debian-resolver-adds-domain-and-i-dont-want-that
 
Hello,

Thank you very much for your answer! It didn't know about the dot at the end of the domain name.
I have also read the post you have linked, and the solutions worked also for me!
 
Back
Top