The hosts file is reset
Posted by: madlight (113.90.239.---)
Date: April 25, 2018 01:13PM

Every time I restart wampserver3 it will reset the contents of the hosts file。
system: windows10 1709 wampserver3.1.3

Options: ReplyQuote
Re: The hosts file is reset
Posted by: RiggsFolly (Moderator)
Date: April 25, 2018 01:17PM

I dont think so.

I would look at your Firewall software or Virus Checker as they are the most likely culprits for this activity


When you say reset, can you say what the changes are that are being made.

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: The hosts file is reset
Posted by: madlight (113.90.239.---)
Date: April 25, 2018 01:25PM

This is my hosts content:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 api.com
::1 api.com


When I started wampserver it became like this:

#
127.0.0.1 localhost
::1 localhost

Options: ReplyQuote
Re: The hosts file is reset
Posted by: RiggsFolly (Moderator)
Date: April 25, 2018 01:48PM

You need to leave the localhost stuff in there and add your stuff to it, so host file should be

127.0.0.1 localhost
::1 localhost

127.0.0.1 api.com
::1 api.com

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: The hosts file is reset
Posted by: madlight (113.90.239.---)
Date: April 25, 2018 02:23PM

Thank you very much,it is working well now。

Options: ReplyQuote


Sorry, only registered users may post in this forum.