question

MarianMatei avatar image
0 Votes"
MarianMatei asked LimitlessTechnology-2700 answered

DNS Server: Edit Name Server Record, Resolve button

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-dns
1.png (59.2 KiB)
2.png (61.2 KiB)
3.png (46.2 KiB)
4.png (25.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered MarianMatei commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if there's any progress or updates?

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



0 Votes 0 ·

Hi, DSPatrick. Thank you for your answer, but my thread is not about the DNS zone transfer; this is another story. Not needed in this context.

0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

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--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.