Questions tagged [hosts-file]

Hosts file is an OS file to map hostnames to IP addresses.

Hosts file is an operating system file that maps hostnames to IP addresses. It is a plain text file. In modern operating systems, the hosts file remains an alternative name resolution mechanism, configurable often as part of facilities such as the Name Service Switch as either the primary method or as a fallback method.

150 questions
0
votes
1 answer

use hosts file with proxy

It is obvious that local /etc/hosts file is ignored when using a proxy while browsing. How can I use hosts file when using a proxy? I've access to the proxy server. I changed /etc/hosts file on the proxy server itself, it did work when I use a…
Ashraf
  • 101
0
votes
0 answers

ping returns IP from hosts file but not nslookup in windows 10

We host our application in two data centers. During a production update, we point the customer traffic to datacenter1 and test the update by adding datacenter2 IP in our hosts file, where the update is being done to our domain name. This has been…
0
votes
1 answer

Exclude subdirectory from host resolution set in /etc/hosts (with dnsmasq, or anything else)

I have a local development tool (LocalWP) that sets the path to my local environment by modifying /etc/hosts. For example, if I set my site in Local to www.foo.com, it'll append the following to the hosts file: 127.0.0.1 www.foo.com This is fine,…
Orun
  • 127
  • 1
  • 6
0
votes
1 answer

IIS 7 Website Bindings www.domain.com & domain.com

I am currently setting up a domain name on windows server 2008r2 iis7 In the local hosts file I have mapped Domain.com and www.Domain.com to the localhost The iis7 website has the bindings for Domain.com and www.Domain.com However, from the internet…
asn187
  • 219
  • 1
  • 4
  • 10
0
votes
1 answer

Do private hostnames correlate with or have any direct effect on public hostnames on a running webserver?

I am running a LEMP webserver on my Raspberry pi using Rasbpian. The name of my my pi's hostname is raspi-host123. My local hosts file on my server looks like this: 127.0.0.1 localhost loopback ::1 localhost ip6-localhost…
DanRan
  • 73
  • 1
  • 1
  • 12
-1
votes
1 answer

isc-dhcp host using files

I configured ise-dhcp-server, which works fine, but my dhcpd.conf is starting to become very big. I'm trying to find information (without results), on whether it's possible to use something like import /path/to/file. I want to use it to set static…
DevAxeQuestion
  • 155
  • 1
  • 9
-1
votes
3 answers

Is there a way to ssh using hostname alias without modifying the etc/hosts file?

I spent hours researching how I can automate 100s of hosts that are all under one local domain. (i'm on a ubuntu linux 17.04 machine) For example, I have node1.domain.org, node2.domain.org, and the list goes to node100.domain.org it is practically…
-1
votes
2 answers

restored Wordpress site from DB, wp-login.php redirects to old domain

We have a Wordpress .sql backup which we restored on a linux box. Now we want to log in to the admin console and export the site as XML. Unfortunately, the wp-login.php redirects to the old deprecated domain name. Perhaps there is an /etc/hosts…
Quadmore
  • 33
  • 1
  • 6
-1
votes
1 answer

Hostname is not mapped to the ip address correctly

I recently installed Wordpress on my home server running Arch Linux. Everything else works smoothly except that when try to access the server externally, the style sheet is not rendered. I have read my distribution's wiki and indeed I found a…
lpan
  • 103
  • 2
-1
votes
2 answers

Why Windows 10 Blocks some LAN IPs (192.168..)?

- Summarize the problem: Windows 10 does not allow visiting my local LAN IPs (192.168.1.0/24), and some domains (that are defined in my hosts file). Error shows in all browsers (e.g. form chrome: Firewall or antivirus software may have blocked the…
-2
votes
1 answer

how to establish a connection to a certain domain using domain name

I have software that requires that I establish a connection to our server "SERVER01" which I am connecting via VPN to the domain "DOMAIN01" The license will not permit me to use the following connection strings (which all work)…
Hightower
  • 111
  • 5
-2
votes
1 answer

Serve a single webpage from my IP for a particular host/domain within Windows?

I am wanting to serve a single webpage from my IP for a particular host/domain within Windows. Is this even possible? Any ideas how to achieve this? Is it possible to have something like this in "hosts" file? 203.223.22.22 microsoft.com 192.168.1.1…
BlueDotRo
  • 33
  • 3
-3
votes
1 answer

Hosts file to block a website

I have seen a blog saying that we can block some websites using our hosts file. I have tried the same (shown below), but failed. Entry added in host file as below: 127.0.0.1 www.google.com I tried clearing the cache and tried it with a new…
Vysakh
  • 195
  • 1
  • 7
  • 14
-3
votes
3 answers

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 this in DNS server or active directory instead of…
-3
votes
1 answer

D-Link override DNS for all computers on network?

Is it possible to do something like what /etc/hosts does for one computer, for all computers on a local network? I'm using a D-Link DIR-655 B1. If necessary I'd be fine installing new firmware, but I'm having a hard time finding documentation about…
quodlibetor
  • 277
  • 2
  • 4
  • 11
1 2 3
9
10