Link to home
Start Free TrialLog in
Avatar of bnusir
bnusir

asked on

creating forward & reverse zones on the DNS

if I have a csv file that contains machine name and ip how can I add all the names to one zone in the dns (forward & revers) automatically since ther are more than 400 machines?
Avatar of Toni Uranjek
Toni Uranjek
Flag of Slovenia image

Hi!

You can use "dnscmd recordadd".

Example:
dnscmd dnssvr1.contoso.com /recordadd test A 10.0.0.5

You would have to modify your csv file to include missing parts of upper command, save it as a txt file, rename it to bat or cmd and run it from command prompt.

HTH

Toni
Avatar of bnusir
bnusir

ASKER

if I have zone named switch under mydomain.edu and I need to import all records from that zone to the reverse lookupknowing that all the records names and ip addresses are in afile called test.txt what command should be issued to do so if the dns server is ad1.mydomain.edu ?
dnscmd will not import multiple records from text file it will add only single record. You would need custom script, or as I suggested, modify your existing file so that every line contains entire dnscmd command.
Avatar of bnusir

ASKER

the command did not work for adding one record .. any idea
Did you get any error?
Avatar of bnusir

ASKER

the command will add the record to the forward zone only but when I create the record manualy it will create the record in both forward and reverse lookup which I need ? any idea
ASKER CERTIFIED SOLUTION
Avatar of Toni Uranjek
Toni Uranjek
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin