Using plain IPs vs using names in /etc/hosts

0badc0de

Member
May 3, 2018
25
0
21
56
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!