Does the hosts file support IPv6 addresses?

T

Trent Tompkins

I am making a program that automatically adds and deletes lines to the Windows hosts file. So lets says you are working on example.com, and you have apache setup with a virtual host that runs example.com, you can click my script, and it will add:127.0.0.1 example.com to the hosts file, the runs ipconfig /flushdns.And when you run it again, it deletes the sites. You can send command line flags to always enable or always disable, but the default behavior is to toggle them, so you can quickly go from seeing the local version to seeing the live version.It starts by reading in the existing hosts f

Continue reading...
 

Similar threads

P
Replies
0
Views
32
Padmahasa B N
P
J
Replies
0
Views
67
JoeFromSd
J
B
Replies
0
Views
38
Brandon LeBlanc
B
A
Replies
0
Views
30
Adele Parsons
A
Back
Top Bottom