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

learn more… | top users | synonyms

0
votes
1answer
11 views

AWS EC2 Describe Instances - Filtering by Multiple EC2 Tags?

I'm attempting to dynamically create a hosts file mapping with all my ec2 instance private ip's, to use as the /etc/hosts on my ec2 remote ssh server. I have instances tagged with their normal "Name" ...
0
votes
0answers
20 views

I need to set up a sftp server, that could use different keys, and use different directories for the same login, depending on the ip used

I got a problem, that I cannot solve myself. I tried to google it, but no satiscactory solution that i could find. I have a server that is available with let's say 3 different IP addresses (A,B,C), ...
0
votes
1answer
14 views

How to host two web applications with different “domains” in IIS 8

I have setup to entries in my hosts file: 127.0.0.1 mymvcapp.dev www.mymvcapp.dev 127.0.0.1 mywebapi.dev www.mywebapi.dev In the first I want to host my mvc app and the second entry is for ...
-2
votes
2answers
35 views

I can't get my website to be enabled? [closed]

I have two websites: iq-dev.de and iq-dev.com iq-dev.de works without a problem and is also available through www.iq-dev.de. I have a cloud Server with linux installed and edit everything via ssh. ...
1
vote
1answer
26 views

“sub domain” in lnternal network

i have a small network under a Windows domain-controller. the server (Win2012) run a WebSite which is accessible by typing the machine-name (srv/). i want add a website with binding to sub-domain: ...
1
vote
2answers
35 views

How do I redirect with Apache reverse proxy on server errors

I have several http and game servers on a network and currently use an Apache2 reverse proxy to divvy out traffic between domains and machines. I am getting a significant amount more traffic to one ...
9
votes
3answers
187 views

Size Limit of /etc/hosts (Linux)

Does anyone happen to know what the theoretical size limit of /etc/hosts is on a Linux system before you might start to see degradation in performance? Furthermore, can anyone point me towards some ...
0
votes
1answer
60 views

HOSTS file not overriding DNS

I have a Server 2012 R2 machine and I have added a hosts file entry for a hostname to point to an IP. However, when doing an nslookup, the HOSTS file does not override the result (from DNS). I can't ...
3
votes
3answers
295 views

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 ...
0
votes
0answers
9 views

Virtual Host Issue on 1&1 with Debian Server

I'm running a Debian 8 LAMP server with Apache Virtual Hosts configured. I've had it running for a couple years. I recently added a second site and config. When I modified my remote system on local ...
1
vote
1answer
72 views

MySQL Host / Host Table

So for better security, our website / network has been looking to lock down all of our SQL to IPs. What we originally were looking for was somewhere where I could whitelist all our ips, say ...
0
votes
1answer
46 views

CentOS 6.5 Apache redirect to 127.0.0.1

I have to install a new CentOS Server v6.5 I already install httpd and want to access Apache Welcome Page by serverIP. But I get a timeout, so I stop iptables service for a moment. Now I get an 301 ...
2
votes
1answer
60 views

Make Linux server route packets destined for its external ip to localhost

I've a router with a certain static ip a.b.c.d that's connected to a Linux server on one side and to the internet on the other. Accessing a software installed on the Linux server from outside using ...
1
vote
0answers
76 views

Samba shares don't work when mounted via host names from /etc/hosts

I have /etc/hosts file with this line 10.1.17.123 SAMBAWINSERVER I am trying to mount samba shares referencing server by name in the hosts file. I tried to mount it via regular mount command or ...
0
votes
1answer
719 views

windows hosts: how can I redirect HTTPS site?

I have that in my host 127.0.0.1 block.opendns.com It works when I use: http://block.opendns.com But does not work when I use: https://block.opendns.com Any idea how to use hosts with an HTTPS ...
1
vote
2answers
497 views

Using Ansible to provisioning users: Modify facts/expand hostvars?

First off, I apologize for the terrible title. I'm not entirely sure how to succinctly describe the problem. So here's my challenge. I'm working on provisioning database users and would like a ...
1
vote
1answer
60 views

In /etc/hosts is there something special about the first hostname for any given line?

I know that the first one is said to be canonical, but I don't fully understand the practical implications. This question was triggered by the man page for hostname -f, specifically when it says: ...
0
votes
0answers
27 views

Trouble accessing FTP internally

I am currently running OS X Server 4. I have multiple websites (virtual hosts) set up with it. Lets call them domain1.com and domain2.com. Internally, they are both being run off of the same IP. ...
0
votes
2answers
175 views

Windows 2012 Server, DNS resolve host for client

I've been looking for way to resolve host name for client on Windows Server 2012, just like if I added it to hosts file of the client workstations running Windows 7/8. In hosts file I would add ...
0
votes
0answers
527 views

Chef Server 12 reconfigure fails with RabbitMQ

After installing Chef Server 12 on CentOS 6.5 everything went well but now I've removed the premium addons that I've installed manually (using RPMs) there is an issue with RabbitMQ: *It might be ...
-4
votes
1answer
108 views

hosts file entry for domain pointing to shared hosting account [closed]

I have hosting account which is on shared hosting server. My DNS is not able to resolve the server address. What should be entry in etc/hosts so that it resolves the correct server address? Few ...
0
votes
1answer
340 views

Redirect subdomain to an Apache Virtual Host

I have a website "example.com" hosted on a provider that allows me to manage my own DNS. I want example.com to point to the provider's IP address but I want "subdomain.example.com" to point on my own ...
0
votes
1answer
496 views

Setting up my vhosts file correctly in WAMPServer [duplicate]

I am trying to setup an mobile app that I have received from another dev locally on my machine, this is a cordova based mobile app that is basically html5/javascript etc.. I have added the following ...
1
vote
1answer
1k views

Use proxy like an /etc/hosts file

I want a forward proxy that basically overrides DNS like /etc/hosts would on a client machine. So when People go to Google.com (for example) the proxy sends the request to a specified IP address. I ...
1
vote
1answer
948 views

Simulate a DFS share for a user not on domain with a folder in path

I have a consultant whose computer is not on the domain and needs to access various network resources. Unfortunately while adding a computer to the domain is a difficult bureaucratic process (and ...
-1
votes
2answers
299 views

Hosts File Failover [closed]

My software uses DNS Name to connect to the Server. My Clients sometimes need to work off site and in such a case they use Hamachi to connect to the server. I would like to know if it is possible to ...
0
votes
2answers
2k views

Sendmail Domain of sender address does not resolve. Unable to send any emails.

I've got myself in a muddle with Sendmail. I've newly inherited responsibility for an app that uses sendmail and I have no previous experience. I'm using Ubuntu Ubuntu 10.04.4 LTS. Recently we ...
1
vote
3answers
2k views

Apache 2.4 - 403 HTTP status code

I'm getting a 403 error message with Apache, in Debian Testing. Apache version: # aptitude show apache2 | grep -i version Version: 2.4.9-1 # ls -la /home/ total 28 drwxr-xr-x 4 root root ...
0
votes
1answer
130 views

Different DNS name resolution for same server [closed]

I am working on an internal facing wiki that is hosted on a linux box in the office that also holds our backup-server roll. The name of this server is 'backup-server' and DNS resolves this to the ...
2
votes
1answer
3k 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: --- ...
0
votes
1answer
2k views

Solaris Update Hosts file Without Rebooting

I'm running Solaris 10 and I'm having issues with a particular network and need to replace host entries in my hosts file. I've updated the hosts file. Is there a refresh the hosts entries without a ...
7
votes
1answer
6k views

Hostname to Localhost with Port - OSX [closed]

I am trying to run multiple Node.js web servers locally on my machine. Because the code I'm writing needs to reference a domain name I'd like to keep a convention of dev.myHost.com and point that to ...
0
votes
1answer
2k views

Do cPHulk Brute Force Protection Settings Effect Hosts? [closed]

Question: Do my settings (shown below) prevent visitors from getting to any of the public web sites on my server if their ISP's IP Address has been blocked/black-listed through cPHulk Brute Force ...
-1
votes
2answers
103 views

name resolution by name in /etc/hosts

I have to check website performance through various webproxies from my Fedora 19 box, and I want to do that by setting a local resolvable name "proxy" to the DNS resolved names for our proxies in my ...
-1
votes
1answer
28 views

rerouting name to ip on local network [closed]

i created an intranet (lamp) and now i have to make it visible using this url intranet: the solution i found was to put in each computers (mac, windows) this in the hosts file using the ip ...
3
votes
2answers
382 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 ...
6
votes
3answers
289 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 ...
-2
votes
1answer
43 views

Linux DNS: expand name with a choosen domain [closed]

I need to expand a random name with a choosen domain. Example: nslookup abc 127.0.0.1 -> should look for abc.domainchoosen.dom. Suggestions?
0
votes
1answer
44 views

How to configure DNS for website on one host other domain services on second host?

I want to achieve the following: mydomain.com/webmail, mydomain.com/forums, mail.mydomain.com, etc point to current host A And I wish to point mydomain.com to a new website host: www.mydomain.com, ...
-1
votes
2answers
73 views

Is it valid that localhost appears in multiple lines in linux hosts file?

hosts file: 127.0.0.1 localhost localhost.localdomain 192.168.30.133 localhost machinename Is it valid that localhost appears in multiple lines?
1
vote
3answers
6k views

Bypass DNS Server lookup by using /etc/hosts when using a dynamic IP address

It is my understanding that the need to query external DNS servers for commonly accessed names can be reduced if those commonly accessed names are present in /etc/hosts. Now, I have a situation ...
0
votes
1answer
867 views

hosts.deny line too long or too big file?

I have about 50k ip addresses denied in the hosts.deny file, generated by a script with 7 addresses per line max and get this error: warning: /etc/hosts.deny, line 4429: missing newline or line too ...
1
vote
1answer
426 views

Why use FQDN as DNS-server option in DHCP?

I've seen multiple default configurations of DHCP-servers with a FQDN set as the DNS-server option. Doesn't this imply a catch-22, or the need for that DNS-server to be in the hosts file of every ...
0
votes
2answers
470 views

How do I set a domain name with a port in hosts file? [closed]

I have Apache and Rails running on my laptop. Apache is running on port 80 and rails 3000. in my hosts file I have entries like 127.0.0.1 dev.somesite.com This works well for Apache How do I add ...
0
votes
1answer
101 views

How can I manually set the IP a domain name resolves to without using the hosts file?

On my Windows server, example.com resolves to 1.1.1.1. A software I use resolves example.com expecting 1.1.1.1, but I need to modify this for the domain to resolve to 2.2.2.2 instead. Usually, I ...
0
votes
1answer
5k views

lmhosts and hosts file to allow user joining to domain controller

I have a domain controller on a diffrent ip range as my computer and would like to know if it is possible to join it to the domain using host file and lmhosts file? I don't want to use VPN I don't ...
3
votes
2answers
2k 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 ...
0
votes
2answers
469 views

Error message: Host 'server1.MY_DOMAIN.TLD' is not allowed to connect to this MySQL server

I have a web and mail server running Ubuntu 12.04. I installed iRedMail and had it running fine, but this morning mail was not connecting and none of my sites worked. I checked some logs which told me ...
0
votes
1answer
234 views

Test machine (Win7 laptop) redirect server UNC paths back to same test machine

I have a Windows7 laptop for developing at home. The live application makes calls to the SQL Database ("CANCENTRESRV") which I have been succesful in redirecting back to the my laptop using HOSTS ...
0
votes
1answer
174 views

Hosts file doesn't work with .com host names

My /etc/hosts file is configured as following: 127.0.0.1 localhost mysitea.local mysiteb.com www.mysiteb.com www.mysitea.local And I have my Apache virtual hosts setup accordingly: ...