title: How to add reverse IP record by using DNSPython
body: <p>I try to add DNS record by using DNSPython;</p>
  
  <p>it works well when I set dns like this:</p>
  
  <pre><code>import dns.resolver
  import dns.query
  import dns.reversename
  import dns.update
  import dns.rdatatype
  
  update = dns.update.Update('test.com')
  update.replace('a', 3600, dns.rdatatype.A, '10.10.10.10')
  response = dns.query.tcp(update, '127.0.0.1')
  </code></pre>
  
  <p>However it doesn't work when I set reverse dns by the same way:</p>
  
  <pre><code>update = dns.update.Update('10.in-addr.arpa')
  update.replace('10.10.10.', 3600, dns.rdatatype.PTR, 'a.test.com')
  response = dns.query.tcp(update, '127.0.0.1')
  </code></pre>
  
  <p>I want to know how to set reverse dns successfully, Thx~</p>