Configuring and Troubleshooting DNS Flashcards
(46 cards)
How do you install DNS using PowerShell?
Install-WindowsFeature -Name DNSServer -IncludeManagementTools
- Iterative Query
- Recursive Query
- Iterative Query - Server returns the best answer, it never sends out an additional query. It may refer you to another server through a referral
- Recursive Query - client asks server to respond either with the requested answer or with an error
What is the difference between a Forwarder and a Conditional Forwarder?
- Forwarder: If the name query cannot be resolved using its local zone data or cache, then it will forward the query to the DNS server designated as a forwarder
- Conditional Forwarder: Conditional forwarders are DNS servers that only forward queries for specific domain names
How do you configure a DNS forwarder?
- Open DNS Manager
- Right-Click the Server, and select Properties
- Select the Forwarders tab
- Select Edit
- Add the IP Address or DNS Name
- Add the number of seconds before the forward query times out
How do you configure a conditional forward?
- Open DNS Manager
- Expand the Server
- Right-Click Conditional Forwarders, Select New Conditional Forwarder
- Add the IP Address
- Select if you want to store the conditional forwarder in AD
What is the following DNS record?
SOA
Start of Authority Record
What is the following DNS record?
A
Host Address Record (IPv4)
What is the following DNS record?
CNAME
Alias Record
What is the following DNS record?
MX
Mail Exchanger Record
What is the following DNS record?
SRV
Service Locator Record
What is the following DNS record?
NS
Name Server Record
What is the following DNS record?
AAAA
IPv6 host address record
What is the following DNS record?
PTR
Pointer resource record
How would you create a DNS Record in PowerShell?
- A
- AAAA
- CName
- MX
- PTR
- How would you create an other type of record?
- Add-DnsServerResourceRecordA
- Add-DnsServerResourceRecordAAAA
- Add-DnsServerResourceRecordCName
- Add-DnsServerResourceRecordMX
- Add-DnsServerResourceRecordPtr
- Add-DnsServerResourceRecord
- Follow-up Question: Can it create the records mentioned before and how?
- Answer: Yes, just append a dash record type to the cmdlet
- Follow-up Question: Can it create the records mentioned before and how?
What are the following types of zones?
- Primary
- Secondary
- Stub
- Active-Direcotry integrated
- Read/Write copy of a DNS Database
- Read-Only copy of a DNS database
- Copy of a zone that contains only records used to locate name servers
- Zone data is storead in AD rather than in Zone Files
Where would you configure Zone Transfers?
What are your options?
- The Zone Properties and the Zone Transfer Tab
- Options:
- Any Server
- Name Server
- Only the following Servers:
- Options:
How would you configure Zone Tranfers via PowerShell?
Set-DnsServerPrimaryZone -Name <zone> -SecureSecondaries </zone>
- NoTransfer - No transfers are allowed for this zone from this server.
- TransferAnyServer - Any server can request a zone transfer, including servers that you know nothing about and don’t manage or control.
- TransferToZoneNameServer - Only servers in the NS records for this zone are allowed to request transfers.
- TransferToSecureServers - Only servers specified with the -SecondaryServers
parameter are allowed to request a zone transfer.- ex. Set-DnsServerPrimaryZone -Name <zone> -SecureSecondaries -SecondaryServers <ipv4></ipv4></zone>
Where would you configure notifications so that Name Servers are up to date?
What are the options?
The Zone Properties, Zone Transfers Tab, select the Notify Button
- Servers listed on the name servers tab
- The Following Servers
How would you configure notification settings via PowerShell?
What are the three options?
How do you use them?
Set-DnsServerPrimaryZone -Notify
The equivalent Set-DnsServerPrimaryZone parameter is the -Notify parameter, which accepts the following strings:
- NoNotify - No notifications are sent, and secondary servers need to manually request a zone transfer or update.
- Set-DnsServerPrimaryZone -Name <zone> -Notify NoNotify</zone>
- Notify - All servers for whom there are NS records in the zone are automatically notified whenever a change is made to the zone.
- Set-DnsServerPrimaryZone -Name <zone> -Notify Notify</zone>
- NotifyServers - Only servers specified by the -NotifyServers parameter are automatically notified of changes to the domain. Any other servers that are allowed to request zone transfers must request the transfer manually.
- Set-DnsServerPrimaryZone -Name <zone> -Notify NotifyServers -NotifyServers <ipv4></ipv4></zone>
How would you have a DNS Server re-regester all services?
net stop netlogon
net start netlogon
What Zones can be stored in Active Directory?
- Primary
- Stub
When would you want to set up a Stub Zone?
When you want to set up a dynamic link between two companies. (Partner Companies)
This would allow clients to use the stub zone to find the server to resolve the DNS request to. Contains only Start Of Authority and Name Servers
When would you use a conditional fowarder?
How do you configure zone delegation via GUI?
PowerShell?
- Open DNS Manager:
- Select the Zone
- Right-Click, New Delgation
- Enter the Delegated Domain
- Add the IP Address for the Name Server
- Add-DnsServerZoneDelegation -Name “<parent>" -ChildZoneName "<child>" -NameServer "<name>" -IPAddress <ip></ip></name></child></parent>