Announcement

Collapse
No announcement yet.

Batch File

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch File

    Hi,

    Could someone help me by showing me how I can create a batch file to read the contents of a text file to add DNS entries e.g. A Record, CNAME, etc. I am creating the text file via ASP and to add DNS records however do not know how to write a batch file to add DNS records via DNSCMD. I appreciate any help.

  • #2
    check the help of the support tools for the syntax of DNSCMD. To create a new A record, for instance:

    dnscmd /recordadd your.domain newhost A 10.1.2.3

    This adds 'newhost' with IP 10.1.2.3 to zone your.domain. Enter this command into a *.cmd file, and you're done.

    Comment

    Working...
    X