Skip to content

Commit 406fa56

Browse files
committed
create zone and populate example needed FQDN for CNAME dns record
1 parent bc99cb5 commit 406fa56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/example_create_zone_and_populate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def main():
5050
{'name':'foo', 'type':'AAAA', 'content':'2001:d8b::1'},
5151
{'name':'foo', 'type':'A', 'content':'192.168.0.1'},
5252
{'name':'duh', 'type':'A', 'content':'10.0.0.1', 'ttl':120},
53-
{'name':'bar', 'type':'CNAME', 'content':'foo'},
53+
{'name':'bar', 'type':'CNAME', 'content':'foo.%s' % (zone_name)}, # CNAME requires FQDN at content
5454
{'name':'shakespeare', 'type':'TXT', 'content':"What's in a name? That which we call a rose by any other name would smell as sweet."}
5555
]
5656

0 commit comments

Comments
 (0)