Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1977
  • Last Modified:

DnsCmd /ZoneAdd - Reverse Lookup Zone

Hi,
I am trying to add a reverse lookup zone with dnscmd with below command line. The zone is added but not in reverse lookup zones, its added in the forward lookup zones.

C:\>dnscmd ns1 /zoneadd 213.88.225.176-28 /primary /file 176-28.225.88.213.in-addr.arpa.dns /load
DNS Server ns1 created zone 213.88.225.176-28:
Command completed successfully.
dns.png
0
cynkan
Asked:
cynkan
1 Solution
 
oBdACommented:
That's because "213.88.225.176-28" is not the FQDN of a reverse lookup zone. The Microsoft DNS MMC displays it like that, but the dnscmd syntax requires the  FQDN. So try
dnscmd.exe ns1 /zoneadd 176-28.225.88.213.in-addr.arpa /primary /file 176-28.225.88.213.in-addr.arpa.dns /load
0
 
SandyCommented:
in-addr.arpa is necessary to be recognized as Reverse lookup zone.
0
 
Venugopal NCommented:
The reverse lookup zone address need to be in the format of Network Id.in.addr.arpa.

For example  forward lookup zone is 172.16.11/24 (that is, 172.16.11.0 with subnet mask 255.255.255.0), then the reverse lookup zone usually is named 11.16.172.in-addr.arpa.

Hence check the zonename and the file name provided with the dnscmd command.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now