1
vote
1answer
50 views

Difference between DNS and /etc/hosts in name resolving during an HTTPS request

My question is: what is the difference between DNS and the static resolution method based on /etc/hosts in name resolving during an HTTPS connection? In order to connect to a site using https the ...
0
votes
2answers
25 views

How to connect a domain name to a host?

I have register a domain on internet like domain.com. I have a server on internet which have installed bind9 service on it. I have enter my name server on DNS tools on my provider domain name manager ...
0
votes
1answer
86 views

automatically add entries to hosts file

I have a hosts file on my dropbox in which I create shortcuts to all kinds of ip's that I use often (server dev is added as d, stackoverflow is added as so and so on). Over time I have built quite a ...
0
votes
1answer
97 views

Why there is no use changing /etc/hosts

Here are the commands: [17:31:13 root etc]# cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 127.0.0.2 myweb.com [17:31:25 root etc]# ping ...
1
vote
2answers
110 views

I can't connect to school server from within school network

At our school we have a server where we can access documents and similar. Accessing it is no problem if I connect to the network via VPN connection. But if I connect to the network via the WLAN of the ...
0
votes
0answers
41 views

Using Maverick, I modified my hosts file to deny access to facebook, doesn't work as intended [duplicate]

I modified both /etc/hosts and /private/etc/hosts here it is ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## ...
0
votes
2answers
98 views

How to configure and access both local and remote versions of same website/domain?

I am working on a client's website which is currently hosted on an external remote server. I downloaded a copy of the site to my local computer, which is running a 'LAMP stack' set up on Arch Linux, ...
0
votes
1answer
101 views

Change Hosts file based on connection - Windows

So I have a laptop. It connects to places wirelessly. Home, work and public. I want to change the host file based on the network I'm connected too. Realistically, in my situation, I should have 2 ...
0
votes
1answer
75 views

Virtual Private Server as Intranet host

Is it possible to use a Virtual Private Server to host an intranet and connect to it via the hosts file on your computer? Thanks in advance, Francis
1
vote
0answers
283 views

/etc/hosts Cannot point hostname to new ip

Under Linux, the /etc/hosts file can be used to override dns definitions, i.e. to point an hostname to a different ip. I need to test a new VPS. So I added a line in the /etc/hosts file: ...
-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 ...
0
votes
1answer
110 views

Split HOSTS file used by Microsoft TCP/IP for Windows

I have a file called hosts located at: %systemroot%\system32\drivers\etc I want to create two partial file of a single one. So that, I can add my entries each time to a new file without having ...
3
votes
1answer
935 views

Hostname resolution of Linux machines with static IP

I have couple of linux servers that I to assign static IPs to because I'm doing some CARPing and Vlans. The way my DNS server is set, it gets the hostnames dynamically from the nodes, as soon as ...
0
votes
1answer
37 views

Host File under MacOSX

I am trying to edit my host file to see how it works. But with no success. I enter this in my /etc/host file: 173.194.66.103 www.youtube.com And when I type 173.194.66.103 on the browser I get ...
-1
votes
2answers
829 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
1answer
697 views

Are asterisks in /etc/hosts supposed to have any effect?

I have something like this in /etc/hosts: 192.168.0.1 example.com 192.168.0.1 *.example.com example.com is pinged to 192.168.0.1 as expected but pinging say sub.example.com outputs: ...
0
votes
1answer
273 views

Mac OSX localhost does not resolve

Trying to access localhost no longer works on my new Macbook air. It used to work just fine on my old Macbook Pro which was also running Mountain Lion. I have tried most suggestions found in other ...
2
votes
0answers
232 views

What is a dynamic way to connect to a virtual machine's webserver from its host machine? [closed]

As a web developer, what is the most efficient (automated) way to connect to a virtual machine (VM) running a development webserver from its host machine (the machine running the VM) when you do not ...
0
votes
2answers
942 views

DNS resolves without adding the host IP and name to etc/ hosts file

Is there any way to resolves host-name without added to hosts file? In order to access internal site in my company I have to add the host-name and IP in the .../etc/hosts file. Is there any way to ...
1
vote
1answer
162 views

Chrome cannot find the host entry for website

When I try to load a website, I get the following error in Chrome, Chrome could not find img.mzsites.com But on another computer, the site has no problems loading. I have tried ipconfig /flushdns, ...
5
votes
1answer
734 views

How to list all DNS names pointing to an IP?

I know – for example – that there are two DNS names for an IP. However nslookup ip only returns one record. How do I get all the records for an IP?
1
vote
3answers
1k views

host(1) command only uses first nameserver?

According to the man page, host ought to query "the server or servers listed in /etc/resolv.conf," but it only uses the first entry in that file: thefourthtower:$cat /etc/resolv.conf nameserver ...
1
vote
1answer
239 views

Fixing DNS on Ubuntu server

I've got a server that is currently running as servername, but I need it to be servername.domain.com (the IP already resolves to servername.domain.com), and I currently have: 0.0.0.0 ...
0
votes
2answers
3k views

How do I access internal network virtual hosts in Apache?

This might be a stupid question but I'm tired and can't find a solution. I currently have an Apache Web Server running on Ubuntu 10.4 and I use a DynDNS service to make them accessible to the ...
306
votes
13answers
189k views

How to clear/flush the DNS cache in Google Chrome?

As you probably know Google Chrome has its own internal DNS cache. Is there a way to clear it without having to wait for the time out or close the browser?
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 ...
0
votes
1answer
180 views

Where to get the global /etc/hosts file with all domains?

It can be useful to quickly look up domain name of IP and find neighbour domains served by the same IP, also to find definitely busy (and probably spare) domain names. Also it's value will jump high ...
5
votes
5answers
5k views

HOSTS File Edit in Windows 7 Not Effective - Pinging URL Still Shows Original IP Address

I've edited my HOSTS file on my Windows 7 Ultimate PC to re-route a couple of URLs so that they point to 127.0.0.1, but after saving the file (and re-opening to verify the changes were written) and ...
4
votes
3answers
3k views

How to alias a hostname?

Is it possible to keep a network alias - without specifying the IP address in the hosts file? For instance, I have abcd.efgh.com but want abcd -> abcd.efgh.com so that ping and ssh work as they ...
0
votes
1answer
11k views

DNS Client Event 1012: Error reading local hosts file

My notebook boots extreme slowly and shows loads of the following error in the event log: Error reading local hosts file Source: DNS Client Events EventID: 1012 The computer is quite new, I kind ...
6
votes
3answers
2k views

Map localhost to IP address on Windows XP & Internet Explorer 7+?

I'm trying to map 'localhost' to an IP address elsewhere on the network, say '10.0.1.1' for example. I've tried editing my hosts file, changing the entry from: 127.0.0.1 localhost to 10.0.1.1 ...
5
votes
3answers
13k views

Windows 7 stopped using the 'hosts' file for DNS resolution

I am running Windows 7 Home Premium 64-bit. Starting today, I noticed that DNS resolution is not reading my %SYSTEMROOT%\System32\drivers\etc\hosts file. I say this because I added two new entries to ...
2
votes
2answers
3k views

Is there a way to 'include' a separate file in /etc/hosts?

Is there any way to 'include' another file within the /etc/hosts file? Particularly I want to include a non-protected (-rw-rw-rw) file so I can easily edit it in something like TextMate without having ...
6
votes
2answers
2k views

How can I route a domain to my box at home?

I currently own my own domain, and have been using dyndns.com's "custom DNS" to allow me to redirect 'example.com' to my website at home, which is on a dynamic IP. I've now switched over to a VPS ...
1
vote
1answer
2k views

Is the hosts file ignored in windows if DNS Client service is running?

I've seen a number of articles about how to edit the hosts file in Windows 7, but it's all about how to open notepad as administrator, not the actual behavior of the dns lookups afterward. I've read ...
3
votes
2answers
7k views

DNS lookup problems Mac OS X - but nslookup works!

I'm having DNS lookup problems on my internal network. I'm using an internal DNS server with the ip 192.168.1.254. If I use nslookup everything works like it should: hawk:~ user$ nslookup ...
1
vote
4answers
723 views

pings for unknown hosts ping 8.15.7.100

Running Ubuntu 9.04. I can ping hosts all day long but when I try to ping a host that doesn't exist, it instead sends pings to 8.15.7.100, which turns in to packet loss, but I'd prefer it if it told ...
0
votes
1answer
3k views

How to redirect a domain to another one on my machine only?

I want all requests from my machine to example.com be redirected to example.com.edgesuite.net I tried adding the following line to the hosts file both on Windows and Linux ...
0
votes
3answers
879 views

How did I manage to mangle my Mac OS X hosts?

A while ago I set reddit.com to 127.0.0.1 in my hosts, because it was way too much of a time sink. I don't remember exactly how I set it - I know I had some trouble with it and tried a few different ...
2
votes
3answers
15k views

How do I get IE to use my hosts file when using a proxy .pac file?

I have the following line in C:\WINDOWS\system32\drivers\etc\hosts: 192.168.12.1 myapp.local When I open up a command prompt and type "ping myapp.local", I get a response from 192.168.12.1. When ...