A
A
Andrey2020-08-05 15:24:16
Domain Name System
Andrey, 2020-08-05 15:24:16

How to disable A record in windows DNS server?

I needed one host on my network (Winsows Server 2012R2) with IIS to add another IP in order to hang the SSL I needed on it. In the properties of the adapter, I added this IP: so the host named Host1.domain.local got 2 IPs: 192.168.1.10 and 192.168.1.20. But after some time, services on IP 192.168.1.10 began to fall off. Because when querying by hostname Host1.domain.local they got IP 192.168.1.20.
I have a DNS server in my domain on Winsows Server 2012R2. There I saw that another DNS entry appeared: Host1.domain.local 192.168.1.20, which is logical, but I don’t need it. I deleted the entry and everything became normal, but as I understand it, after a while it will appear again. How can I disable dns resolution to a specific IP, or disable the automatic creation of a specific record?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrew, 2020-08-10
@Andryxans

I solved the issue by adding an additional IP with the SkipAsSource flag. Here is an example PowerShell command:

New-NetIPAddress –IPAddress 192.168.1.20 –PrefixLength 24 –InterfaceAlias “Ethernet0” –SkipAsSource $True

article for review

A
Alexey Dmitriev, 2020-08-05
@SignFinder

Disable DNS registration in the properties of the network adapter and manually create the necessary static entries.

A
Antuan1979, 2020-08-05
@Antuan1979

If I understand correctly, then:
Remove from the list of interfaces that the DNS server is listening on the interface:

  • Launch Microsoft Management Console (MMC) DNS Management.
  • Right-click DNS Server and select Properties.
  • Click the interfaces tab.
  • Listen, select the Only the following IP addresses check box.
  • Enter the IP addresses that the server should listen on. Include only the IP addresses of the interfaces that require the host record to be registered in DNS.
  • Click OK, and then close the DNS Management MMC.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question