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
0
votes
1 answer

Map a URL to local Blog

I would like to type /blog in my url and have it go to my locally hosted WordPress page at http://localhost/wordpress I modified my host file to redirect blog to the localhost. Now apache display the 'It works!' page. But I need it to redirect to…
Brig
  • 101
  • 3
0
votes
1 answer

/etc/hosts - How can I point to a certain directory in my local intranet?

I need to point admin.company.com to 192.168.2.100/admin How can I do that?
gAMBOOKa
  • 999
  • 6
  • 19
  • 34
0
votes
3 answers

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 active as it is in some physical documents that I'm…
user70056
  • 3
  • 1
0
votes
2 answers

connect to a machine inside the intranet from outside with same address used inside

I have a server inside my intranet, in wich i have apache running with some web applications. when i'm at office the url i use to connect is zeus.mydomain.it, it works couse i have in my /etc/hosts a record 192.168.0.11 zeus.mydomain.it, but…
pietrosld
  • 1
  • 1
0
votes
1 answer

setting domains

EVERYTHING HAS BEEN SOLVED - no need to answer :) I'm setting a local webserver to do a lot of web development work from now on. I'm not really knowledgeable in hosting configuration. Thing is I just added mydomain.com in /etc/hosts that's fine but…
allenskd
  • 123
  • 4
0
votes
2 answers

Strange Items in Hosts File and Netstat

I ran a netstat -a on a computer and there were a number of strange items: Proto Local Address Foreign Address State TCP netgym:epmap virusin:0 LISTENING TCP netgym:microsoft-ds virusin:0 …
JMC
  • 506
  • 6
  • 23
0
votes
3 answers

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 tech support calls. On a separate server I…
Tim
  • 3
  • 2
0
votes
1 answer

What should my FQDN be?

When I setup my server, the guide said to use ns1.domain.com, (both my nameservers are ns1.domain.com and ns2.domain.com). However, recently, I changed it to www.domain.com, and everything works.. However, should it be ns1.domain.com instead? Or…
user56511
0
votes
1 answer

How do I block host name instead of just IP?

I was wanting to block a list of specific hosts, specifically so my server has no access to them at all. I tried using host2ip and entering the result into IP tables , but the IPs don't seem to lead to the site and I can still access the domains…
John d.
0
votes
1 answer

access xampp virtual hosts from virtualbox

My host is Ubuntu and guest is Windows XP. I'm also running Xampp on Ubuntu with a bunch of virtual hosts. For example I have a host named "ehpc.loc" binded to 127.0.0.7 ip-address. So I need to access this host from guest Windows XP. I know that I…
ehpc
  • 147
  • 1
  • 4
0
votes
5 answers

Best way to keep a hosts file updated

I have a situation where I have a dual homed VOIP server that uses two internet connections. The solution works fine except for one problem, when the primary internet connection goes down, so does DNS resolution. This prevents my VOIP server from…
Erik Funkenbusch
  • 600
  • 10
  • 27
0
votes
1 answer

How to enable dynamic client in hosts.allowed for SSH?

I'm using a hosts.allowed for SSH. Now, some people have dynamic IPs but they also have dyndns.com hosts. How could I use a dyndns.com like host to /etc/hosts ? (The server is a Debian 5.0 Lenny amd64) (Changing to SSH key auth and so on is not a…
Apache
  • 294
  • 6
  • 19
0
votes
2 answers

Xen private networking between multiple hosts

I have two physical hosts running Xen 3.2, sharing storage via iSCSI. On these two hosts are a number of domUs and I'd like to network them in multiple private networks so they can only contact other domUs on their private network. My understanding…
Joe
  • 344
  • 2
  • 7
  • 23
0
votes
2 answers

Changing 127.0.0.1:81 to Internal Domain Name?

I was wondering the steps I can take to change the localhost name to a test development domain name like "website.dev" on Win7 x64 ? Currently, when my test website builds its assigned to 127.0.0.1:81 but I want this to instead have a name like…
Tom
0
votes
4 answers

Server refusing access from every host except itself

I have media content on a hosted server that I want to be accessed by another domain. In the configuration file, even if I "Allow from all," all hosts except itself will fetch the hosting company's generic landing page, which puzzles me. I test it…
mezamashiman