If you are trying to connect Oracle RAC database, you can simply use the SCAN IPs. With that way you don't need to write or delete all of the IPs when the situation becomes new nodes added or removed on Oracle RAC databases.
Generally there is a specific domain address for the SCAN IPs and when you use that domain address while connecting, it automatically resolves the SCAN IPs, and with that way the requests will be redirected to the available nodes. It also helps to load-balance on servers.
If you want to get generic information you can check the documentation: About the SCAN