Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [hosts]

host is any machine or computer connected to a network and can offer information, resources, services and applications to users or other nodes in the network.

Filter by
Sorted by
Tagged with
3 votes
0 answers
11 views

Why Can't My Desktop Access Apache Web Server on LAN While Laptops Can?

Thanks to Using Domain name instead of localhost in with https in xampp I am running a website on an Apache web server using XAMPP on a new laptop (Laptop 1), which is the host, running Windows 11 and ...
Harry McKenzie's user avatar
-1 votes
0 answers
76 views

how to block http://tplinkwifi.net/ url

let's say we are on windows 7, and we want to block a specific URL from getting resolved. one would assume to throw it into HOSTS file and job is done, but for some reason this does not work, so the ...
gamer0's user avatar
  • 941
0 votes
0 answers
44 views

ping and getent hosts give different result

I have entry in /etc/hosts 1.1.1.1 db_external When I am doing ping I get it correct ping db_external PING db_external (1.1.1.1) When I am doing getent hosts db_external for some reason I got : ::...
arheops's user avatar
  • 1,385
-2 votes
1 answer
129 views

Where does the command "ssh-keygen -A" generate host keys?

I tried to start sshd and saw an error message as follow. # sshd: no hostkeys available --exiting And did some search and found I need to run the command "ssh-keygen -A" to generate default ...
user1339750's user avatar
0 votes
0 answers
19 views

Why is the webserver not available in the LAN if I start the server by a service-deamon?

I have a Laravel application, if I start this application in the CLI with artisan serve --port=8081 --host=monitoring it is available in the network with monitoring:8081. I create a ServiceDaemon an ...
michael-mammut's user avatar
1 vote
0 answers
97 views

How to get the subdomain pointing to pm2 app with Nginx on Ubuntu?

I have a hosted server that should serve both the domain example.de and app.example.de. On app.example.de I would like to have my meteor/pm2 application being served. I have created two configuration ...
AntonSack's user avatar
  • 111
0 votes
0 answers
26 views

virustotal.com loopback automatically appearing in windows hosts file [duplicate]

A very strange thing is happening on my Windows 11 installation on every reboot: A loopback rule that points www.virtustotal.com to 127.0.0.1 (localhost) add itself on every reboot, I'm suspecting ...
Kleajmp's user avatar
  • 400
0 votes
1 answer
441 views

How to properly modify host file?

I was able to modify my host file on my Windows 10 laptop by copying it onto my desktop, modifying it and then pasting it back to the system32/drivers/etc folder. I'm doing this to prevent me from ...
Jason's user avatar
  • 145
0 votes
0 answers
105 views

As a non-admin user on Windows 10, how do I simulate a timeout when visiting a certain domain?

I'm using Windows 10, but as a user without administrative privileges. I would like to simulate a timeout when any network call is made to myexample.com. Normally, I could create an entry in the &...
Dave's user avatar
  • 104
1 vote
0 answers
195 views

Can WSL 2 be opened without relying on the DNS Client service?

I recently added a large number of entries to my hosts file on Windows 11 (200,000+). The DNS Client (Dnscache) service struggled predictably with this, so I disabled it via the registry. WSL 2 will ...
AdminPandas's user avatar
0 votes
0 answers
123 views

Postfix bouncing valid emails

I've installed postfix on a lamp stack with multiple vhosts, with a the below configuration: myhostname = myserver.home alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /...
Instream's user avatar
2 votes
2 answers
1k views

Ansible - How to create dynamic inventory that fetches hosts from microsoft AD

I am using Ubuntu as a control-node, and would like to get the hosts from my domain controller (windows server 2022), the LDAP-Inventory Guide & microsoft.ad.ldap inventory – Inventory plugin for ...
AMM's user avatar
  • 23
0 votes
1 answer
1k views

Block youtube via hosts file

I would like to block some distracting websites from my computer. I figured the /etc/hosts file would be the right place to do so, because it will apply to all browsers and clients. So this is what my ...
Kaligule's user avatar
  • 103
0 votes
1 answer
1k views

How to solve "sudo: unable to resolve host serverlaptop: Name or service not known"

I've read a lot of post about this issue but none of it helped. I dont understand what did i do wrong. Everything is working but i get this error/warning message: sudo: unable to resolve host ...
Lolis4TheWin's user avatar
1 vote
0 answers
709 views

How to Map IP to IP in etc/hosts

I know that in C:\Windows\System32\drivers\etc\hosts I can map IP to domain name like this 127.0.0.1 whatever.com however when I tried to map to a different IP it doesn't work. For example 127.0....
Vicheanak's user avatar
  • 111
0 votes
1 answer
308 views

PowerShell - Pasting content with Get-Content line by line instead of all in one text

So.. I'm not quite an expert in PowerShell scripting .. I got this script and I'm trying to add a list of websites to the hosts file to block. I can't seem to figure out how to make it add each domain ...
Hokus_Pokus's user avatar
0 votes
1 answer
354 views

Windows Connection to Local Computers is Slow by Name but Fast by IP Address

On Windows 10, I have several computers hooked up together with ethernet cables and each machine has its own static local IP address, like this: Given this setup, if I try to connect computers to ...
EllipticalInitial's user avatar
1 vote
1 answer
1k views

How to block a website like crazygames.com?

I am trying to block crazygames.com website using the hosts file but it doesn't work. I added this line into the hosts file. 127.0.0.1 crazygames.com Pinging crazygames.com [127.0.0.1] with 32 bytes ...
hunko's user avatar
  • 13
1 vote
1 answer
898 views

When is a new SSH host key generated?

I copied an EC2 instance from an AMI image and brought it back up. After that I had to remove the entry in my known_hosts file because the SSH host key fingerprint changed. However, I thought that the ...
AllRandomAllMid's user avatar
1 vote
1 answer
2k views

(WSL) How avoid overwriting Windows hosts file

Bonjour, I looked from the web et got lots of solutions but none of them work. On Windows 11, I use Ubuntu 22.04 (WSL 2). I moved it on another drive. I also use Docker desktop and Devilbox (I can't ...
Sinedolo's user avatar
  • 121
0 votes
1 answer
1k views

Map UNC Path to local folder

I would like to map a local folder to a UNC Path. i.e. I have a folder, c:\temp that I'd like to access locally via \\media-server\temp I've tried adding an entry to my HOSTS file, 127.0.0.1 media-...
mp3duck's user avatar
  • 101
1 vote
1 answer
2k views

QEMU: How to obtain host address from Ubuntu guest?

When using UTM on a Mac with a Ubuntu guest in it, I need to obtain the host IP address (of my Mac) from the guest to mount its file system by sshfs (or any other mount). It runs UTM based on QEMU. I ...
user513667's user avatar
0 votes
1 answer
1k views

Local Network Subdomain Access

Im trying to set up a local network subdomain that is accessible to the entire local network. This is Ubuntu Server 20.04. I've modified /etc/hosts as follows: 127.0.0.1 localhost 127.0.1.1 nas....
addohm's user avatar
  • 189
1 vote
3 answers
103 views

Discrepancy when calculating hosts

Background I'm studying subnetting and find my answer to a question does not match that of the instructor. NOTE: This is something I have chosen to learn about myself. Not a course I am required to ...
csemperor's user avatar
0 votes
1 answer
995 views

trying to add a new entry in windows 10 hosts file

just tried to add a new entry to my windows hosts file so that instead of using this: http://localhost:8085/ to launch my wordpress site, I can just do something like this: http://widget.local/ ...
dot's user avatar
  • 165
0 votes
0 answers
962 views

/etc/hosts read-only with root user login

I am using Debian Server 9.5 I can't change my /etc/hosts file, its being read-only ls -lh /etc/hosts -rw-r--r-- 1 root root 461 Jan 6 2021 hosts and I am ssh via root user
FarhaadN's user avatar
0 votes
3 answers
5k views

Is possible to skip error in executing of bash command?

I am trying to get list of all hostnames from my DNS server by command: host -l example-domain.com mydns.com However one machine has invalid DNS name, because there are two hyphens in row and I get ...
pomahajbo's user avatar
0 votes
1 answer
68 views

Namecheap vps and godaddy domain connect

Hello I have Domain on Godaddy, I want to connect with new hosting on Namecheap but i can't find the NS of namecheap server. Someone to help me how to do that?
Dimitry's user avatar
0 votes
2 answers
900 views

Can't access second site on IIS when connected on a VPN

I have a Windows Server which has my dev website on it and can be accessed via IP or server name http://servername on the actual server or http://servername.org.com on my home PC which is connecting ...
J.Do's user avatar
  • 53
1 vote
0 answers
457 views

How do I remotely modify a Windows 10 hosts file? [closed]

I have a general email issue, with the solution being to edit the hosts file through notepad, however I was wondering if there is a way to patch the hosts file remotely, changing an IP within it?
Mshari's user avatar
  • 11
0 votes
1 answer
147 views

Local domains redirecting to https Win10 on 3 main browsers

This is blowing my head up - for local development I have added some domains to my hosts files as follows: 127.0.0.1 cake.test 127.0.0.1 foobar.test 127.0.0.1 dog.cat cake.test works fine - all good. ...
user1280855's user avatar
-2 votes
2 answers
435 views

How many subnets and hosts per subnet can you get from the network 172.31.0.0/19? [closed]

How many subnets and hosts per subnet can you get from the network 172.31.0.0/19?
shefaa's user avatar
  • 1
0 votes
0 answers
31 views

How to host several sites on one IP [duplicate]

I have a number of domains that I need to match on different websites. These websites are hosted on virtual machines that run on a dedicated server in the office where I work. The connection with the ...
Tiziano Pedrazzoli's user avatar
0 votes
0 answers
313 views

Not working Windows hosts file (for "localhost" name) in Parallels Desktop 16

I am using Parallels Desktop 16 on my Macbook Pro 15 (MacOs 10.15.7) I am installing the free "Legacy version of Microsoft Edge on Windows 10" in Parallels Desktop 16. But I cannot redirect &...
InFuz's user avatar
  • 1
1 vote
0 answers
119 views

How to make a device visible to the internet?

[moved here from Network Engineering SE] I realize this is a simple question that is likely answered on various SE forms but I can't seem to ask it in a way that gives me the information I need, so ...
will-wright-eng's user avatar
2 votes
1 answer
96 views

Is this a valid assignment (made by professor) about dividing hosts into two subnets?

I quote the assignment: "Consider an organization with 4000 hosts. Divide the hosts into two subnets containing 1000 and 3000 hosts. Choose network ID's and define the subnet masks so that the ...
SapphireBlazer01's user avatar
1 vote
1 answer
2k views

How do I restore my Windows PC’s default hosts file? I can’t seem to edit it even as admin

I am using Windows 10 I used a custom hosts file from a website called Energized Pro. Here is a link to the hosts file itself. I downloaded the porn ad blocker hosts file and I just replaced my ...
Shane Li's user avatar
1 vote
0 answers
30 views

Windows10 HostFile Unexpected Behaviour

I wanted to change my hostfile to access Keycloack locally. I tried to change my hostFile (with admin rights) but i can only change it in Safe Mode I added the following line: 127.0.0.1 keycloak If ...
Elrond's user avatar
  • 111
0 votes
0 answers
2k views

The same thing again - Lenovo.Modern.ImController.PluginHost.Device.exe

I have the same problem again and again with "Lenovo.Modern.ImController.PluginHost.Device.exe" that stopped working (then it was "companionapp.exe", now it's "pluginhost.exe&...
Gus998's user avatar
  • 85
3 votes
3 answers
4k views

Domain blocked in Windows hosts file, but the site is still accessible

I'm trying to figure out why my hosts file isn't being honored correctly. And by correctly I mean, when I visit the website I'm trying to block it takes about 12 hours for it to take effect. And yes, ...
captainentropy's user avatar
6 votes
4 answers
23k views

VirtualBox host-only network, cannot ping host from guest

I have the following setup: Host machine Windows: IPv4 Address. . . . . . . . . . . : 192.168.0.103 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192....
t7e's user avatar
  • 711
0 votes
4 answers
674 views

Can I block HTML elements system-wide?

I know there is a hosts file that allows me to block entire domains. 0.0.0.0 blockthissite.net :: blockthssite.net I'd like to block particular elements for a website. I can do this today with ...
Cauder's user avatar
  • 805
1 vote
1 answer
426 views

Ansible to include hosts IPs in template?

I have several IPs in my Ansible hosts file and would like to have it listed in the file that will be copied to each of these hosts. Say, this hosts are 1.1.1.1, 1.1.2.3 etc, and the is file on each ...
Alexander's user avatar
  • 292
0 votes
0 answers
243 views

jenkins hosts unreachable - build failing

In my jenkins - build fails in every few days and it shows the below error/message -- (this job is running on my jenkins slave machine) Build o/p - ok=52 changed=5 unreachable=1 failed=0 ...
GAURAV SHARMA's user avatar
1 vote
0 answers
2k views

Can I use wildcards for blocking websites in hosts files?

I'd like to block websites in my hosts file with wildcards. I know that I can block websites by adding them like this 0.0.0.0 website.com :: website.com I'd like to block websites in regex. I ...
Cauder's user avatar
  • 805
1 vote
1 answer
2k views

remove local hosts from terminal on mac

I'm trying to instal adobe cloud, but it doesn't work because I believe some of it's servers are blocked in my terminal. How do I remove them? I know how to open terminal, but that's it. I'm not the ...
survivetype's user avatar
1 vote
1 answer
216 views

Blocking ads with hosts file doesn't always work in Firefox

I'm running Firefox on Linux and doing adblocking at the system-level using /etc/hosts from StevenBlack Hosts on GitHub, but some websites, such as regional news and magazine sites, still show some ...
foenid's user avatar
  • 11
0 votes
0 answers
119 views

How to redirect all computers inside company network to one local ip when access mysite.com

I want to do a redirect like 192.169.251.211 mysite.com But i dont want to do this in each host file for all computers inside the company network. I just want to do this inside the company internet ...
Sérgio Thiago Mendonça's user avatar
3 votes
1 answer
5k views

How to make changes to Mac OS hosts file take effect?

I frequently edit my /etc/hosts file to block access to distracting websites when I'm trying to work (e.g. I'll add a line like 127.0.0.1 www.nytimes.com). Until recently, changes to the hosts file ...
dB''s user avatar
  • 131
-1 votes
1 answer
224 views

Windows 10 | Hosts

Trying to add record to C:\Windows\System32\drivers\etc\hosts: 127.0.0.1 10.125.0.100 But seems no effect. Also tried to add records like: 127.0.0.1 google.com and result the same. But if I'll ...
icYFTL's user avatar
  • 113

1
2 3 4 5
8