Skip to content

Commit

Permalink
fix doco typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rthalley committed Sep 25, 2024
1 parent 1ab4c4c commit f574403
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/zonefile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Read RRSets with name, TTL, and rdclass forced::
mx 20 b
ns ns1
'''
rrsets = dns.read_rrsets(input, name='name', ttl=300)
rrsets = dns.zonefile.read_rrsets(input, name='name', ttl=300)

Read RRSets with name, TTL, rdclass, and rdtype forced::

input = '''
10 a
20 b
'''
rrsets = dns.read_rrsets(input, name='name', ttl=300, rdtype='mx')
rrsets = dns.zonefile.read_rrsets(input, name='name', ttl=300, rdtype='mx')

Note that in this case the length of rrsets will always be one.

Expand All @@ -40,8 +40,8 @@ default_rdclass)::
name1 20 MX 10 a.example.
name2 30 IN MX 20 b
'''
rrsets = dns.read_rrsets(input, origin='example', relativize=True,
rdclass=None)
rrsets = dns.zonefile.read_rrsets(input, origin='example', relativize=True,
rdclass=None)

The dns.zonefile.Reader Class
=============================
Expand Down

0 comments on commit f574403

Please sign in to comment.