(nameserver, name, type="ALL", ttl=10)
Send a DNS delete message to a nameserver for "name"
dyndns_del(nameserver, name, type="ANY", ttl=10) -> result code (0=ok)

example: dyndns_del("ns1.toto.com", "dyn.toto.com")
RFC2136
Send a DNS delete message to a nameserver for "name"
dyndns_del(nameserver, name, type="ANY", ttl=10) -> result code (0=ok)
Send a DNS delete message to a nameserver for name dyndns_del ( nameserver name type = ANY ttl = 10 ) - > result code ( 0 = ok )
def dyndns_del(nameserver, name, type="ALL", ttl=10):
    """Send a DNS delete message to a nameserver for "name"
dyndns_del(nameserver, name, type="ANY", ttl=10) -> result code (0=ok)

example: dyndns_del("ns1.toto.com", "dyn.toto.com")
RFC2136
"""
    zone = name[name.find(".")+1:]
    r=sr1(IP(dst=nameserver)/UDP()/DNS(opcode=5,
                                       qd=[DNSQR(qname=zone, qtype="SOA")],
                                       ns=[DNSRR(rrname=name, type=type,
                                                 rclass="ANY", ttl=0, rdata="")]),
          verbose=0, timeout=5)
    if r and r.haslayer(DNS):
        return r.getlayer(DNS).rcode
    else:
        return -1
def dyndns_del ( nameserver , name , type = "ALL" , ttl = 10 ) : zone = name [ name . find ( "." ) + 1 : ] r = sr1 ( IP ( dst = nameserver ) / UDP ( ) / DNS ( opcode = 5 , qd = [ DNSQR ( qname = zone , qtype = "SOA" ) ] , ns = [ DNSRR ( rrname = name , type = type , rclass = "ANY" , ttl = 0 , rdata = "" ) ] ) , verbose = 0 , timeout = 5 ) if r and r . haslayer ( DNS ) : return r . getlayer ( DNS ) . rcode else : return - 1