Add New Host on DNS Manager from a file

IT_CO 1 Reputation point
2022-04-05T15:00:56.363+00:00

Hello all,

Is-it possible to add new host on DNS Manager from a file.

I need to add a lot of new host and I want to do that with a file.

It take a lot of time if I need to that one by one.

Thank in advance

Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,021 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2022-04-05T15:25:18.303+00:00

    Domain or workgroup? If domain are you adding name servers without domain controller?

    0 comments No comments

  2. IT_CO 1 Reputation point
    2022-04-06T07:18:02.657+00:00

    Domain,

    I don't understand your question.

    I enter server name and after in forward lookup zone I go on my plant domain

    I don't know if it's the right answer


  3. Dave Patrick 426.1K Reputation points MVP
    2022-04-06T13:40:32.02+00:00

    You can add A records via PowerShell.
    https://learn.microsoft.com/en-us/powershell/module/dnsserver/add-dnsserverresourcerecorda?view=windowsserver2022-ps

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  4. IT_CO 1 Reputation point
    2022-04-07T12:39:30.853+00:00

    I want to import by a file CSV or TXT, is it possible ?

    Via powershell I need to do 1 by 1 it's the same if I do that on Dns manager directly

    0 comments No comments

  5. Dave Patrick 426.1K Reputation points MVP
    2022-04-07T13:13:13.983+00:00

    Yes, it is possible. You can follow along here.
    http://woshub.com/create-manage-dns-zones-records-powershell/

    --please don't forget to upvote and Accept as answer if the reply is helpful--