DNS Server: Edit Name Server Record, Resolve button

Marian Matei 1 Reputation point
2022-05-18T20:24:48.907+00:00

Hello,
I am configuring a DNS Server on Windows Server 2022 Datacenter (in a test lab environment) and I want to change (resolve) the "Unknown" status with the right IP address.
Is there a PowerShell command (including .NET API) or CMD commands to use in order to accomplish what the "Resolve" button does?
Thank you.

203270-1.png

203296-2.png

203743-3.png

203734-4.png

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,020 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dave Patrick 425.7K Reputation points MVP
    2022-05-19T00:24:23.557+00:00

    On your primary DNS Server

    • Right click on the zone you want to transfer and go in the zone transfers
    • Click the check box Allow zone transfer and then click on the radio button Only to the following servers
    • In the list, add the IP address of your DNS server and it's done.

    On your new non-integrated DNS Server, in the DNS console

    • Create the reverse zone as first step
    • Right click on forward lookup zone
    • Select New Zone
    • Type the name of the zone you want to transfer (ex: somedomain.xxx.com) and click next
    • type the IP address of the DNS server from which you want to read the zone (the AD Server)
    • Click Next and click finish

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


  2. Limitless Technology 39,296 Reputation points
    2022-05-23T09:41:36.26+00:00

    Hi there,

    To create a new A record for the host in the specified DNS zone, use this command:

    Add-DnsServerResourceRecordA -Name ber-rds1 -IPv4Address 192.168.100.33 -ZoneName aa.com -TimeToLive 01:00:00

    To change (update) the IP address in the A record, you will have to apply quite a complex method since you cannot change an IP address of a DNS record directly:

    $NewADNS = get-DnsServerResourceRecord -Name ber-rds1 -ZoneName aa.com -ComputerName dc01
    $OldADNS = get-DnsServerResourceRecord -Name ber-rds1 -ZoneName aa.com -ComputerName dc01


    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments