The hosts file, used to map hostnames to IP addresses. This tag is for questions relating to usage of this file, including reading and modifying its contents to change which IP a hostname is mapped to.

learn more… | top users | synonyms

0
votes
2answers
100 views

Keyboard Maestro: How to write to /etc/hosts file

So I have been using an app called Self Control to block certain sites globally on my machine so I'm not distracted when I work. The method this program uses is edit your /etc/hosts file and redirect ...
0
votes
1answer
163 views

Why is there a hosts.equiv file in my /etc folder?

I'm running OS 10.11.1 on my Macbook Pro. I should also preface my question with the admission that my knowledge of the Mac OS is practically zero. I was looking at (not editing) the hosts file in ...
0
votes
1answer
625 views

How to edit hosts with TextEdit on Yosemite?

This line used to work sudo -b "/Applications/Textedit.app/Contents/MacOS/TextEdit" /etc/hosts But on Yosemite, it does not work anymore.
0
votes
1answer
312 views

Ping respects hosts overrides - but browsers don't, in spite of DNS cache flushes

I have a baffling problem. Browsers on my system (10.10.3 Yosemite) don't respect overrides included in my hosts file. This includes Chrome, Safari, and Firefox. I have tried rebooting, clearing ...
1
vote
0answers
62 views

OSX etc/hosts not blocking one particular site

I've used etc/hosts to block a lot of sites without issue, however I'm trying to add in filterbypass.me to the list but it won't work. I've tried adding: filterbypass.me as well as all the ...
1
vote
0answers
73 views

How do I change the hostname resolution sequence in OSX?

I am a new Mac user with lots of Linux/UNIX experience. My MACBook gets its IP using DHCP. The OSX version involved in my question is 10.10.3. I am having a bit of a problem figuring out how to do ...
1
vote
0answers
58 views

Weird local domain behaviour

I just clean installed mavericks on my mac and local domains i use for web development still work. Surely clean install wipes the host file, so how is this possible? Its not really a problem, i am ...
1
vote
0answers
153 views

macbook pro hosts file not working correctly

I am trying to set up a production server ahead of the actual dns switch. I have edited my hosts file on my macbook pro 10.8.2. I can pull up the index page but none of the style sheets are pulled ...
0
votes
0answers
10 views

Q: Way to limit (not block) frequency of certain connections?

Third party software is okay, although I've tried things like Little Snitch, and the closest feature they have is the ability to create "temporary rules" (i.e. rules that allow/disallow specified ...
0
votes
0answers
480 views

iOs Simulator ignoring Hosts file

I'm actually working on a website development and I configured all the needed hostname on my /etc/hosts files. Actually in our office we use an internal DNS for the QA servers and we override ...
0
votes
0answers
917 views

Apache local domain not resolving [hosts are being ignored]

I'm having issues getting a local domain to resolve. In chrome when trying to load http://dashboard.example.local I get the following error code: DNS_PROBE_FINISHED_NXDOMAIN But it's the typical ...
0
votes
0answers
138 views

Something keeps directing sub domains back to my own local host 127.0.0.1

I run mamp pro locally for web development and for each site I have internal maps for: domain.com = remote dev.domain.com = remote domain.dev = local I expect domain.dev is handled by mamp on my ...