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

learn more… | top users | synonyms

19
votes
2answers
27k 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 # ...
0
votes
1answer
2k views

warning: /etc/hosts.allow, line xx: host name/name mismatch

I've whitelisted my own domains in /etc/hosts.allow ALL: localhost, .domain.tld plus all of my IP adresses. I also have about 4k lines in /etc/hosts.deny. Everything works but I do not understand ...
1
vote
2answers
184 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
669 views

Transparent Proxy or VPN that listens on all ports

I'd like traffic to be routed via a proxy or VPN based on a the client's hosts file (or DNS that is given to the client). This doesn't seem like a problem for http traffic on port 80 as a simple ...
1
vote
2answers
116 views

lamp - is this virtual host creation process correct?

I recently reinstalled ubuntu on my system and I cannot get virtual hosts to work properly. What I'm trying to accomplish is typing 'test' on my browser and pointing to my local machine on the ...
-2
votes
1answer
49 views

Connecting to Gest ip address usign host alias [closed]

I have RedHat OS running on VMWare Player. My host operating system is windows7. Network configuration i am using on my virtual machine is NAT. I have configured my Guest operating systems ...
1
vote
1answer
37 views

where is the configuration for https host Django+PHP

I am an app developer, with little web site development experience, now having to check some work on a virtual server, All seems to be working fine, but I cannot find where a configuration for a host ...
1
vote
1answer
4k views

Proper configuration of Virtual Hosts SSL

I have installed an SSL certificate on my Ubuntu EC2 instance and I need one of the websites hosted on this instance to be accessible via https. I have several websites hosted all on the same IP ...
1
vote
2answers
206 views

Is it possible to point to the subdomain of a site by changing the host file?

I am trying to point a URL to a particular IP address.But the IP belongs to the domain and I want it to point to a subdomain belonging to that domain.I am doing this by altering the hosts file in the ...
-4
votes
1answer
165 views

Hijack DNS on my local Ubuntu machine? [closed]

How can I hijack a DNS entry for an domain name on Linux (Ubuntu 12.04)? I am interested in creating a DNS CNAME alias for domain1.com to domain2.test.com. The problem is the applications uses 5 ...
1
vote
2answers
216 views

Hosts.deny blocks whm access?

I have my hosts.allow and hosts.deny set up as follows: Allow: sshd: (my static ip) vsftpd: (my static ip) Deny: ALL : ALL but this blocks all access to WHM and cPanel? What else do I need to ...
55
votes
9answers
107k 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 ...
3
votes
1answer
2k 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) ...
-1
votes
1answer
82 views

Virtual hosts in CentOS

I have a server with IP 1.2.3.4 and I want the domain www.something.com to load website from /var/www/html/something/ I've tried to configure them as follows: NameVirtualHost 1.2.3.4:80 ...
-4
votes
1answer
1k views

127.0.0.1:8080 works but localhost:8080 doesn't [closed]

This may be super easy so I apologize in advance but my strengths are in coding. Why can't I access my localhost at localhost:8080? 127.0.0.1:8080 - works 127.0.0.1:80 - doesn't work 127.0.0.1 - ...
1
vote
1answer
320 views

Got Permission denied with JAX-WS client on tomcat6 server

I have a strange behaviour with a java client that uses webservice stubs generated by wsimport. The client says sth about Got Permission denied: connect while opening stream from ...
-1
votes
2answers
506 views

Virtual hosts links to index instead of page?

I have set up my virtual hosts with xampp. I uncommented the vhosts line in the httpd.conf file and added the virtual hosts in the vhosts document. The files for the web pages are located in my ...
6
votes
2answers
15k 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 ...
2
votes
1answer
94 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; ...
1
vote
3answers
478 views

wget not working with domain on local machine

Basically - I have some PHP scripts that need to be run as cron jobs. Lets say the script needing to be run is: http://admin.somedomain.com/cron_jobs/get_stats If I run the script from the local ...
0
votes
1answer
3k views

CentOS 5.8 why does my /etc/hosts file mess up after a reboot?

I'm running CentOS 5.8 (it's the Citrix XVA appliance provided on the website) but having an issue where every time I restart the server, the /etc/hosts file loses the IP address of the server...for ...
1
vote
3answers
330 views

Is there public proxy that allows edit its hosts file?

I my deployment enviroment I use local Hosts file to change domains destination to another server I use for development. It works nice and it's easy to setup. But as always there is a catch. If our ...
1
vote
1answer
527 views

Linux (Ubuntu): Setting hostname on internal network

I've got an Ubuntu Linux server with a WiFi card. When I boot my computer apache web server starts and the /etc/hosts file lists which lists the following: $ cat /etc/hosts 127.0.0.1 localhost ...
1
vote
1answer
362 views

Apache log to one file for multiple domains with logrotate

I would like a solution to my problem where I have 100s of domains on an Apache server. I don't want a separate log file for each domain I want them to share a log file. This is easy enough if I don't ...
1
vote
3answers
3k views

hosts.allow and hosts.deny WHM Host Access Control - what if my IP changes?

I want to use WHM/Cpanel's Host Access Control interface to change some settings in hosts.allow and hosts.deny. I want to block all access to our SSH exept from the IP we have from our office. Daemon ...
1
vote
1answer
35 views

Apache Site Configuration Share Settings

For our WordPress development server, each developer has a subdomain to work on the site which point to the same server and database, but different folder locations. This allows us to see database ...
0
votes
1answer
340 views

Can /etc/hosts.deny/allow be overridden?

I have security measures put in place to keep unwanted users out of my server. I've changed the SSH port, disabled root login, have a software firewall to block portscans, and have entries in ...
0
votes
1answer
105 views

hosts file to create url alias [closed]

I'm using a Mac where I've located my webroot folder into a Dropbox sub folder. Everything works fine but I have a problem /Dropbox/webroot /Dropbox/webroot/site-one.com /Dropbox/webroot/site-two.com ...
0
votes
2answers
746 views

Configuring the hosts file to point to my server

I have a somewhat annoying problem in website development/deployment process; when I work locally on my server, the address of my program is localhost:8080/MYSERV/..., whereas when I deploy it, the ...
0
votes
1answer
4k views

Windows redirect by port? [duplicate]

Possible Duplicate: Forward Incoming Traffic with Windows hosts file? In Windows you can redirect traffic from a host by using the hosts file. C:\Windows\System32\drivers\etc\hosts ...
0
votes
1answer
654 views

Configure Apache Mass Virtual Hosts to different directories

Our server is running Apache on port 9000 (because IIS is at 80) and we have the following configuration (vhosts.conf) to access our sites: NameVirtualHost *:9000 UseCanonicalName Off ...
1
vote
3answers
987 views

User-based HTTP Host to IP redirection on a Windows Terminal Server

I've just setup a Windows 2008 R2 Terminal Server with IE9, it's intended to be used for testing. Unfortunately the web-bods tell me they ALL have a local apache on their machines and they've all ...
0
votes
1answer
412 views

Redirect Addresses to localhost by Pattern on Mac OS X

I'm not even 100% sure how to ask this question. The answer might be out there, but I can't find it. So I've set up virtual hosts for my Mac and I do all my development locally on my computer. I have ...
-3
votes
3answers
504 views

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

Is there any way to resolve hostnames 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 add ...
3
votes
1answer
949 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 ...
1
vote
0answers
221 views

Attempting to DNS resolve / relay an IPv6 address for a host

I have a network switch doing IPv6 DNS relay to a Linux box (3.0.4-gentoo #7). The packets (DNS request) are arriving fine at the Linux box. Where I'm stuck now is how to resolve those, either by ...
2
votes
1answer
3k views

Since when the linux host utility ignores /etc/hosts? [closed]

I was struggling trying to find out the reason why the linux host utility was ignoring my /etc/hosts file until I find the answer to my question here: hosts file seems to be ignored: With this ...
1
vote
0answers
78 views

HTTP Logging Proxies

I want to implement a proxy that records and replays requests made to specific hosts. So that I can stub out external service requests when testing an application. What is the best way to do this? ...
0
votes
1answer
572 views

How to get global ip for virtualbox guest os

I'm trying to setup ubuntu server in virtualbox. Host is Windows 7 x64 Guest is Ubuntu 11.10 x64 All I want to do is, to make this server accessible from internet. How can I do it? Please help.
1
vote
2answers
4k views

Cannot login to mysql after setting incorrect mysql privileges/host

On CentOS 5.x I used webmin panel and I was in mysql settings, I was trying to allow "root" to login from my home ip in addition to localhost. In the hosts list I had "any" or "localhost", I tried to ...
0
votes
2answers
146 views

Effects of mis-configured hosts file?

SSH and sudo were starting very slowly because /etc/hostname and /etc/hosts did not match. After adding a line for the hostname in the hosts file, the initial 2-4 second delay no longer occurs. At ...
2
votes
2answers
988 views

Simple DNS Server or Tool for Local Web App Development

When I develop web-apps I sometimes have to hard-code full URLs into my generated markup. Even though one can generally get by using relative URLs a la <a ...
1
vote
1answer
199 views

Mapping all subdomains of a domain to an IP

How should I set up a server to map all subdomains of a domain to an IP? I wish I could do something like that in the hosts file: 127.0.0.1 *.example.com
3
votes
1answer
149 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 ...
0
votes
1answer
120 views

Wildcard certificate with separate certificates for each host

We're using a wildcard certificate on several hosts, which right now means that we have to distribute the wildcard cert's private key to each machine, which is a security problem. On the other hand, ...
0
votes
2answers
147 views

Create custom host file

I want to create a host file on a custom location (ex. /opt/app/hosts) with the same formatting as the /etc/hosts file. The reason for this is that I want to manually query a DNS server for a ...
7
votes
6answers
8k 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 ...
0
votes
1answer
257 views

Changing in hosts file [closed]

I have configured my website from VS2010 to use IIS 7.5. Then I added this line to my hosts file: 127.0.0.1 something.com This correctly goes to IIS 7.5 default screen However I want this to go to ...
2
votes
1answer
193 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: ...
0
votes
1answer
3k views

MAMP Virtual Hosts not working

So I'm pretty sure I set up my Virtual Hosts right, but they don't seem to be working. Yes, I have uncommented the vhosts include from httpd.conf. All I get when I try to access the virtual hosts ...