Questions tagged [hosts]

/etc/hosts is the configuration file with locally known mappings between domain name and ip address.

/etc/hosts is the configuration file with locally known mappings between domain name and ip address. It can be used to define new or override existing mapping, bypassing the DNS that would normally resolve it.

271 questions
5
votes
8 answers

Using a Virtual Windows Machine to browse a local website: is it possible?

During our webdevelopment process, we often need to test the layout of our applications and websites in several browsers. Since running all of these browsers stand-alone is nearly imposible and applications such as IETester do not work flawlessly…
Aron Rotteveel
  • 8,449
  • 17
  • 53
  • 64
5
votes
2 answers

Squid proxy server ignoring hosts file :(

Using: Squid Cache version 2.7.STABLE3 for i686-pc-winnt ... Whatever I put into the hosts file, it seems to be ignoring it. here's my configuration :- ... hosts_file c:\windows\system32\drivers\etc\hosts ... And yep - i'm restarting squid each…
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
5
votes
2 answers

sendmail on ubuntu (9.10) machine "stopped" sending mail

I'm developing on my ubuntu 9.10 machine for the web (php). I'm using it sendmail for sending mails, and while developing on my local machine, I send local mails (to my user 'doron'). Up until a few days ago, I was able to send mails both from…
Doron
  • 543
  • 1
  • 6
  • 14
4
votes
1 answer

Use of alias in /etc/hosts or ssh_config

I'm have configured a bastion or (jump) box to access a virtual private network. #ssh_config Host bastion HostName 14.90.140.120 User me IdentityFile ~/.ssh/me ForwardAgent yes Host 10.1.* User me IdentityFile ~/.ssh/me ProxyCommand ssh bastion -W…
bearrito
  • 380
  • 3
  • 16
4
votes
4 answers

Windows 10 Name Resolution skipping/ignoring subnet

This is a rather complex problem, but I'll try to make it easy to understand: I have three subnets. We'll call them 10.10.0.0/22, 10.20.0.0/22 and 10.30.0.0/16. I have two AD domains, but I don't think that is significant. 10.30.0.x subnet is where…
C Hamm
  • 81
  • 1
  • 4
4
votes
2 answers

make dnsmasq ignore specific entries in /etc/hosts

I've set up a machine running dnsmasq, essentially serving its /etc/hosts file. However, there are specific entries which I want in that machine's /etc/hosts, but I don't want served. How can I make dnsmasq not serve them?
einpoklum
  • 1,652
  • 3
  • 21
  • 31
4
votes
3 answers

Howto use Apache virtualHost with etc/hosts

I'm trying to have http://www.mysite.com and http://test.mysite.com running on a production webserver, and now I'm doing some basic tests in local machine before transfering the datas on the production webserver. If possible I would like to use…
ling
  • 303
  • 1
  • 2
  • 13
4
votes
5 answers

Internet Explorer not bypassing proxy for local addresses

I've got a machine here that's running a website. It's only really a development machine but it has IIS on it for testing purposes. Problem is that when pages get loaded in internet explorer using the machines name, the request is going out to the…
Daniel Revell
  • 701
  • 3
  • 7
  • 11
4
votes
3 answers

How can I have a user specific hosts file

Is it possible to configure user specific hosts file instead of a common /etc/hosts. For example if user "user1" tries to get the name for the IP: "127.0.0.1", he gets "dev.user1" and if user "user2" tries to get the name for the same IP, he gets…
Supratik
  • 2,154
  • 10
  • 51
  • 66
4
votes
3 answers

Alternate to /etc/hosts

We have a server on which we host private services. These services can also be access from rest of the world but there is slight difference on application level based on from which IP request came. Applications run on subdomains like…
Shoaibi
  • 809
  • 1
  • 10
  • 28
3
votes
7 answers

Setting a custom /etc/hosts or resolver for one process only in Linux

On Linux, I want that a particular process should resolve host "xyz.com" to IP "10.1.2.3". That's easy: just add a line to /etc/hosts. However, I only want to do this for one process; I want all other processes to resolve "xyz.com" to the DNS. Is…
SRobertJames
  • 221
  • 4
  • 8
3
votes
1 answer

Is it possible to add a wildcard CNAME into dnsmasq?

I would like to let the DNS works in round robin way. So I have to put an entry into /etc/hosts. However, this does not allow wildcard domains. Is there any way that I can do this in dnsmasq? So I will get something like: *.test.example. …
Wang
  • 292
  • 1
  • 2
  • 11
3
votes
3 answers

My DNS works! But, what is the simplest way to add something to it?

This is my current DNS example.com.db zone file. I followed a tutorial. It works, because when I point to this DNS from another server via resolve.conf, it will actually forward me to the right IP when I do "ping example.com". ; ; BIND data file…
Alex
  • 8,471
  • 26
  • 75
  • 99
3
votes
6 answers

Use Windows Hosts File To Redirect External Url to Subdomain?

I'm going to just post this question and I'll edit it if the community determines it needs elaboration or clarification. The Issue I got what I thought was a brilliant idea today. I shop Amazon.com a lot. Amazon offers a program where a portion of…
3
votes
3 answers

Redhat doesn't set my desired hostname on reboot

I have a redhat (EL5) server that I need to change the hostname on. I'm trying to put it back into a known state to help with server provisioning activities. As part of changing the hostname, I'm updating /etc/sysconfig/network and /etc/hosts. I…
tomdee
1 2
3
18 19