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.
391
questions
3
votes
0
answers
41
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 ...
-1
votes
1
answer
298
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 ...
0
votes
0
answers
109
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
198
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
21
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
114
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
563
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
116
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
206
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
208
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
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 ...
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
792
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....