New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 22, 2016 12:39PM

1 - Windows version: Windows 10, 64-Bit
2 - Version WampServer: 3.0.4, 64-Bit
3 - Apache Version: apache2.4.18
4 - PHP Version: php5.6.19
5 - MySQL Version: mysql5.7.11
6 - Wamp Symbol is green.

Hello,
I have problems getting a new virtual host running. I had a look at other threads, the troubleshooting tips and the read before you ask section but could not find an answer.

To create a new VH I followed the steps in: THE NEED for VIRTUAL HOSTS
I added to apache VH:
<VirtualHost *:80>
	ServerName connectingdots
	DocumentRoot "c:/wamp64/www/connecting dots"
	<Directory  "c:/wamp64/www/connecting dots/">
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
I added to Windwos Host:
127.0.0.1 connectingdots
and resetted the dnscache.

The "include VH" line in the httpd conf file was already uncommented.
The Syntax is OK.

When I now try to access the new virtual host with "connectingdots/" I get the message:
"This site can’t be reached

connectingdots’s server DNS address could not be found."

I neither get a respond when I try to ping the site.

Can you help me out? What am I missing?



Edited 1 time(s). Last edit at 08/22/2016 03:29PM by RiggsFolly.

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 22, 2016 12:55PM

Quote

I added to Windwos Host:
127.0.0.1 connectingdots
and resetted the dnscache.

Try also adding a domain to the IPV6 network like this in your HOSTS file

127.0.0.1 connectingdots
::1 connectingdots

Also amend the folder name so it does not have a space in it.


<Directory "c:/wamp64/www/connectingdots/">

And of course change the actual folder name as well.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 2 time(s). Last edit at 08/22/2016 03:29PM by RiggsFolly.

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 22, 2016 01:36PM

Hello RiggsFolly,

thank you for the fast answer.

I did what you suggested, resetted the dnscache and restarted the WAMP Services. I still get the same error message.

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 22, 2016 03:31PM

Are you running this by entering this in the browser address bar?


'http://connectingdots'

without the single quotes

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 22, 2016 03:39PM

Yes, I am typing this into the browser. It works with "localhost" but not with "connectingdots/" or "[connectingdots"];. In fact when I try "connectingdots" it always tries to search on google for the query.

It behaves the same way in chrome and IE. in Firefox I get forwarded to [connectingdots.com]

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 22, 2016 03:49PM

From a dos prompt can you

>ping /4 connectingdots

and

>ping connectingdots

?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 22, 2016 03:52PM

No, when trying to ping the host cannot be found either.

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 22, 2016 05:11PM

Then your HOSTS file is not as you say, or you have not reatarted the dnscache after changing it

restart dns cache by loading a command window using "Run as Administrator"


net stop dnscache
net start dnscache

Or if you are using WAMPServer3

- Right click wampmanager -> Tools -> Restart DNS

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 2 time(s). Last edit at 08/22/2016 05:12PM by RiggsFolly.

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 23, 2016 08:13AM

But this is my Host File:

There is an explanation text but that is commented.

# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 connectingdots

::1 localhost
::1 connectingdots

And I restarted the dnscache a couple of times now ..with WAMP and with the comman prompt. No changes.

I don't really know why. Should I try to assign another IP-Address to the new virtual host? Or does it need to be the same as "localhost"?

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 23, 2016 10:20AM

If you cannot ping the domains you have created in the HOSTS file then something is very wrong!

Try this to reset your TCP/IP stack

From the command prompt using `Run as Administrator"

>netsh int ip reset


Then as instructed in the output reboot the PC

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 23, 2016 10:30AM

Hmm, still does not work. But I can ping and access "localhost". Just the new virtual host is not responding.

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 23, 2016 12:51PM

What is happening now when you use connectingdots in the browser address bar

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 23, 2016 12:58PM

Still the same message:
Query: [connectingdots]


This site can’t be reached

connectingdots’s server DNS address could not be found.
Did you mean [connectingdots.com]?
Search Google for connecting dots
ERR_NAME_NOT_RESOLVED

Nothing has changed really.
I don't really understand what makes the difference between localhost and connectingdots. All the settings seem to be the same, except that localhost contains files. When I created the VH with Wamp I did not get any error message.

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 23, 2016 01:12PM

Are you sure that your firewall is not getting in the way?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 23, 2016 01:21PM

I deactivated the windows firefall and the antivirus which resulted in no changes.
However, 100 % sure I am not. Is there a way to figure that out? Also wouldnt the firewall be in the way of both virtual hosts? localhost as well?



Edited 1 time(s). Last edit at 08/23/2016 01:22PM by Hombretuca.

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 23, 2016 01:26PM

Probably, I am grasping at straws right now.

Remote debugging is not an easy job.

At the risk of making a fool of myself, do you have Team Viewer

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 23, 2016 02:08PM

Hello, now I do. I just sent you a PM.

Re: New Virtual Host DNS address could not be found
Posted by: RiggsFolly (Moderator)
Date: August 23, 2016 03:13PM

This turned out to be a corruption in the HOSTS file.

I re-created the HOST file rom scratch, stopped and restarted the dnscache.

And then all the domains mentioned in the hosts file became visible again.


Dont ask me how the hosts file got corrupted, but to be absolutely sure I re-created the HOST file using notepad.exe. Possibly you have a default set on your notepad++ that I did not notice that saved the HOSTS file as something other than a simple DOS ASCII text file.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: New Virtual Host DNS address could not be found
Posted by: Hombretuca (213.55.83.---)
Date: August 24, 2016 08:01AM

Everything works fine now. Thank you again for the quick help.

Sorry, only registered users may post in this forum.