add static hostnames for virtual machines

This commit is contained in:
mykola2312 2024-09-09 20:25:14 +03:00
parent d53ac8d522
commit 312b04e3bd

18
hosts Normal file
View file

@ -0,0 +1,18 @@
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file. Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
127.0.0.1 asus-laptop asus-laptop.localdomain
10.0.0.2 srv-master
10.0.0.3 srv-slave1
10.0.0.4 srv-slave2