gasmask icon indicating copy to clipboard operation
gasmask copied to clipboard

not correct hosts file

Open MeonValleyWeb opened this issue 10 years ago • 4 comments

I love gas mask but its not showing the correct hosts file in /private/etc/hosts which is what Vagrant hosts updater uses. How do i get it to the correct hosts file?

MeonValleyWeb avatar Aug 26 '15 11:08 MeonValleyWeb

@andrew40

'hosts' should be '/etc/hosts' on OS X for 10.9+ I believe. If you're on an older OS, you might have to look for some vagrant hosts update config to adjust that, as that plug has been sitting for 2 years :grimacing:

Or consider something like https://github.com/smdahlen/vagrant-hostmanager

billcolumbia avatar Aug 29 '15 16:08 billcolumbia

I'm on the latest OSX 10.10.5 and Vagrant 1.7.4.

But on editing the hosts file for the Bagrant hosts updater it points to nano /private/etc/hosts which gasmask is obviously not picking up.

Not sure why vagrant is using that path as it seems to be consistent.

MeonValleyWeb avatar Aug 29 '15 21:08 MeonValleyWeb

Just to clarify. /etc has always been just a symbolic link to /private/etc on Mac OS X.

If you type "ls -al /etc" in a Terminal window in any version of Mac OS X (or OS X) you'll get something like...

lrwxr-xr-x@ 1 root  wheel  11  9 Oct  2014 /etc -> private/etc

So you can use /etc/hosts and /private/etc/hosts interchangeably. They're the same file.

alistairmcmillan avatar Sep 16 '15 12:09 alistairmcmillan

Did this get straightened out @andrew40 ?

trevershick avatar Dec 01 '15 13:12 trevershick