You are here

Hosts

5 posts / 0 new
Last post
Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
Hosts

Hi,

I would know how is better manage the hosts file. I have to add a line and the hosts file could change in time (so I can't backup the file and substitute every times).

Is there a specific command for add (and automatic remove) the line each time?

Thanks

demon.devin
demon.devin's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2007-08-02 09:04
Use HostsMan

Here's a portable build I made of the application HostsMan which helps you manage the hosts file. You can use this to backup and restore the hosts file at your will.

https://github.com/demondevin/HostsManPortable

daemon.devin

rdd
rdd's picture
Offline
Last seen: 4 days 6 hours ago
Translator
Joined: 2013-03-22 06:59
Dear demon.devin

Actually if you don't know your build is a FORK, so please don't offer it as your job and please respect the other authors.
The original is here: https://portableapps.com/node/56192 and it is still alive

Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
Thanks for the answer, but I

Thanks for the answer, but I'm a little confused...

1) You said: "You can use this to backup and restore the hosts file". This is dangerous. If I open another application that use hosts, meanwhile the portable is running, the other application crash...

2) I don't understand your code (sorry I'm a newbie). Where is your copy of hosts file? Where you replace it? Or you suggest me to use Hostsman to manually menage the hosts file?

thanks again.

demon.devin
demon.devin's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2007-08-02 09:04
Yes.

Correct. I'm merely giving you a means to manage your hosts file using the HostsMan program.

It's the one I use.

daemon.devin

Log in or register to post comments