I have resource group on azure containing virtual machine and kubernetes and load balancer and public ip address and etc.
I can access to my kubernetes app with direct public ip or public ip dns name. But problem is that i can't get azure custom dns (dns zone) working for my public ip. e.g. myapp.com
I have tried to assign public ip address in dns zone but not getting custom dns name working for my app.
2 options:
1. A record that points to public ip address explicitly
2. CNAME record that points to azure "internal" dns name
From the description it looks like you haven't updated the name server settings of your domain (e.g. myapp.com) to use Azure DNS's name servers (where you have created a zone for that domain name) for query resolutions.
The article linked below has instructions on how to do it. Please let us know if this answers your question. https://docs.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns