Questions tagged [hosts]

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.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
102 views

Before update to High Sierra httpd-vhosts.conf is empty

I just upgraded from Sierra to High Sierra. Apparently everything works fine. But when testing my works in local (Web developments in PHP, etc) I see that none works. Checking and looking for where ...
2
votes
1answer
1k views

User specific host file

I would like to add a user specific host file on my Mac (El Capitan 10.11.5) to a users home directory and have this be checked in addition to /etc/hosts when resolving domain names. I found a ...
1
vote
0answers
22 views

MacOS prefer /etc/hosts over DNS

My Mac is running dual stack IPv4/IPv6 which works fine. In my /etc/hosts I have added a IPv4 pointer to my development VM like so: website.test 10.10.10.35 This works fine. But I noticed that some ...
1
vote
0answers
79 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 http/https/...
1
vote
0answers
2k 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 ...
1
vote
0answers
74 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
164 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
17 views

How to make Chrome look for local DNS

MacOS Version: 10.14.5 Chrome Version: 75.0.3770.100 I have entered an entry in my /etc/hosts like below ## # Custom hosts ## 127.0.0.1 jupyter.dev ::1 jupyter.dev My traceroute ...
0
votes
0answers
34 views

How can I make a process in macOS use a different hosts file without using a chroot jail?

Unlike Linux, we cannot use HOSTALIASES env var. I believe it is possible to make a process see a different hosts file if I put it in a chroot jail, but I don't want to have to do that for this ...
0
votes
0answers
672 views

How is iOS to host communication done with TCP to USB?

I am looking for a good primer on information about accessing the data streamed from iOS devices to a host via USB. I've found this is done through TCP, I think. But concrete info is what I'm looking ...
0
votes
0answers
239 views

editing DNS rules locally in macOS 10.12

When I develop web sites I like to have them run locally and responding to a more useful name than localhost/site. It used to be you could write rules in hosts pointing to 127.0.0.1. It would seem you ...
0
votes
0answers
48 views

how i can disable writing /etc/hosts file in MacOS

i got some problem, i want to disable [removing, deleting or writing a file] via administrator (sudo user) in MacOS. for example i want a create a some db of blocked websites without any web ...