I have a Debian server with 4 IP addresses. All IP addresses use the same hostname. Is it possible to give every single IP address its own unique hostname?
you can use
1- install BIND
on debian: https://wiki.debian.org/Bind9
2- configure a zone which includes the IPs and its hostnames:
Depending on the number of computers you are managing it is often much easier to just edit the host file on each system than it is to configure each computer to use a particular DNS server, especially if you don't have a dedicated Bind server for this task. Unix, Linux, Windows and Mac all use the exact same host files so it is easy to copy them around. Linux systems usually keep it in
For your case you can just add one line for each IP. Also note that you can give multiple names to a single IP by separating them each by a space on the same line.
This change will be instant, you don't need to restart anything. You may need to refresh the DNS cache though if you've already tried to use the name.