The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
38 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 ...
43
votes
8answers
59k 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 ...
0
votes
1answer
34 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 ...
13
votes
12answers
23k 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 ...
3
votes
1answer
3k 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 ...
1
vote
1answer
105 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
300 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 ...
14
votes
6answers
8k 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 ...
0
votes
1answer
53 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
21 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
93 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 ...
9
votes
3answers
10k 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 ...
0
votes
1answer
345 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 ...
0
votes
2answers
432 views

RHEL 5.1 loses changes to /etc/hosts above lines for `localhost`

Is there a known fix (other than upgrading from 5.1) to fix /etc/hosts from being replaced on reboot? I discovered this behavior when running HP's Server Automation tools. HPSA sets-up a variety of ...
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 ...
0
votes
0answers
222 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 ...
13
votes
3answers
25k 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 ...
-4
votes
1answer
54 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
171 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 ...
2
votes
3answers
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 ...
0
votes
3answers
906 views

SMTP relay to multiple hosts

We are in the process of switching our email from a locally hosted server to Google apps. We have a lot of users and I'd like to be able to switch them over one at a time so I don't get inundated with ...
4
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 ...
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 ...
0
votes
2answers
665 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
41 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, ...
6
votes
6answers
6k 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 ...
1
vote
1answer
584 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
570 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
198 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
3answers
106 views

map old windows server to new windows server

At the moment, I have 2 servers (serve1 and serve2). serve1 is old and data is small enough to move to serve2. serve1 = Win 2k3 serve2 = Win 2008 R2 The problem is I need to keep the serve1 name ...
0
votes
3answers
1k 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
104 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
2k 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

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 ...
0
votes
1answer
1k 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 ...
-1
votes
2answers
83 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
27 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
217 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
267 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
38 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
2answers
930 views

Hosts file map localhost to existing domain not subdirectory* updated

I am locally developing a website via MAMP and rather than messing with the changing all of my links and etc later on I opened up etc/hosts and added this line 127.0.0.1 localhost mysite.com so ...
-1
votes
2answers
70 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?
3
votes
2answers
1k 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
3answers
4k 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
659 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
314 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 ...
-1
votes
2answers
258 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
0answers
440 views

nginx: How to debug an issue with port 80? (nginx-related)

I have been having trouble debugging my issues on my own local port 80 listeners when trying to set up an nginx webserver. I am simply just trying to see the vanilla "welcome to nginx" start page and ...
0
votes
1answer
90 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
4k 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 ...