The tag has no wiki summary.

learn more… | top users | synonyms

15
votes
10answers
32k views

Can I specify a port in an entry in my /etc/hosts on OS X? [duplicate]

Possible Duplicate: How to use DNS to redirect domain to specific port on my server I want to trick my browser into going to localhost:3000 instead of xyz.com. I went into /etc/hosts on OS ...
15
votes
2answers
12k views

hosts file ignored, how to troubleshoot?

The hosts file on Windows computers is used to bind certain name strings to specific IP addresses to override other name resolution methods. Often, one decides to change the hosts file, and discovers ...
13
votes
4answers
7k views

Per-user hosts file

Is there a way to define host aliases (like in /etc/hosts) on a per user basis, i.e. in a file /home/user/.hosts ? My primary objective is to easily share host aliases via rsync between the machines ...
12
votes
12answers
17k views

HOSTS file being ignored

My (Windows XP, Professional, v2002, SP3) workstation is completely ignoring my hosts file. Here is the code in my hosts file: 127.0.0.1 localhost 172.17.1.107 wiki But, when I open a ...
12
votes
3answers
20k views

Do entries in local 'hosts' files override both forward and reverse name lookups?

If I have the following entries in a hosts file: 192.168.100.1 bugs 192.168.100.2 daffy.example.com 192.168.100.3 elmer.example.com. Will IP->name resolution attempts by local utilies (I ...
11
votes
5answers
1k views

Renting a dedicated, but getting a VPS. How to detect? [duplicate]

When renting a dedicated server, how can one be certain than he/she is not getting a VPS or some other virtual machine variant instead of a true dedicated hardware box? Which checks can be run ...
9
votes
1answer
27k views

CNAME record/alias in windows hosts file?

Is it possible to enter some sort of CNAME record or alias in the windows hosts file (C:\Windows\System32\drivers\etc\hosts)? Basically I want to forward all requests made to host A to host B, ...
8
votes
2answers
4k views

hosts file seems to be ignored

I have almost fresh Ubuntu desktop box. OS was installed two weeks ago and updated from karmic repositories. Last week I had no problems with DNS. But this week something had changed. I'm not sure ...
8
votes
5answers
39k views

How to have Windows Server DNS use hosts file to resolve specific host names

[NOTE: The solution of this question is perfect, by something stray away from what the title indicates.] I'm facing a small problem with Windows Server 2003 DNS service. In my corporation, I'm ...
8
votes
2answers
8k views

/etc/hosts , /etc/sysconfig/network and hostname?

I need to do the hostname changes on a centos server which will serve www.myserver.com What do I need to do in /etc/hosts, /etc/sysconfig/network and with the hostname command? In ...
7
votes
1answer
12k views

“My unqualified host name (foo.bar) unknown” Problem

When trying to start sendmail or send a mail using a wordpress plugin, this error shows up in the maillog: "My unqualified host name (foo.bar) unknown; sleeping for retry" After Googling the best ...
6
votes
6answers
3k views

Can a long /etc/hosts file slow DNS lookup?

I'm facing a little question here. I have a long /etc/hosts file. (working in the web, so I'm hosting a lot of sites locally for developping). Let's says it is about 40, 50 lines long. All ...
6
votes
2answers
336 views

How do I setup a HOSTS file on different operating systems?

Please provide examples of how this can be setup on client and server versions of various operating systems.
6
votes
3answers
242 views

Same IP on many systems in different environments

I work in an environment where there are multiple locations, and in each locations we have the same IP addressing scheme, that is, we have many machines (one in each location) that share the same IP ...
5
votes
7answers
33k views

What can cause a DNS lookup to ignore a hosts file entry?

I'm having a DNS resolving issue that is affecting the performance of my locally hosted web site when browse it on my local machine. If I attach my network's DNS suffix to my local machine name when ...
5
votes
2answers
3k views

Assign multiple IPs to 1 Entry in hosts file

I have a web sever that connects to an internal database through a VPN. There are 2 IPs (primary and secondary) to the database from the web server. How can I setup my /etc/hosts file so that if the ...
4
votes
1answer
3k views

How can /etc/hosts be used to associate multiple domains with a single IP?

I have a single IP (81.174.66.48) and I would like to use /etc/hosts to associate multiple domains with that IP. Currently my hosts file looks like this: 81.174.66.48 nerto.it nerto I would like ...
4
votes
2answers
9k views

How is DNS lookup configured for OSX Mountain Lion?

If I cat my resolv.conf, I see this message: # # Mac OS X Notice # # This file is not used by the host name and address resolution # or the DNS query routing mechanisms used by most processes on # ...
4
votes
7answers
3k views

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 ...
3
votes
2answers
180 views

Is it good to define localhost as 127.0.0.1 in your hosts file?

I just came across a server that does not respond to things like ping localhost or mysql -h localhost - I believe this is because localhost is not defined in the hosts file. On just about every ...
3
votes
4answers
253 views

Windows Hosts File Location

I've got a general query regarding the location of the hosts file on Windows. It resides at this location: f:\windows\system32\drivers\etc\hosts My question is why? Could Microsoft have picked a ...
3
votes
3answers
247 views

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 ...
3
votes
3answers
2k views

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" ...
3
votes
1answer
5k views

What's required for a nameserver to be registered?

I'm trying to change nameservers for some of my domains at GoDaddy, but I occasionally run into "Nameserver not registered" problems, and then I'm not allowed to set the nameservers. Here are the ...
3
votes
3answers
14k views

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 ...
3
votes
2answers
75 views

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 ...
3
votes
1answer
366 views

Different hosts files per network on windows 7?

I'd like to be able to have seperate hosts files for different networks on windows 7. Basically, I have an internal IP address for my web server at home which I was thinking of putting in the hosts ...
3
votes
1answer
1k views

Virtual Host on G-Wan

I'm trying G-Wan v. 3.28 64 bits(on System: Ubuntu 12.04 64bits) to configure multiple domains on one IP address: listener 1: / gwan / 192.168.2.4_80 / #192.168.2.4 (root host) ...
3
votes
3answers
1k views

Is it true that hosts doesn't work in VPN?

C:\WINDOWS\system32\drivers\etc\hosts Seems it's no longer working after I switch on the VPN. Is it the case ,or just my own mistake?
3
votes
1answer
594 views

Squid ignoring hosts file (using SquidMan on Mac)

I installed SquidMan 3.1 on my Mac, and it works fine. But I really need it to redirect some of the traffic using my hosts file, and it seems to be ignoring it no matter where I put it. So far I've ...
3
votes
2answers
2k views

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 ...
2
votes
2answers
835 views

Hosts file vs DNS for data center management

What are the cons and pros of using hosts files (updated via Puppet for example) vs DNS for data center machines management? I'm looking to switch from the tedious IP scheme, but concerned about ...
2
votes
4answers
388 views

How do I allow my computer to refer to itself as any ip on 192.168.1.*?

I'm using a Mac OS X, and I'm trying to begin using VirtualHost functionality with Apache2. I've created and loaded up a hosts file that looks like this: 127.0.0.1 localhost 192.168.0.71 ...
2
votes
3answers
265 views

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. ...
2
votes
2answers
2k views

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 ...
2
votes
5answers
1k views

How to copy /etc/hosts to all my machines?

import os, sys, time servers = ['dev','admin','db1'] for s in servers: cmd = 'scp /etc/hosts regular_user@%s:/etc/hosts' % s print cmd os.system(cmd) I have written this script to copy ...
2
votes
1answer
169 views

Editing hosts file - will removing default settings cause trouble?

I'm running a CentOS 5.4 machine and had trouble getting sendmail to work. After a bunch of researching, I found out that I needed to change my servers FQDN. /etc/hosts had the following: ...
2
votes
1answer
2k views

Getting “unknown host” on hostname despite adding it to /etc/hosts

I have an Ubuntu server called crow: $ hostname crow But when I try to ping it (from itself), I get unknown host: $ ping crow ping: unknown host crow This is despite explicitly adding crow to ...
2
votes
2answers
3k views

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 ...
2
votes
1answer
5k views

Why can't I access an administrative share on my local machine?

I'm working on a Windows Server 2008 R2 (x64) VirtualBox image that I've set up as a CI/deployment testing environment. I've got VirtualBox set to use Internal-Only networking. I've set up hosts ...
2
votes
1answer
2k views

How to configure ldap to resolve host names?

I'm new to LDAP and I already configured accounts with LDAP so I can login on few computers with LDAP. Now I would like to add some host names to LDAP. In /etc/nsswitch.conf I changed: hosts: ...
2
votes
1answer
332 views

How to define multiple /etc/hosts entries with Puppet ENC?

I'm writing an External Node Classifier for my Puppet infrastructure, and I have the need to manipulate the /etc/hosts file on each node. The following (due to the duplicate key) is invalid YAML: --- ...
2
votes
1answer
124 views

Does not having FQDN in /etc/hosts cause any problems?

Just been looking through some servers and seen that the external ip is set up with the full and short names the wrong way round, e.g.: a.b.c.d myserver myserver.mycompany.org What sort of problems ...
2
votes
2answers
4k views

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 ...
2
votes
5answers
4k views

DHCP: Logging host declarations in log file

I am currently running ISC-DHCP server v3 on Ubuntu 8.04. What I am trying to do is log Who got what IP address when. Currently in the DHCP log file you can see the following: DHCPDISCOVER from ...
2
votes
1answer
73 views

Possible to load entries into hosts.deny from text file?

I have around 96 million IP addresses that I have collected and routinely validate to be VPN providers, proxies, etc. I want these blocked. Currently, I am including the list formatted like deny ip; ...
2
votes
1answer
1k views

How do I setup a custom host in Linux Mint?

I want to redirect a host to local machine, in windows you get a hosts file. Is there something like this in Linux?
2
votes
2answers
641 views

MySQL hosts cache: whitelist IP?

Is there a way to whitelist an IP address, so that max_connect_errors doesn't apply? The IP address for my office was blocked today due to too many connection errors to our new development MySQL ...
1
vote
2answers
79 views

Accessing a local machine with the hostname

I'd like to know if it's possible on a debian machine to automatically setup the hosts file of every other computer on the network. I'd like to be able to connect to the machine using a host name ...
1
vote
1answer
191 views

Set up multiple servers behind a NAT

I am currently trying to set up a network with both a secure webserver and an internal openvpn server. The webserver is running windows 2008 and the vpn network is running the Access server from ...