• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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