How to assign azure custom dns to public ip

Multi tool use
How to assign azure custom dns to public ip
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.
1 Answer
1
2 options:
1. A record that points to public ip address explicitly
2. CNAME record that points to azure "internal" dns name
Actually i have tried A and CNAME but does not seems to work. Do i need to specify DNS zone name servers in some where? in cmd command e.g. nslookup myapp.com says "can't find myapp.com: Non-existent domain" cmd command nslookup myapp.com <name_server_name> i get name and ip.
– Sami Pylkkänen
Jul 1 at 19:09
sorry, i dont really understand, but you need to create a dns record in your dns zone or use azure provided one (you can map azure provided ip address to azure provided dns name which is configurable).
– 4c74356b41
Jul 1 at 19:19
Basically i have done this docs.microsoft.com/en-us/azure/dns/dns-getstarted-portal
– Sami Pylkkänen
Jul 1 at 19:59
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
have you done the delegation of your domain to azure dns with your domain registrar?
– mdeora
Jul 2 at 10:56