Information Technology Reference
In-Depth Information
This command returns the following (because the -PassThru parameter is set):
ZoneName : TreyResearch.net
AgingEnabled : True
AvailForScavengeTime : 4/7/2014 10:00:00 AM
RefreshInterval : 3.00:00:00
NoRefreshInterval : 3.00:00:00
ScavengeServers : 192.168.10.2
Next, begin the aging process on the zone with the following:
Set-DnsServerResourceRecordAging -ZoneName TreyResearch.net
Coniguring record options including time to Live (ttL)
and weight
You can configure resource record options for record types that support individual configura-
tion of options, such as SRV resource records. The combination of weight and priority control
the server that will deliver specific services. So, for example, if you have multiple Network
News Transfer Protocol (NNTP) servers that use SRV records, you can set both a Priority value
and a Weight value. For example, assume that you have two SRV records for the service, each
with a priority of 1 and each pointing to a different service provider. If one has a weight of 2,
and the other a weight of 8, a query for the service will return the SRV record with the weight
of 8 four times for every one time it returns the SRV record with a weight of 2.
MX resource records support a Preference setting. This is equivalent to the Priority setting
on an SRV record. The record returned includes the Preference or Priority value, and the low-
est Preference (MX) or Priority (SRV) value is used if the server it points to is available.
To set the weight on an SRV record, follow these steps:
1. Open the DNS Manager console and navigate to the zone that hosts the SRV record.
2. Right-click the SRV record and select Properties from the menu.
3. Enter the weight and priority in the appropriate boxes and click OK to update the
record and close the Property dialog box.
To set the weight at the command line, use the DnsServerResourceRecord cmdlets. For
example, to set the weight of the _nntp SRV record to 10, use the following commands:
$NewRRObj = $OrigRRObj = Get-DnsServerResourceRecord -Name _nntp `
-ZoneName TreyResearch.net `
-RRType SRV
$NewRRObj.RecordData.Weight = 20
Set-DnsServerResourceRecord -NewInputObject $NewRRObj `
-OldInputObject $OrigRRObj `
-ZoneName treyresearch.net
 
 
Search WWH ::




Custom Search