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

2
votes
1answer
22 views

Hosts file being reset after every reboot

My /private/etc/hosts file is being reset after every reboot. I can make my changes, save the file, and it will work. Right up until I reboot my Mac. Has anyone found a work around for this or a way ...
0
votes
1answer
54 views

What happens if I remove the localhost address from /etc/hosts

I have looked at the hosts file before but never thought of this. The hosts file overrides the DNS addresses so it can be used to forward sites or to block them. When looking at the file, the default ...
1
vote
0answers
22 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 ...
0
votes
1answer
72 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 ...
0
votes
0answers
23 views

Trouble accessing ftp through internal network

I am currently running OS X Server 4. I have multiple websites (virtual hosts) set up with it. Lets call them domain1.com and domain2.com. Internally, they are both being run off of the same IP. ...
4
votes
1answer
166 views

What are these google host entries that keep showing up automatically in my etc/hosts file?

I went to edit my /etc/hosts file and found a bunch of entries for google urls that I never put there. When I try to delete it, it just comes back. I tried searching google for it but to no avail. ...
2
votes
2answers
172 views

Mac OS X Mavericks DNS name lookup order change?

I noticed Mavericks prefers the DNS server to /etc/hosts (scutil --dns). There used to be a good 'ol "order hosts,bind". Is there anything equivalent for Mavericks so my hosts file is consulted before ...
0
votes
0answers
41 views

Test a local site with Safari (Mavericks)

I installed nginx+php on mavericks and it works. I want to test local projects using the .dev extension (exp.: myproject.dev) instead of using the subfolder syntax (exp.: localhost/myproject/) I ...
1
vote
1answer
195 views

Multiple .local hostname on one computer

Is possible setup multiple .local hostname on one physical computer? Background: home network (behind the DSL/NAT router) (192.168.1.*) have a mac-mini, called as "tango.local". (set in the ...
1
vote
1answer
106 views

I Would Like To Host an HTML Website Without Using Server.app

I am somewhat a novice when it comes to the Apache web server. I currently host Ruby on Rails applications on my Mac Mini Server (Mavericks) using Phusion Passenger. I know that some of the config ...
0
votes
0answers
79 views

No hosts file on iPod ios 6.1.6

I just restored (with iTunes) and jailbroke my iPod touch 4 on iOS 6.1.6 (with Redsn0w) and there is no hosts file. In the /etc folder, I'm almost positive there is supposed to be a "hosts" and a ...
0
votes
5answers
1k views

why cannot I edit my `hosts` file?

I'm trying to edit my hosts file, because doing ssh <some host in hosts> fails to translate to ip. according to the Finder UI it is found under: however when trying to run cat hosts from the ...
0
votes
0answers
42 views

itunesconnect.com redirection using host file

I've been pretty annoyed by this website called itunesconnect.com. It appears the real one as some of you may know is itunesconnect.apple.com. So I go into terminal and go: sudo nano ...
1
vote
3answers
2k views

How to edit the hosts to block IP address?

I know how to block certain website, like if I want to block google I can use this line in the host 0.0.0.0 www.google.com.hk www.google.com.hk But my question is how can I block certain IP ...
0
votes
0answers
277 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
551 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 ...
1
vote
1answer
149 views

Getting home.dev to resolve to 127.0.0.1

In my hosts file I have: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 ...
5
votes
4answers
17k views

problem accessing localhost on Mac OS X Mavericks…it was working fine until I rebooted today

I am perplexed about the problem I am having and would really appreciate help resolving it. I have an iMac running Mac OS X Mavericks 10.9.2 I have set up my apache to serve documents from the ...
1
vote
1answer
376 views

OS X Server 3.0 - DNS & Server Names

I have two Mac Mini's running Mavericks Server. The hostnames for them are as follows: macsvr01.mydomain.com macsvr02.mydomain.com I want to be able to access macsvr02 by going to ...
2
votes
1answer
396 views

Adding hosts entry to iOS in absence of DNS

I am working with an application where my iPhone needs to see my laptop on the network under its host name and not the IP address because the SSL certificate works with the name only. At the office, ...
1
vote
1answer
4k views

osx hosts file not working

my hosts file looks like this it should open facebook if you try to open google 173.252.110.27 google.com ## # Host Database # # localhost is used to configure the loopback interface # when the ...
0
votes
2answers
3k views

How to redirect out going traffic to an IP address to another host name?

How can I redirect an IP say 203.130.48.8-bj-cnc or 203.130.48.8 to Google.com in host file (or other places)? It looks like host file doesn't redirect an ip address (only the domain names).
1
vote
0answers
19 views

How can I send an email from within iCloud.com using a different email address? [duplicate]

I have my own private domain hosting solution with email, for example, test@test.com. When I am using the iCloud.com website from my browser, let's say for creating a spreadsheet, I will want to shed ...
0
votes
1answer
883 views

What is localhost.pharos from Netstat?

Over past week, netstat reflects an established connection to localhost.pharos. Googled Pharos and it's a software which enables printing services at Universities/Enterprises. Any ideas why ...
5
votes
4answers
6k views

How to edit the /etc/hosts file?

When I open the file with TextEdit (I don't want (truly, I am not able) to use vim), it is seen as "locked", even if I modify the permissions of the file via the "Get Info" window. How can I modify ...
3
votes
2answers
222 views

when is the /etc/hosts file loaded?

I'm trying to configure some virtual hosts and I'm quite confused as to when this file is loaded. At what point is /private/etc/hosts loaded? When logging in? At every DNS call? When Mac OS restarts? ...
1
vote
1answer
116 views

Admin in Terminal, logged on Family's session

I have a weird problem. I'm trying to connect on my VPN with Mac 10.7.5 (Java 7 U45, Citrix Receiver 11.8) but when I do, JSam is not able to write in Hosts file. So my Mac session is called "Family" ...
4
votes
1answer
2k views

Chrome slow when loading local virtual host

I'm developing a local website with MAMP. I've configured a virtual host (hosts files, and apache vhosts). /etc/hosts file: 127.0.0.1 domain.com MAMP Vhosts config <VirtualHost *:80> ...
1
vote
0answers
52 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 ...
2
votes
1answer
1k views

Can entry duplicates (or multiples) in etc/hosts do any damage?

Can entry duplicates in etc/hosts do any damage? For example: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ...
7
votes
3answers
15k views

Cannot access localhost after upgrade to Mavericks but can access 127.0.0.1

I ran across this question, but it wasn't resolved (and it hasn't been touched in a while). I'm not sure if my issue is the same, but I don't have enough reputation here to comment on that question. ...
2
votes
2answers
2k views

Sites blocked in /etc/hosts often doesn't work

I'm using a Macbook Pro as a productivity/work machine and have Facebook and reddit blocked with /etc/hosts: ## # Host Database # # localhost is used to configure the loopback interface # when the ...
0
votes
1answer
196 views

OS X 10.8 hosts file completely ignoring new entries. Help!

I have a hosts file that I've added a couple URLs to a while back and it's been working fine, but any new entries now get completely ignored. I've added these to test it... google.com ...
0
votes
1answer
172 views

editing /private/etc/hosts

I just added my no-ip domain to /private/etc/hosts under a shorter alias: alias host.no-ip.biz I tried the following on the shell: dscacheutil -flushcache but it still says: ssh: Could ...
4
votes
3answers
429 views

How do apps get loaded on iOS for free

I have Googled over and over and cannot get an answer to a fundamental question I have. To get an app downloaded onto an iPhone, do I need to open an apple account of some sort and pay for the account ...
0
votes
0answers
124 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 ...
2
votes
2answers
602 views

Shared Internet apply /etc/hosts

How do I make those who connect to me via a shared internet connection use my /etc/hosts file? I was thinking something along the lines of creating a DNS server, but I was hoping maybe there is a ...
1
vote
0answers
150 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 ...
1
vote
1answer
263 views

10.8.2 DNS in hosts lookup slow

As a web developer, I need to make a domain redirect to localhost. I modified the hosts file to do that. But I don't know why it always took so long to do the lookup. How can I solve this?
3
votes
1answer
4k views

How to stop Windows firewall from blocking Bonjour hostname resolution

I have Bonjour installed on my Windows 7 PC, and the installer appears to have poked all the necessary holes in the Windows firewall. However, I can't ping windows-pc.local from my Mac. If I ...
1
vote
2answers
895 views

Cannot use ssh/ping domain name after connecting to openvpn

I've got two macs, both on the same network, both using Tunnelblick to connect to vpn. Both with same settings. Both connect fine and both have the same settings for DNS and search domain applied ...
89
votes
8answers
191k views

How to change computer name so terminal displays it in Mac OS X Mountain Lion? [duplicate]

When I setup my computer I named it "Scott's MacBook Pro". And so when I go to System preferences->Sharing, it says Scott's MacBook Pro there as my computer name. However, opening up a terminal gives ...
2
votes
4answers
2k views

How make changing to the /etc/hosts file take effect?

I added some lines to my /etc/hosts file to resolve a private hostname, but every time after rebooting, the lines I added get lost. Should there be any setting options to make these changes take ...
3
votes
2answers
2k views

Unable to save hosts file after adding websites to block.

I'm unable to save hosts file after adding websites to block,as well as unable to flush cache. I am not a techie, just researching on the web, and trying to follow directions for terminal and Text ...
8
votes
1answer
2k views

User specific hosts file in Mac OS X

I'm working on an OS X 10.6.8 machine, for which I do not have superuser privileges. I'd like to imitate the effect of adding an entry to the hosts file, i.e. have a certain domain resolve to a ...
2
votes
2answers
653 views

Changing permissions on /etc/hosts

I frequently (at least once per day) need to edit my hosts file, and typing my password every time is getting annoying. I know how to change the permissions to allow myself to write to the file, and ...
0
votes
3answers
2k views

Apache works, 127.0.0.1 is accessible, but http://localhost/ is not

In 10.7.2 update Apple roll out new bug, - hosts bug. This crashed broken hosts. I had tried install and configure dnsmasq, reconfig /etc/hosts/, and after this manipulations http://localhost/ doesn't ...
3
votes
1answer
230 views

How set up a local domain such as local.test?

I'm web-developer and I need local domains. Before 10.7.2 update, I'm just fix /etc/hosts as I need, but new update crash this solution. How fix this new "feature"?
3
votes
2answers
2k views

Lion “hosts” File Bug

I have some serious problems with the hosts file on my Lion 10.7.2. My hosts file is like following; 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 27.0.0.1 ...
3
votes
2answers
681 views

Unable to revert changes to hosts file in OS X Lion

I edited the hosts file and added: 10.0.0.1 devsys.crossreader.net Later I commented out the entry: #10.0.0.1 devsys.crossreader.net When I ping or browse to devsys.crossreader.net the returning ...