Questions tagged [hosts-file]

The hosts file is a computer file used in an operating system to map hostnames to IP addresses. The hosts file is a plain text file and is conventionally named hosts.

The hosts file is one of several system facilities that assists in addressing network nodes in a computer network. It is a common part of an operating system's Internet Protocol (IP) implementation, and serves the function of translating human-friendly hostnames into numeric protocol addresses, called IP addresses, that identify and locate a host in an IP network.

In some operating systems, the hosts file's content is used preferentially to other methods, such as the Domain Name System (DNS), but many systems implement name service switches (e.g., nsswitch.conf for Linux and Unix) to provide customization. Unlike the DNS, the hosts file is under the direct control of the local computer's administrator.

More see at Wikipedia

134 questions
0
votes
2 answers

How to customize hosts file in Elastic Beanstalk?

We have an app that is getting deployed through EBS (on tomcat) and every now and then we are getting an error: unable to resolve host ip-172-30-0-167 This causes other issues. As far as I am aware, one of the ways to solve it is by updating the…
0
votes
1 answer

Hosts file and nginx redirect from http to https on development server

I am developing a website, and I just installed ssl on the production website (I have never done this before). When I load the development website the page redirects to https and breaks because https isn't installed on the development…
Get Off My Lawn
  • 27,770
  • 29
  • 134
  • 260
0
votes
1 answer

.NET Socket.Connect Resolve Host name to IP Address

I'm looking at the .NET socket connect function in some code. http://msdn.microsoft.com/en-us/library/d7ew360f.aspx This function takes in a string as an argument that represents the name of the remote host. My question is, how does the socket then…
mj_
  • 5,781
  • 5
  • 33
  • 69
0
votes
1 answer

Make one Docker Compose service know the domain name of another

I'm using Docker Compose to create two containers. One runs an Nginx web server which serves the mydomain.com website, and the second needs to send HTTP requests to the first one (using the mydomain.com domain name). I don't want to have to check…
marcv
  • 1,582
  • 2
  • 18
  • 42
0
votes
2 answers

Edit marshmallow hosts file

I'm trying to edit the hosts file on the Marshmallow emulator, but I can't do it. I use ADB tool: I start emulator using emulator.exe adb mount adb pull /system/etc/hosts c:\temp Then I edit hosts file ADB push c:\temp\hosts /system/etc (this step…
kinderus
  • 1
  • 2
0
votes
1 answer

Adding Hostname to servers hosts file still doesn't work

On server: I go to start -> run and type "drivers" change to the etc directory you want to edit the hosts file.My website was seen when i go from iis(from the server) Right click websitename>Manage website>Browse. On local computer: (This computer…
Juran
  • 157
  • 1
  • 6
0
votes
2 answers

Access hosts file with powershell script from C#

I have an ASP .NET WEb Forms project, and I want to execute power-shell script to update hosts file. private void ExecutePowerShellScript(string scriptToExecute) { using (PowerShell powershelInstance = PowerShell.Create()) { var…
mihkov
  • 983
  • 9
  • 34
0
votes
1 answer

Bind DNS host pointing name servers to different IPs

Okay, at the moment i have my domain's host file which was generated by the Webmin control panel. I have a box to myself with several IPs and i want to make use of more than one. I don't fully understand everything to do with host files but I know…
zcourts
  • 4,213
  • 4
  • 43
  • 68
0
votes
1 answer

Nginx starts and stops too slowly (15 seconds delay)

I found at that for some reason running nginx on command line (same for nginx -s stop etc.) takes quite a long time, over 15 seconds to complete. Yet there seems to be no errors or warnings of any kind. Also, once the server starts, it seems to work…
frnhr
  • 10,486
  • 7
  • 50
  • 76
0
votes
1 answer

How to register local domain name?

I am using ampps server to develop a wordpress site. I have less storage on my pc so I started looking for a good cds(content delivery system). I downloaded cloud flare plugin and tried to make account on cloud flare but when I added my domain which…
user5825524
0
votes
1 answer

hosts file with multiple entries crashes browsers

127.0.0.1 www.whatever.com 111.1.1.1 www.whatever.com 127.0.0.1 www.whatever.com The 111.1.1.1 in the second line can be any non-127.0.0.1-address. Under Windows XP, Firefox/Chrome. Why is it that this configuration will crash a browser?
0
votes
1 answer

How can I get Outlook 2010 to recognise an image URL to my local development environment?

Can anyone advise how I can get Outlook 2010 to recognise a URL to my local development environment? I can access my development environment through the browser at https://crmpicco.dev however any images at that URL in my email such as this are not…
crmpicco
  • 14,513
  • 22
  • 113
  • 191
0
votes
1 answer

ftp is not resolving hostname from hosts file

I have hostname in /etc/hosts, 10.0.0.124 hostname.domain hostname I can ping and ssh to hostname. When I enter ftp 10.0.0.124 or ftp hostname I get "No route to host" in response. When I comment out that line, and try ftp hostname ftp responds…
ChrisDR
  • 185
  • 12
0
votes
1 answer

Customise DNS per-process

Is it possible (on Windows) to simulate a "per-process" hosts file? Or, is it a feature of any current web browser to be able to customise the DNS mapping? Edit: For example, a side-by-side test lab scenario simulating a future DNS change. It would…
Pete Montgomery
  • 3,790
  • 3
  • 27
  • 39
0
votes
2 answers

Accessing local IIS website in a workgroup from another PC using the host name

I've a local website in my IIS 7.5 and the hostname I specified as samplesite.com and have added the bindings as * and the IP of my PC 192.168.1.2. Also added the host entry in hosts file Everything working fine in my local machine when I enter…
Sandeep Thomas
  • 2,962
  • 6
  • 41
  • 80
1 2 3
8 9