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
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
70 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 ...
1 vote
3 answers
16k views

MikroTik Layer-3 communication between 2 hosts

Test question - mikrotik In MikroTik RouterOS, Layer-3 communication between 2 hosts can be achieved by using an address subnet. Which one of those "/29" "/30" "/31" "/32"? Why? I understand ...
2 votes
2 answers
15k views

Batch script to write a line in host file to block a website

Batch script to write a line in host file to block a website I will be sending this remotely. I know how to do it on my PC manually, but I need the batch command to send remotely to block a website. ...
0 votes
2 answers
5k views

How to fix "sharing violation" message when editing hosts file?

I'm running textpad as administrator. When I try to save the changes, I get a message "Encountered a sharing violation while accessing C:\Windows\System32\drivers\etc\hosts." I checked using Process ...
26 votes
8 answers
32k views

Does Firefox ignore the hosts file? How to make Firefox honor the hosts file

I'm using Firefox browser in Ubuntu 18.04. I made an experiment where I want some domain names to be resolved to another IP address than their actual one. Firefox seems to ignore the IP in the hosts ...
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 ...
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
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....
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 ...
2 votes
0 answers
152 views

How do I prevent network access from virtual machine to the host computer?

I have VirtualBox i installed a Windows 10 virtual machine and i wanted to surf the Dark web (because i worried about getting any viruses so i created a virtual machine) and to test some Malwares and ...
-1 votes
1 answer
61 views

60 minutes, BIG DATA in marketing pruppose [closed]

I just saw a episode with 60 minutes US and there was an sequence with all the "social media" that's going on today - that they saving information about all their the users. And then i found http://...
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 ...
12 votes
2 answers
4k views

Is there a utility to ping a server using aliases in ssh config (instead of /etc/hosts)?

I'm trying to standardize my server aliases across projects by linking together ssh config files that I can keep under version control. I'd like to be able to just define machine aliases along with IP ...
1 vote
2 answers
16k views

Windows Server 2016 RD Connection Broker doesn't redirect

We have been trying to set up an RDP server farm for the past 2 weeks now and we are right at the end but just cannot solve this last issue. We have 2 RD session hosts and 1 server running the RD ...
0 votes
2 answers
3k views

Unable to unblocked the sites in Hosts File

I blocked some site in Hosts File, but when I tried unblocking it by deleting the indicated sites. I'm still unable to access the sites. Can anyone help me with this? I blocked the sites by using ...
42 votes
1 answer
78k views

What's the Windows equivalent of "/etc/hosts"? [duplicate]

I can block my little brother from accessing a website on my Mac by adding the following line to my "/etc/hosts" file. 127.0.0.1 someaddictingwebsite.com Do Windows systems have a file ...
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 ...
1 vote
1 answer
335 views

Load multiple hosts files

Think I already know the answer. But looking for a unicorn. Anyone know if there is a way to link one hosts file to another, or load 2 or more different hosts files? I have a hosts file that has ...
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
615 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....
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
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 ...
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 ...
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
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
3 answers
5k views

How to point a public IP to a laptop at my home?

I got a public IP from GoDaddy, on which I want to host my website. I want to create the server at my home, on PC or laptop. I want to test with my laptop, which is connected to internet using a wifi ...
1 vote
1 answer
958 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 ...
-3 votes
3 answers
1k views

Changing my hosts file won't work

A while ago, I messed with my hosts file and it worked just fine. Then I wanted to undo my changes, so instead of deleting the entries, I completely restored the hosts file using one of Microsoft's ...
0 votes
0 answers
6k views

Block officeclient.microsoft.com on Office 2016

We are in a migration process to Win10+Office16 in my company. In the new system, every time we open any Office application, a proxy pop up appears asking for credentials and we would like to block ...
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 ...
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 ...
172 votes
7 answers
113k views

Don't add hostkey to known_hosts for SSH

I want to connect to a host via SSH but I don't want the hostname to be added to my ~/.ssh/known_hosts. How can I do that?
0 votes
1 answer
978 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
6 votes
2 answers
25k views

How to block IP Address via Windows Host

I want to block access to a certain ip address via windows host. This is the ip address 41.190.8.17. And this is the content of my host file. # localhost name resolution is handle within DNS itself....
1 vote
2 answers
7k views

Cannot edit or overwrite in explorer hosts file, even as admin

I have followed all the options I can find here. Opened hosts as administrator but cannot save 'in use by another process'. Saved in \temp as 'hosts'. Run explorer as administrator copying over ......
293 votes
11 answers
888k views

Remove key from known_hosts

I built several virtual machines during the last few weeks. The problem is, the .ssh/known_hosts gives me the Man in the middle warning. This happens because another fingerprint is associated with the ...
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
874 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
432 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?
4 votes
2 answers
12k views

Unblocking blocked site with hosts file

I have www.somesite.com blocked in my country. But I have another domain www.another.com that points to the same server and it's not blocked (Apache Virtual Host) and works fine. I put an entry in ...
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?

1
2 3 4 5
8