On Sat, Jul 10, 2010 at 10:38 PM, Ray <[email protected]> wrote:
> Thanks Luca. This is exactly what I wanted. Any idea how to
> change this to CNAME instead of A record?
>
> rrset = dns.rrset.from_text(q.name, 1000,
>                   dns.rdataclass.IN, dns.rdatatype.CNAME, 'test.com')
>
> doesn't do it. It says:
> File "/Library/Python/2.5/site-packages/dns/name.py",
>  line 400, in to_wire
>    raise NeedAbsoluteNameOrOrigin
>

I definitely don't know. But, try using 'test.com.'
that is, with a trailing dot.
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-users

Reply via email to