Created
April 7, 2018 19:25
-
-
Save dlangille/b6296fabb876ef7564b1ccf1db66dee4 to your computer and use it in GitHub Desktop.
using nsupdate to change NS and update SOA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nsupdate -k pathtoprivatekey | |
server yourunameserver | |
zone langille.org | |
update add langille.org. 3600 IN NS ns3.unixathome.org. | |
update add langille.org. 3600 IN NS ns2.unixathome.org. | |
update add langille.org. 3600 IN NS ns1.unixathome.org. | |
update delete langille.org. NS old1.unixathome.org. | |
update delete langille.org. NS old2.unixathome.org. | |
update delete langille.org. NS old3.unixathome.org. | |
update add langille.org. 3600 SOA ns1.unixathome.org. soa.unixathome.org. 2018040700 10800 1800 1209600 86400 | |
send |
@keith24 is referring to line 13 and I didn't know what was being referred to at first. I've never bumped a serial
when using nsupdate
I thought.
Then I realized it was line 13 which contains a serial. Yes, now I understand.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When setting the SOA line, don't forget to increment the serial (
2018040700
here) or the changes won't be applied.