Skip to content

Commit 0a12ac6

Browse files
authored
Update dns-operations-recordsets-cli.md
Updating IP Addresses per https://review.learn.microsoft.com/en-us/help/platform/repo-secrets-alerts-guidelines?branch=main
1 parent d2f29ef commit 0a12ac6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/dns/dns-operations-recordsets-cli.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ The record set name given must be a *relative* name, meaning it must exclude the
4545

4646
If a new record set is created, a default time-to-live (TTL) of 3600 is used. For instructions on how to use different TTLs, see [Create a DNS record set](#create-a-dns-record-set).
4747

48-
The following example creates an A record called *www* in the zone *contoso.com* in the resource group *MyResourceGroup*. The IP address of the A record is *1.2.3.4*.
48+
The following example creates an A record called *www* in the zone *contoso.com* in the resource group *MyResourceGroup*. The IP address of the A record is *203.0.113.11*.
4949

5050
```azurecli-interactive
51-
az network dns record-set a add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name www --ipv4-address 1.2.3.4
51+
az network dns record-set a add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name www --ipv4-address 203.0.113.11
5252
```
5353

5454
To create a record set in the apex of the zone (in this case, "contoso.com"), use the record name "\@", including the quotation marks:
5555

5656
```azurecli-interactive
57-
az network dns record-set a add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name "@" --ipv4-address 1.2.3.4
57+
az network dns record-set a add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name "@" --ipv4-address 203.0.113.11
5858
```
5959

6060
## Create a DNS record set
@@ -92,7 +92,7 @@ There's no example for create an SOA record set, since SOAs are created and dele
9292
### Create an AAAA record
9393

9494
```azurecli-interactive
95-
az network dns record-set aaaa add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name test-aaaa --ipv6-address 2607:f8b0:4009:1803::1005
95+
az network dns record-set aaaa add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name test-aaaa --ipv6-address FD00::1
9696
```
9797

9898
### Create a CAA record
@@ -123,7 +123,7 @@ az network dns record-set mx add-record --resource-group myresourcegroup --zone-
123123
### Create an NS record
124124

125125
```azurecli-interactive
126-
az network dns record-set ns add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name test-ns --nsdname ns1.contoso.com
126+
az network dns record-set ns add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name test-ns --nsdname ns1.fabrikam.com
127127
```
128128

129129
### Create a PTR record
@@ -192,10 +192,10 @@ This command deletes a DNS record from a record set. If the last record in a rec
192192

193193
When you use the `az network dns record-set <record-type> add-record` command, you need to specify the record getting deleted and the zone to delete from. These parameters are described in [Create a DNS record](#create-a-dns-record) and [Create records of other types](#create-records-of-other-types) above.
194194

195-
The following example deletes the A record with value '1.2.3.4' from the record set named *www* in the zone *contoso.com*, in the resource group *MyResourceGroup*.
195+
The following example deletes the A record with value '203.0.113.11' from the record set named *www* in the zone *contoso.com*, in the resource group *MyResourceGroup*.
196196

197197
```azurecli-interactive
198-
az network dns record-set a remove-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name "www" --ipv4-address 1.2.3.4
198+
az network dns record-set a remove-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name "www" --ipv4-address 203.0.113.11
199199
```
200200

201201
## Modify an existing record set
@@ -206,11 +206,11 @@ Each record set contains a [time-to-live (TTL)](dns-zones-records.md#time-to-liv
206206

207207
To modify an existing record of type A, AAAA, CAA, MX, NS, PTR, SRV, or TXT, you should first add a new record and then delete the existing record. For detailed instructions on how to delete and add records, see the earlier sections of this article.
208208

209-
The following example shows how to modify an 'A' record, from IP address 1.2.3.4 to IP address 5.6.7.8:
209+
The following example shows how to modify an 'A' record, from IP address 203.0.113.11 to IP address 203.0.113.22:
210210

211211
```azurecli-interactive
212-
az network dns record-set a add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name www --ipv4-address 5.6.7.8
213-
az network dns record-set a remove-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name www --ipv4-address 1.2.3.4
212+
az network dns record-set a add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name www --ipv4-address 203.0.113.22
213+
az network dns record-set a remove-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name www --ipv4-address 203.0.113.11
214214
```
215215

216216
You can't add, remove, or modify the records in the automatically created NS record set at the zone apex (`--Name "@"`, including quote marks). For this record set, the only changes permitted are to modify the record set TTL and metadata.
@@ -250,7 +250,7 @@ This restriction applies only to the NS record set at the zone apex. Other NS re
250250
The following example shows how to add another name server to the NS record set at the zone apex:
251251

252252
```azurecli-interactive
253-
az network dns record-set ns add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name "@" --nsdname ns1.myotherdnsprovider.com
253+
az network dns record-set ns add-record --resource-group myresourcegroup --zone-name contoso.com --record-set-name "@" --nsdname ns1.fabrikam.com
254254
```
255255

256256
### To modify the TTL of an existing record set

0 commit comments

Comments
 (0)