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.

152 questions
0
votes
1 answer

Priorize DNS records by server locatoion

Recently I had assigned a task where I am suposed to optimize the login time for a Redhat SSO service that is installed on a RHEL 7.9. This service uses multiple Active directories to validate the user's credentials. All these AD's are spread around…
Andrei
  • 3
  • 1
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
  • 1
  • 1
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

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
  • 3
  • 22
-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
  • 165
  • 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

Temporarily change etc/hosts file on a windows workstation

Is there a tool, that allows an individual to temporarily switch between different etc/hosts configurations, without setting up a dns? Example: I would like to quickly change the etc/hosts config file, so that project1.com forwards to a local IP…
Richard
  • 199
  • 2
  • 4
-1
votes
2 answers

I need to hit website with server_ip/path_to_index.html

I am testing @media statements in a locally hosted website I am building but for the life of me can't hit the site with site_IP/virtual_host_name. If I have access to the hosts file I simply add (site name) localtest.com into the file along with the…
-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
  • 15
1 2 3
10
11