From 312b04e3bd78a5b2c2bb8115a5d4f4d99e6ee9fc Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:25:14 +0300 Subject: [PATCH] add static hostnames for virtual machines --- hosts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hosts diff --git a/hosts b/hosts new file mode 100644 index 0000000..3819f32 --- /dev/null +++ b/hosts @@ -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