Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

A worked example

Single answer

A Windows Server DNS server hosts contoso.com. Its default zone scope contains an A record for www with address 203.0.113.20. An existing zone scope named OfficeAnswer contains an A record for www with address 172.16.18.17.

The server has two predefined client subnet objects:

  • OfficeClients: 172.16.18.0/24
  • RemoteClients: 172.16.10.0/24

Clients query this server directly. Their queries arrive through the same server interface, 10.0.0.53. No DNS policies currently exist.

Queries from OfficeClients must return 172.16.18.17. Queries from every other subnet must retain the default answer.

Which command should you run?

Choose one answer
Why

Use the client-subnet criterion to match OfficeClients and select the OfficeAnswer zone scope. Matching the receiving server interface would include the other clients because their queries arrive through that same interface.

  • Not correct: Add-DnsServerQueryResolutionPolicy -Name "Policy1" -Action ALLOW -ClientSubnet "EQ,RemoteClients" -ZoneScope "OfficeAnswer,1" -ZoneName "contoso.com". The client-subnet criterion checks the subnet that sent the query. This command selects RemoteClients, leaving OfficeClients without the policy needed to select OfficeAnswer.
  • Not correct: Add-DnsServerQueryResolutionPolicy -Name "Policy1" -Action ALLOW -ServerInterfaceIP "EQ,10.0.0.53" -ZoneScope "OfficeAnswer,1" -ZoneName "contoso.com". The server-interface criterion checks the receiving interface rather than the client's subnet. All described clients use this interface, so this policy also selects OfficeAnswer for clients outside OfficeClients.
  • Correct: Add-DnsServerQueryResolutionPolicy -Name "Policy1" -Action ALLOW -ClientSubnet "EQ,OfficeClients" -ZoneScope "OfficeAnswer,1" -ZoneName "contoso.com". The policy matches the predefined OfficeClients subnet and selects OfficeAnswer, which contains the required address. Queries from other subnets do not match this policy.
  • Not correct: Add-DnsServerQueryResolutionPolicy -Name "Policy1" -Action ALLOW -ClientSubnet "NE,RemoteClients" -ZoneScope "OfficeAnswer,1" -ZoneName "contoso.com". This policy selects OfficeAnswer for OfficeClients and for any clients outside both predefined subnets. Those other clients must receive the default answer.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free