Skip to content

Commit 15ff8db

Browse files
authored
docs: fix DNS examples in README.md (#42)
Fix DNS examples in `README.md`. Signed-off-by: Roald Nefs <[email protected]>
1 parent ad10139 commit 15ff8db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ dns_entry_data = {
565565
"content": "127.0.0.1"
566566
}
567567
# Add the DNS record to the domain.
568-
domain.delete(dns_entry_data)
568+
domain.dns.create(dns_entry_data)
569569
```
570570

571571
#### Update single DNS entry
@@ -589,7 +589,7 @@ dns_entry_data = {
589589
"content": "127.0.0.2" # The update content.
590590
}
591591
# Update the content of a single DNS record.
592-
domain.update(dns_entry_data)
592+
domain.dns.update(dns_entry_data)
593593
```
594594

595595
#### Update all DNS entries for a domain
@@ -636,7 +636,7 @@ dns_entry_data = {
636636
"content": "127.0.0.1"
637637
}
638638
# Delete the DNS record from the domain.
639-
domain.delete(dns_entry_data)
639+
domain.dns.delete(dns_entry_data)
640640
```
641641

642642
The **transip.v6.objects.DnsEntry** class also provides a **delete()** method to delete a **DnsEntry** object from an instance.

0 commit comments

Comments
 (0)