1
vote
3answers
50 views

What is writing to my hosts file?

I've got an odd situation where I'm emptying out my hosts file but when I ping something that used to have an entry in the hosts file the hosts file gets populated with the entries that I've just ...
0
votes
1answer
62 views

Sinkhole Planning

I am currently planning on setting a network sinkhole in my... network. I have a list of sites that I want to block, around 300k of them. What is the recommended way to do this. My computer is its own ...
1
vote
3answers
328 views

Easy way to view a website at a different IP than associated with hostname?

Some background — WordPress is really annoying in terms of what hostname you access it from, which makes creating testing environments rather painful (That is, I could create a subdomain for staging, ...
0
votes
0answers
82 views

Changing hosts file in Mac OS X does not take effect

I have tried to alter the hosts file adding my own entries to access sites that are being blocked by my ISP. When address the entries as follows 194.71.107.82 totallylegalsite.se After adding ...
0
votes
2answers
91 views

My Mac is not responding for this own IP, but it's ok for everything else

My Mac has the IP 192.168.1.123 and this network settings: IP: 192.168.1.123 Net Mask: 255.255.255.0 Router: 192.168.1.3 DNS: 208.67.222.222, 8.8.8.8 and apache answer correctly if I request ...
0
votes
1answer
77 views

How to make local DNS for pointing domain *.local to localhost?

I'm developing websites and I use xampp which is configured to automaticly point some type of domains to xampp main directory. For example: When I go to site1.local xampp is displaying page located at ...
1
vote
1answer
150 views

port number in acrylic dns proxy hosts file

I want to map a url as follows: 127.0.0.1:8080 *.devserver.com but windows host file neither support port number nor wildcards.So I am using acrylic dns proxy which supports wildcard.So following ...
0
votes
0answers
75 views

Hosts file keeps being ignored in Windows 7

Something keeps happening to my hosts file (%SystemRoot%\System32\drivers\etc) which means that Windows 7 ignores it. I use it as part of the process of creating Virtual Hosts for WAMP e.g. ...
1
vote
1answer
298 views

Windows 7 hosts file per application

Is it possible to use the hosts file (C:\Windows\System32\drivers\etc\hosts) on a "per-application" level? For example, I added this entry to the hosts file: #Override NAS 192.168.1.3 NAS Now NAS ...
0
votes
0answers
52 views

Custom Hosts file entry resolves in browser but not when pinged

I have a hosts entry to redirect app-dev/ to my application server. This resolves correctly in the browser but when I try to ping app-dev/ or ssh into it, neither can resolve the name then. The only ...
0
votes
1answer
79 views

Windows Hosts file Entry for Dev Server

I have an ip address that I don't want to assign to my domain just yet while it is being developed. However I would like a way for my clients to access the site other than typing in the address. I ...
0
votes
1answer
59 views

How does a machine determine its host name?

Below is the output of the hostname command. bash-3.2$ hostname server1 How does the hostname command determine the hostname to be server1? I guess it checks with the DNS server as this is ...
-1
votes
1answer
50 views

Add 'www' entry to /etc/hosts

Using Windows and JetBrains IDEA; and trying to serve a hard coded .zip file for scala, since IDEA's plugin is hard-coded to a non-existent location on scala-lang.org. So I've added: 127.0.0.1 ...
-1
votes
3answers
85 views

Can you surf to a site that has shared hosting with ipadress?

Is it possible to surf to a site that has shared hosting on the web hotel with the ipadress? Can you change the hosts file in any way?
2
votes
2answers
3k views

How do I redirect a domain to another domain locally?

My /etc/hosts file looks like this: 127.0.0.1 localhost 10.20.7.67 testsitealpha.dev othersite.dev testsitebeta.dev The first two work. The last one doesn't. Why not? How do I make it ...
0
votes
2answers
77 views

How to give a name to a site in test server in my LAN and make the testers able to login into that site [duplicate]

I am building a Facebook app. Facebook requires I access sites by name and not by some address like 192.168.1.200:7654. But the testers are accessing the site like this now, i.e., by using this ...
-1
votes
2answers
831 views

Point Multiple IP Addresses to a Single Host Name

Is it possible to have a single host name with multiple IP addresses? The hostname will be used to access a box in LAN with 192.168.x.y and from outside with IP w.x.y.z which is portforwarded to that ...
1
vote
2answers
102 views

Determine IP address of an alias not in HOSTS file?

We have an application that references the database connection via a common alias, let's say datatier, and futher that alias is generally stored in the HOSTS file. However, it's not in the HOSTS file ...
1
vote
4answers
1k views

Why do we need hosts file?

DNS resolves the domain names to IP address then why do we need hosts file in our machine with domain name -> IP address mapping? One disadvantage is that the ip address could change. Is there any ...
0
votes
3answers
534 views

Password protect /etc/hosts file

Can I create a different permission to access the hosts files so that the sudoer needs this extra key in order to access it? Also, would password protecting the file prevent OS from accessing it ...
3
votes
4answers
2k views

Is it a good idea to tweak the hosts file to speed up internet browsing?

Yesterday I came across a Firefox extension called Speed DNS which claims to speed up browsing by performing DNS lookups in advance. According to the author, it "does DNS pre-resolution of all the ...
3
votes
0answers
3k views

Windows 8. Hosts file doesn't work

I am using Windows 8 developer preview (x64) for testing purposes. I want to access some local network resource by DNS. So, I've added next line to my hosts file (%sindir%/system32/drivers/etc/hosts): ...
2
votes
1answer
349 views

Changed /etc/hosts entries, but they are still pointing to localhost

I've had two sites on my local host and have had mysite1.local and mysite2.local in my /etc/hosts file to pointing in my localhost. Now, I moved those sites into my homeserver (Ubuntu, Local network) ...
2
votes
3answers
741 views

ad blocking host file, shared to all computers on local network

I currently update my local hosts file with advertising server domain names and direct them to nowhere. Well, almost nowhere. I point them to 127.0.0.1 and I don't have a web service running so it is ...
4
votes
2answers
2k views

Is there a way to cause chrome/ie/firefox to reload the local “hosts” file without restarting the app?

In my occupation as a sysadmin, I often find times where I need to "game the system" by editing the host file. Doing so preempts any dns records for a domain name and allows me to make the ip ...
0
votes
1answer
866 views

VMware NAT doesn't seem to look at my hosts file

I'm running two VM's in VMware Workstation 7: My primary work VM (hostname main), runs Ubuntu 11.04. Uses VMnet0, which I configured to use NAT, and a Debian-based appliance (hostname server), also ...
3
votes
1answer
89 views

How can I view different internally hosted websites, set up as virtual hosts?

I have an old machine that I've converted into a web server. I'm wondering what the best way to make the websites viewable on the internal network, without using a proxy. I experimented with BIND, ...
0
votes
1answer
628 views

DatabasePath Registry Entry Not Working in Windows 7

I’ve set the HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DatabasePath registry entry in Windows XP and it works as expected; the system loads and uses the HOSTS file in the directory I’ve ...
1
vote
1answer
408 views

Automatically update ip-address in hosts file?

My development environment is Ubuntu guest OS inside VMWare Player with Windows 7 as the host OS. I edit the hosts file in windows to point http://dev.mydomain.com to the ip-address of my VM so that ...
9
votes
4answers
7k views

Bash: lookup an IP for a host name, including /etc/hosts in search

Ubuntu 10.10+ In my script I need to lookup an IP for a given host name. If that name is listed in /etc/hosts, then command should print IP from /etc/hosts, not from DNS server. What commands I ...
2
votes
1answer
754 views

can't override name resolution for firefox on Ubuntu

I need to override the name resolution for a given domain name for testing purposes in my browser (Firefox) on Ubuntu, so that when I write "www.agivendomain.org", it will point to a given IP that I ...
0
votes
2answers
5k views

Host file not working on Windows 7

Our ISP accidentally switched us from a static IP to DHCP (long story) and it might be another day or two before we get our static IP back. In the meantime I'm trying to just use a host file on my ...
1
vote
1answer
12k views

Adding localhost entry to Windows\System32\drivers\etc\hosts file with port number

I have set up a local site under IIS 7.5 under port 900. to access it I should type localhost:900 in the address bar. I'm a little bit familiar with the System32\Drivers\etc\hosts file and I know I ...
2
votes
2answers
9k views

Why is a reboot not required after changing HOSTS file content

I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and ...
1
vote
4answers
8k views

Why doesn't my HOSTS file redirect DNS in Windows 7?

I've modified the HOSTS file on my Windows 7 machine in exactly the same manner as I have in the past on my Vista and XP machines; however it has had no effect. How do you redirect URLs in Windows 7 ...
6
votes
4answers
12k views

Override DNS in Firefox

I'm looking for a way to override DNS entries in Firefox, for development/testing purposes. I know the normal way to do this is via the hosts file, but I cannot edit it since I don't have admin access ...
0
votes
5answers
2k views

Windows 7 etc/hosts file broken?

I have a local webserver running that I would like access as myserver.localhost, so I added an entry 127.0.0.1 myserver.localhost to C:\Windows\System32\drivers\etc\hosts. This worked fine. ...
2
votes
5answers
13k views

With Windows 7, why is an entry in the hosts file not working?

I updated some entries in the hosts file at C:\WINDOWS\System32\drivers\etc. As a test, I decided to make Google point to 127.0.0.1. # Additionally, comments (such as these) may be inserted on ...