Using plain IPs vs using names in /etc/hosts

0badc0de

Member
May 3, 2018
25
0
21
57
Hi all.
In the "Separate Cluster Network" guide I can see that the editor uses in the very same command the plain IPs and the names that have been added to /etc/hosts. For example:

> pvecm create <clustername> -bindnet0_addr 10.10.1.151 -ring0_addr one-corosync

AFAIK, there'd be no differences (al long as the underlying commands can do proper name resolution). I would expect a cleaner command like this one:

> pvecm create <clustername> -bindnet0_addr one-corosync -ring0_addr one-corosync

My question is: why not using just names (as seen in /etc/hosts) or just plain IPs?

Many thanks in advance.