温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Windows Server 2016 智能DNS(五)

发布时间:2020-08-17 09:43:42 阅读:1938 作者:高文龙 栏目:系统运维
亿速云云数据库,读写分离,安全稳定,弹性扩容,低至0.3元/天!! 点击查看>>

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

首先是子网:
首先查看子网
Get-DnsServerClientSubnet
Windows Server 2016 智能DNS(五)
如果对现有的子网进行增加及删除我们有了解到参数

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

首先是增加:
set-dnsserverclientsubnet -name "USSubnet" -action add -IPv4Subnet "192.168.7.0/24"
Windows Server 2016 智能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"
Windows Server 2016 智能DNS(五)

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

3.DNS 区域记录:
首先查看
Get-DnsServerResourceRecord -ZoneName "byssoft.com" -zonescope "USZoneScope"
Windows Server 2016 智能DNS(五)
增加:
Windows Server 2016 智能DNS(五)
编辑:修改IP地址

$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"
Windows Server 2016 智能DNS(五)
Windows Server 2016 智能DNS(五)

亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI

开发者交流群×