E
E
Egor Zholnin2020-05-15 19:59:51
linux
Egor Zholnin, 2020-05-15 19:59:51

How to link local /etc/hosts file to virtual machine?

I have host settings for docker containers on my locale. I also have a virtual machine on which I want to open a site at the address specified in my local /etc/hosts. How to do it?
I use VirtualBox, network settings are as follows:
5ebec95b8dc8a825109841.png
5ebec96604e5b029140790.png

What is in etc/hosts. Of course, I won’t show the names)
5ebecb2a2ca21618755347.png

On the VM, the hosts have the same hosts (which I closed)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SunRiser, 2020-05-15
@SunRiser

Raise the DNS server (pi-hole for example) or register DNS records on the router if it allows. (Mikrotik - allows)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question