How to recreate DNS zone information in case of accidental deletion.

  • 3693099
  • 30-Nov-2006
  • 19-Jun-2012

Environment

Novell NetWare 6.5
Novell NetWare 6
Novell NetWare 5.1
Novell DNS

Situation

The DNS zone information DNS-DHCP management console was accidentially deleted.

How to recreate DNS zone information in case of accidental deletion.

Resolution

If NAMED.NLM hasn't been reloaded after zone was deleted, and the cache hasn't refreshed, it is still possible to get information from DNS server cache.

There are three options to pull this zone data. Use DIG, NSLOOKUP, or HOST utility.

Where dns-server-name is the name (or ip address) of the server responsible for the deleted zone and zone.name is the deleted zone.


With DIG:

dig @dns-serverzone.name axfr > zone.file

or

dig @dns-sever -t axfr zone.name> zone.file


This outputs all records for the deleted zone.name piped into the file named zone.file.



With NSLOOKUP use interactive mode:

> nslookup

>Serverdns-server

>set q=any

>ls zone.name > FILE


This outputs all records for the deleted zone.name piped into the file named FILE.



With HOST:

host -lv -t axfr zone.name dns-server > zone.file

This outputs all records for the deleted zone.name piped into the file named zone.file.



Now you can usezone.fileto recreate zone with DNS-DHCP management console manually, or in creating a dns tool import file.


In the case where the zone has been deleted and NAMED was reloaded or the cache has already refreshed then you will need to use NDS backup to restore missing zone info.




Additional Information


Formerly known as TID# 10092445