author | Tero Marttila <terom@paivola.fi> |
Mon, 16 Dec 2013 18:36:09 +0200 | |
changeset 267 | 8c0c1b6e6aff |
parent 266 | 4eb3d73d852c |
child 268 | 560ba0544254 |
pvl/dns/zone.py | file | annotate | diff | comparison | revisions |
--- a/pvl/dns/zone.py Mon Dec 16 17:11:56 2013 +0200 +++ b/pvl/dns/zone.py Mon Dec 16 18:36:09 2013 +0200 @@ -272,6 +272,14 @@ ) @classmethod + def A (cls, name, ip, **opts) : + return cls(name, 'A', [ip], **opts) + + @classmethod + def CNAME (cls, name, host, **opts) : + return cls(name, 'CNAME', [host], **opts) + + @classmethod def TXT (cls, name, text, **opts) : return cls(name, 'TXT', [u'"{0}"'.format(text.replace('"', '\\"'))],