I have the following connectionString for my db:
I want to resolve someIpAdress to the DNS name instead. By running
nslookup on the ip I get the name for that address. But replacing the Ip with the DNS name results in a failing connection for the jdbc connection.
I have tried modifying the file
/etc/resolv.conf which now allows me to ping the DNS name, but it seems like the configuration should be done with netplan for
Ubuntu 18.04LTS. Changes to
/etc/network didn't work either.
Some of the guides I've looked at so far: https://www.cyberciti.biz/faq/howto-set-dns-search-list-for-host-name-lookup/
Any help is much appreciated