Skip to content

DDNS Update fails with invalid TSIG using v3.0.2 #100

@gribnut

Description

@gribnut

Recently updated dnsjava from 2.1.9 to 3.0.2. After update, DDNS updates failed with invalid TSIG response from nameserver. Was using constructor of TSIG(String name, String key) with default algorithm of hmac-md5. Also tried specifying HMAC-MD5 algorithm Name with same result.

Sample code (works in v2.1.9 but fails with 3.0.2):
resolver.setTSIGKey(new TSIG(TSIG.HMAC_MD5, keyname, zone.getTsig_priv_key())); resolver.setTCP(true); response = resolver.send(update); log.trace("DDNS Response:\n{}",response.toString());
Response from (BIND 9.11.x nameserver) when using dnsjava 3.0.2:
;; ->>HEADER<<- opcode: UPDATE, status: SERVFAIL, id: 46875
;; flags: qr ; qd: 1 an: 0 au: 0 ad: 0
;; TSIG invalid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions