tag:blogger.com,1999:blog-9238405.post112447551420530510..comments2026-04-17T02:13:19.234-07:00Comments on Agile Testing: Managing DNS zone files with dnspythonGrig Gheorghiuhttp://www.blogger.com/profile/17863511617654196370noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-9238405.post-52730348591694132372018-03-13T05:29:55.260-07:002018-03-13T05:29:55.260-07:00Thanks a lot. It helped me to import DNS data into...Thanks a lot. It helped me to import DNS data into another script...Stefanhttps://www.blogger.com/profile/01220966556107706102noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-88136258722411701392016-11-10T09:48:41.415-08:002016-11-10T09:48:41.415-08:00This is a great tutorial. I just want to add an e...This is a great tutorial. I just want to add an example for PTR records:<br /><br />hostname='foo.example.net.'<br />target='123'<br />zone = dns.zone.from_file(f='0.10.10.rev', origin='0.10.10.in-addr.arpa')<br />rdataset = zone.find_rdataset(target, rdtype=PTR, create=True)<br />rdata = dns.rdtypes.ANY.PTR.PTR(IN, PTR, dns.name.Name(hostname.split('.')))<br />rdataset.add(rdata, ttl=86400)<br /><br />The above will add:<br />123 86400 IN PTR foo.example.net. <br />to the zoneAnonymoushttps://www.blogger.com/profile/09050910737454681565noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-7863090850610924132014-04-08T07:08:47.794-07:002014-04-08T07:08:47.794-07:00Hello, I have a issue with cname add exemple.
In m...Hello, I have a issue with cname add exemple.<br />In my test at the line:<br /> rdata = dns.rdtypes.ANY.CNAME.CNAME(IN, CNAME, target)<br /><br />I have this error:<br />Traceback (most recent call last):<br /> File "./test.py", line 57, in <br /> rdata = dns.rdtypes.ANY.CNAME.CNAME(IN, CNAME, target)<br />AttributeError: 'module' object has no attribute 'CNAME'<br /><br />I am in centos6 with:<br />python-dns-1.11.1-2.el6.noarch<br />Python 2.6.6<br /><br />Someone have a idea ?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-32707871699480371932013-09-25T12:39:57.031-07:002013-09-25T12:39:57.031-07:00Great post!
Thanks so much for doing a thorough j...Great post!<br /><br />Thanks so much for doing a thorough job of documenting it.Anonymoushttps://www.blogger.com/profile/02089636435340180032noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-45940005223988085472012-12-19T05:14:48.550-08:002012-12-19T05:14:48.550-08:00can I add a nameserver to resolv.conf file ?can I add a nameserver to resolv.conf file ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-71697157059062095072011-02-22T22:06:34.070-08:002011-02-22T22:06:34.070-08:00Thanks for writing this post, it helped a lot when...Thanks for writing this post, it helped a lot when I was trying to wrap my head around dnspython.Nick W.noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-35610449881909524032010-04-26T16:28:28.905-07:002010-04-26T16:28:28.905-07:00This is great stuff - Thanks! I was wondering if y...This is great stuff - Thanks! I was wondering if you could post something on how to take a text file with about 100 domains in it, and then print the A records into another file or on the screen? Thanks!JayJayhttps://www.blogger.com/profile/05328991733117618412noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-40478133373422001382009-11-03T02:06:38.194-08:002009-11-03T02:06:38.194-08:00Thanks for sharing; This was really useful!Thanks for sharing; This was really useful!johnny halfmoonnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-69415615694826967662008-03-30T20:46:00.000-07:002008-03-30T20:46:00.000-07:00to update a cname:target = dns.name.from_text("mai...to update a cname:<BR/><BR/>target = dns.name.from_text("mail.example.com")<BR/>rdataset = zone.find_rdataset("mail", rdtype="CNAME")<BR/><BR/>for rdata in rdataset:<BR/> rdata.target = target<BR/><BR/>to update ns:<BR/>rdataset = zone.find_rdataset("@", rdtype="NS")<BR/>for rdata in rdataset:<BR/> if str(rdata.target) == "ns1.foo.com.": # old ns<BR/> rdata.target = dns.name.from_text("ns1.example.com")<BR/> elif str(rdata.target) == "ns2.foo.com.": # old ns<BR/> rdata.target = dns.name.from_text("ns2.example.com")Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-70450198774759476082007-04-10T17:22:00.000-07:002007-04-10T17:22:00.000-07:00Impressive article. Keep up the great work.regards...Impressive article. Keep up the great work.<BR/><BR/>regards<BR/>AnandAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-1158937779347889592006-09-22T08:09:00.000-07:002006-09-22T08:09:00.000-07:00great powergreat powerfarrohttps://www.blogger.com/profile/01072238635114613268noreply@blogger.com