2

What's a working example for creating a NAPTR record using nsupdate against Bind9?

man nsupdate sais:

update add {domain-name} {ttl} [class] {type} {data...}
       Adds a new resource record with the specified ttl, class and data.

But I can't seem to find the correct format for NAPTR

My attempt:

echo -e 'update add enum.example.com 60 IN NAPTR 1.1.1.1.1."u"."E2U+sip"."!^.*$!test123test@example.com!" .'"\nsend"|nsupdate

results in:

invalid rdata format: not a valid number
syntax error
1

Here's a working example:

echo -e "nsupdate "update add 1.2.3.4 60 IN NAPTR 100 10 \"u\" \"E2U+h323\" \"!^.*$!test@example.com!\" ."\nserver localhost\nsend" | /usr/bin/nsupdate -y rndckey:mykey -v
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.