Skip to content

Commit 0484c4d

Browse files
authored
Updating the file with the correct DNS Mariadb
Updating the file with the correct DNS Mariadb
1 parent 82e11d9 commit 0484c4d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/mariadb/howto-configure-privatelink-cli.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ az network private-endpoint create \
9797
Create a Private DNS Zone for MariDB server domain and create an association link with the Virtual Network.
9898
```azurecli-interactive
9999
az network private-dns zone create --resource-group myResourceGroup \
100-
--name "privatelink.database.azure.com"
100+
--name "privatelink.mariadb.database.azure.com"
101101
az network private-dns link vnet create --resource-group myResourceGroup \
102-
--zone-name "privatelink.database.azure.com"\
102+
--zone-name "privatelink.mariadb.database.azure.com"\
103103
--name MyDNSLink \
104104
--virtual-network myVirtualNetwork \
105105
--registration-enabled false
@@ -113,8 +113,8 @@ az resource show --ids $networkInterfaceId --api-version 2019-04-01 -o json
113113
114114
115115
#Create DNS records
116-
az network private-dns record-set a create --name mydemoserver --zone-name privatelink.database.azure.com --resource-group myResourceGroup
117-
az network private-dns record-set a add-record --record-set-name mydemoserver --zone-name privatelink.database.windows.net --resource-group myResourceGroup -a <Private IP Address>
116+
az network private-dns record-set a create --name mydemoserver --zone-name privatelink.mariadb.database.azure.com --resource-group myResourceGroup
117+
az network private-dns record-set a add-record --record-set-name mydemoserver --zone-name privatelink.mariadb.database.windows.net --resource-group myResourceGroup -a <Private IP Address>
118118
```
119119

120120
## Connect to a VM from the internet
@@ -146,14 +146,14 @@ Connect to the VM *myVm* from the internet as follows:
146146

147147
1. In the Remote Desktop of *myVM*, open PowerShell.
148148

149-
2. Enter  `nslookup mydemoserver.mariadb.privatelink.database.azure.com`.
149+
2. Enter  `nslookup mydemoserver.privatelink.mariadb.database.azure.com`.
150150

151151
You'll receive a message similar to this:
152152
```azurepowershell
153153
Server: UnKnown
154154
Address: 168.63.129.16
155155
Non-authoritative answer:
156-
Name: mydemoserver.mariadb.privatelink.database.azure.com
156+
Name: mydemoserver.privatelink.mariadb.database.azure.com
157157
Address: 10.1.3.4
158158
159159
3. Test the private link connection for the MariaDB server using any available client. In the example below I have used [MySQL Workbench](https://dev.mysql.com/doc/workbench/en/wb-installing-windows.html) to do the operation.
@@ -163,7 +163,7 @@ Connect to the VM *myVm* from the internet as follows:
163163
| Setting | Value |
164164
| ------- | ----- |
165165
| Connection Name| Select the connection name of your choice.|
166-
| Hostname | Select *mydemoserver.mariadb.privatelink.database.azure.com* |
166+
| Hostname | Select *mydemoserver.privatelink.mariadb.database.azure.com* |
167167
| Username | Enter username as *username@servername* which is provided during the MariaDB server creation. |
168168
| Password | Enter a password provided during the MariaDB server creation. |
169169
||
@@ -182,4 +182,4 @@ az group delete --name myResourceGroup --yes
182182
```
183183

184184
## Next steps
185-
Learn more about [What is Azure private endpoint](https://docs.microsoft.com/azure/private-link/private-endpoint-overview)
185+
Learn more about [What is Azure private endpoint](https://docs.microsoft.com/azure/private-link/private-endpoint-overview)

0 commit comments

Comments
 (0)