azure - How to associate public Ip Address with an existing domain name -


i don t understand how dns works!

i have public ip address bouaght azure , website has domain name (mywebsite.com) tied old server.

now have bought new vm in azure ( ubuntu).

now, how can change domain name (mywebsite.com) point new public ip address of vm @ azure.

do have in command line or not? ??

you should gave @ article walter linked - covers full scenario end end.

i assume you're using azure resource manager, you've mentioned public ip address resource. don't mention if you've configured dns name public ip address, or if has static or dynamic ip address. can find full details public ip address resource here: https://docs.microsoft.com/en-us/rest/api/network/create-or-update-a-public-ip-address

you're going need log service on you're hosting mywebsite.com , create dns record. record depends on below:

-if need users hit zone apex , resolve website (i.e. mywebsite.com), need ensure public ip address static, , create record ip address. like: mywebsite.com {the static public ip address}

-if users instead using sub-domain (i.e. www.mywebsite.com), should add dns name public ip address, , create cname sub-domain users hit dns name. like: www.mywebsite.com cname {your service ename}.{region}.cloudapp.azure.com

to expand on reasoning above -

  • using record dynamic ip address means you'd have update dns record time ip changed during time website offline

  • creating cname record not supported zone root or apex (i.e. mywebsite.com) per rfcs

please note there may small charge static public ip addresses. see here more information: https://azure.microsoft.com/en-us/pricing/

regards, stephen malone - azure networking


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -