I’ve got a DNS issue since upgraded in version v0.63.1
I’ve got a container linked to a db container and I can’t resolv it using my mysql client neither using curl while the resolution seams ok on a dig or nslookup point of view.
but
[root@cloudsso-northapi:/]#nslookup cloudsso-db-master
Server: 169.254.169.250
Address: 169.254.169.250#53
Name: cloudsso-db-master
Address: 10.42.217.120
==>Working using directly the IP
[root@cloudsso-northapi:/]#curl 10.42.217.120:3306
5.7.11-logT=]s`Op��S��|fc XPB l)mysql_native_password�Got packets out of order
==>Not working using the Name…
[root@cloudsso-northapi:/]#curl cloudsso-db-master:3306
curl: (6) Couldn’t resolve host ‘cloudsso-db-master’
This is as a result of the changes in 0.63.0, i ran across the same issue. You no longer need to map an external service, if you remove that, you can then address stack/service directly through DNS so for instance serviceName.stack.rancher.internal
@Rucknar could you share the compose file of your app where you hit the issue? Named links should continue to work within the same stack as well as cross stacks
@Sebastien_Allamand I’ve deployed a simplified version of your application (no volumes, no user defined env vars, used centos:latest image) on Rancher v1.0.0-rc2, and was able to resolve cloudsso-db-master successfully from cloudsso-northapi. I’ve tested it with ping/dig.
We’ve put some fixes for Rancher internal-dns since Rancher 63.1 (https://github.com/rancher/cattle/pull/1514); would you mind giving it another try on rc2? Let me know if you still hit the problem, and we will debug further. Also could you share if your client uses ping for dns resolution, or something else?