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.
389
questions
0
votes
0
answers
21
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 :
::...
-2
votes
1
answer
68
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 ...
0
votes
0
answers
18
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 ...
1
vote
0
answers
76
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 ...
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 ...
0
votes
1
answer
365
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 ...
0
votes
0
answers
92
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 &...
1
vote
0
answers
173
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 ...
0
votes
0
answers
57
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 = /...
2
votes
1
answer
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 ...
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 ...
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 ...
1
vote
0
answers
614
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....
0
votes
1
answer
296
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 ...
0
votes
1
answer
329
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 ...
1
vote
1
answer
957
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 ...
1
vote
1
answer
850
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 ...
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 ...
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-...
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 ...
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....
1
vote
3
answers
90
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 ...
0
votes
1
answer
977
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/
...
0
votes
0
answers
924
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
0
votes
3
answers
4k
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 ...
0
votes
1
answer
66
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?
0
votes
2
answers
873
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 ...
1
vote
0
answers
431
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?
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.
...
-2
votes
2
answers
428
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?
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 ...
0
votes
0
answers
307
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 &...
1
vote
0
answers
113
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 ...
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 ...
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 ...
1
vote
0
answers
29
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 ...
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&...
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, ...
5
votes
4
answers
22k
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....
0
votes
4
answers
624
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 ...
1
vote
1
answer
399
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 ...
0
votes
0
answers
242
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
...
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 ...
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 ...
1
vote
1
answer
205
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 ...
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 ...
3
votes
1
answer
4k
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 ...
-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 ...
1
vote
0
answers
2k
views
How do I protect my hosts file in /etc/hosts?
I'd like to prevent the active user on my computer from editing or deleting the hosts file. I'd like it so that they cannot delete it or edit it, but everything else remains as normal.
I have ...
0
votes
0
answers
2k
views
Can't modify Windows hosts file because file is in use
I am trying to add an entry to my Windows hosts file and I"m having issues. I have already gotten around the Admin permissions issue by opening Notepad as and administrator and then opening the file ...