DNS Notes: Difference between revisions
Jump to navigation
Jump to search
(Created page with "'''Updated 10/16/2020''' EVERYTHING ALPHA == Troubleshooting == '''PLEASE MAKE BACKUP BEFORE YOU EDIT ANY FILE!!!''' === Broken DNS Bind/named service === $ nslookup <server...") |
No edit summary |
||
Line 25: | Line 25: | ||
rndc reload | rndc reload | ||
service named restart | service named restart | ||
[[Category:Sysadmin]] |
Latest revision as of 22:23, 16 October 2020
Updated 10/16/2020 EVERYTHING ALPHA
Troubleshooting
PLEASE MAKE BACKUP BEFORE YOU EDIT ANY FILE!!!
Broken DNS Bind/named service
$ nslookup <server_name> ;; Got SERVFAIL reply from XX.XX.X.X, trying next server -> This means alpha is not about to resolve db.cluster.ucsf.bkslab.org file $ nslookup <IP Address> ;; Got SERVFAIL reply from XX.XX.X.X, trying next server -> This means alpha is not about to resolve db.20.10.in-addr-arpa file for reverse ip > name lookup
This is caused by broken db files in /var/named/dynamic either from incorrect syntax (space instead of tab) or mismatched serial number between .jnl file and db.* file when you manually edit those db.* files.
when run
$ rndc reload
You will see these error in the log in /var/log/named/default.log
16-Oct-2020 14:00:21.271 general: error: zone cluster.ucsf.bkslab.org/IN: journal rollforward failed: journal out of sync with zone 16-Oct-2020 14:00:21.271 general: error: zone cluster.ucsf.bkslab.org/IN: not loaded due to errors. 16-Oct-2020 14:00:21.272 general: info: zone desktop.ucsf.bkslab.org/IN: loaded serial 157
What to do:
Save a back up and Make sure the syntax on db.cluster.ucsf.bkslab.org or db.20.10.in-addr-arpa is correct (remember to change the serial number) rm db.cluster.ucsf.bkslab.org.jnl rm db.20.10.in-addr-arpa.jnl rndc reload service named restart