Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 60 IN NAPTR"u"."E2U+sip"."!^.*$!!" .'"\nsend"|nsupdate

results in:

invalid rdata format: not a valid number
syntax error
share|improve this question
up vote 1 down vote accepted

Here's a working example:

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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