How to ping a private host within a private network by hostname and NOT private IP address
I have created a Docker Swarm (private network) - complete with H/A & Im at the stage of setting up TLS....however the nodes must recognise each other from hostname and not ipaddress.
When I try to ping either of the 7 nodes within the private network using the hostname, it does not work, however I can ping with the private ip address.
I did try to set up a DNS - however this did not resolve my issue.
Thank you and look forward to any suggestions that may lead me to a solution.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×