Re: How to update DNS record

2007-03-02 Thread Martin P. Hellwig
Andi Clemens wrote: > > It's working!!! > Yeah! > I don't know why I didn't get this the first time I tried dnspython, but now > its working! And it's so easy, 3 lines of code: > > def make_dns_entry(pix): > update = dns.update.Update(_DOMAIN) > update.replace(pix.name, 3600, 'a', pix.

Re: How to update DNS record

2007-03-01 Thread Bjoern Schliessmann
Andi Clemens wrote: > It's working!!! > Yeah! > I don't know why I didn't get this the first time I tried > dnspython, but now its working! And it's so easy, 3 lines of code: Great, thanks for reporting back. Regards, Björn -- BOFH excuse #310: asynchronous inode failure -- http://mail.py

Re: How to update DNS record

2007-03-01 Thread Andi Clemens
Martin P. Hellwig wrote: > I'll looked at the perl function you mentioned and it seems to me (but > I'm not a pearl coder) that it uses the dynamic update procedure, which > is explained by the RFC 2136 (Bjoern mentioned that already). > > So I googled for "Python DNS dynamic update" and in the r

Re: How to update DNS record

2007-03-01 Thread Martin P. Hellwig
Andi Clemens wrote: > Hi, > > I want to update our DNS servers periodically with some IP addresses. But I > don't know how to do this. > I searched the Internet quite a while but I haven't found a good example how > to do this. > I want to change the A-Record for some IPs, this shouldn't be too ha

Re: How to update DNS record

2007-03-01 Thread andi . clemens
Hi, I'm just a trainee working here and I don't really know how the old Perl script worked. But I can post the function, maybe you can recognize what is going on there: my $domain = "wiv-dom.com"; my $nameserver = "bldc01.wiv-dom.com"; sub makeDNSEntry { my $res = new Net::DNS::Resolver;

Re: How to update DNS record

2007-03-01 Thread Jean-Paul Calderone
On 1 Mar 2007 04:14:23 -0800, [EMAIL PROTECTED] wrote: >On Mar 1, 10:33 am, Bjoern Schliessmann [EMAIL PROTECTED]> wrote: >> Read RFC 2136 (Dynamic updates in the DNS) and see if your server >> can be configured to do this. If not, you'll have to change the >> zone files manually and reload the DNS

Re: How to update DNS record

2007-03-01 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > It worked before with a perl script, but now I'm using django for > all our web services so I want to implement this update function > in Python as well. > I don't know how to do this in Python, right now I'm trying it > with twisted, but I don't what to do exactly. It w

Re: How to update DNS record

2007-03-01 Thread andi . clemens
On Mar 1, 10:33 am, Bjoern Schliessmann wrote: > Read RFC 2136 (Dynamic updates in the DNS) and see if your server > can be configured to do this. If not, you'll have to change the > zone files manually and reload the DNS config. It worked before with a perl script, but now I'm using django for a

Re: How to update DNS record

2007-03-01 Thread Bjoern Schliessmann
Andi Clemens wrote: > I want to change the A-Record for some IPs, this shouldn't be too > hard. I looked at dnspython and twisted, but I really don't have a > clue how to do this. > Has anyone done this before? Read RFC 2136 (Dynamic updates in the DNS) and see if your server can be configured to