nsupdate cheat sheet
nsupdate cheat sheet
Basic Syntax:
1.) nsupdate -vv -k /etc/rndc.key {file} (must put ‘send’ at end of file)
2.) nsupdate -vv -k /etc/rndc.key
> update whatever
> send
Add A Record:
** It’s important to understand when you add/remove an A record to DNS, you need to add both a FORWARD, and a REVERSE DNS Entry
update add test8.domain.local. 600 A 192.168.1.198
update add 198.1.168.192.in-addr.arpa. 600 PTR test8.domain.local
Delete A Record:
update delete test7.domain.local a
update delete 199.1.168.192.in-addr.arpa. 600 PTR
Add CNAME Record:
update add filer1.domain.local 600 cname test11.domain.local.
Delete CNAME Record:
update delete filer1.domain.local 600 cname test11.domain.local.
Add MX Record:
update add domain.local 86400 MX 10 zimbra.domain.local
Delete MX Record:
update delete domain.local 86400 MX 10 zimbra.domain.local
Add TXT Record:
update add domain.local. 600 TXT “What the fudge?”
Delete TXT Record:
update delete domain.local. 600 TXT “What the fudge?”
Add SPF Record:
update add mail.domain.local. 10 IN TXT “v=spf1 ip4:192.168.1.0/24> -all”
Delete SPF Record:
update delete mail.domain.local. 10 IN TXT “v=spf1 ip4:192.168.1.0/24> -all”
