Windows Server 2016 智能DNS(五)

Windows Server 2016 智能DNS(五)
咱们前面几篇文章介绍了如何Windows Server 2016 智能DNS的相关配置介绍,今天继续介绍Windows Server 2016 智能DNS的配置管理,前面咱们介绍了根据本身的需求来配置相关功能,可是对于配置的相关命令咱们如何修改呢?固然既然有建立,确定会有相关的编辑、删除命令,那今天没我就来讲说相关记录的编辑操做。ide

首先是子网:
首先查看子网
Get-DnsServerClientSubnet
DNS
若是对现有的子网进行增长及删除咱们有了解到参数3d

-action add 是增长子网
-action remove是删除子网

首先是增长:
set-dnsserverclientsubnet -name "USSubnet" -action add -IPv4Subnet "192.168.7.0/24"
DNS
而后是删除
set-dnsserverclientsubnet -name "USSubnet" -action remove -IPv4Subnet "192.168.7.0/24"
Windows Server 2016 智能DNS(五)
固然删除子网的命令就简单了
Remove-DnsServerClientSubnet -Name "SubnetName"
2.而后就是DNS区域
查看:Get-DnsServerZoneScope -ZoneName "byssoft.com"
DNScode

增长:add-DnsServerZoneScope -ZoneName "ZoneName"
删除:remove-DnsServerZoneScope -ZoneName "ZoneName"

3.DNS 区域记录:
首先查看
Get-DnsServerResourceRecord -ZoneName "byssoft.com" -zonescope "USZoneScope"
DNS
增长:
DNS
编辑:修改IP地址server

$Record = Get-DnsServerResourceRecord -ZoneName "byssoft.com" -Name "g" -ZoneScope "USZoneScope"
$NewRecord = $Record.Clone()
$NewRecord.RecordData.IPv4Address = '192.168.20.20'
Set-DnsServerResourceRecord -ZoneName byssoft.com -ZoneScope "USZoneScope" -OldInputObject $Record -NewInputObject $NewRecord

Windows Server 2016 智能DNS(五)
删除:
Remove-DnsServerResourceRecord -ZoneName "byssoft.com" -RRType "A" -name "g" -RecordData "192.168.20.20" -ZoneScope "USZoneScope"
DNS
DNSblog

相关文章
相关标签/搜索