Windows DNS
Jump to navigation
Jump to search
Update A record
get-dnsserverresourcerecord -name "hostname" -ZoneName "example.com" Remove-DnsServerResourceRecord -ZoneName "example.com" -RRType "A" -Name "hostname" -RecordData "10.x.x.x" -force add-dnsserverresourcerecorda -ZoneName "example.com" -name "hostname" -ipv4address "10.x.x.y" get-dnsserverresourcerecord -name "hostname" -ZoneName "example.com"
Add-DnsServerResourceRecordCName -Name "myapp" -HostNameAlias "lb.example.com" -ZoneName "example.com" Remove-DnsServerResourceRecord -ZoneName "example.com" -RRType "CNAME" -Name "kb" Add-DnsServerResourceRecordCName -Name "myapp" -HostNameAlias "host1.example.com" -ZoneName "example.com"