Difference between revisions of "Windows DNS"
Jump to navigation
Jump to search
(Created page with "Update A record ``` get-dnsserverresourcerecord -name "hostname" -ZoneName "example.com" Remove-DnsServerResourceRecord -ZoneName "example.com" -RRType "A" -Name "hostname" -R...") |
|||
Line 5: | Line 5: | ||
add-dnsserverresourcerecorda -ZoneName "example.com" -name "hostname" -ipv4address "10.x.x.y" | add-dnsserverresourcerecorda -ZoneName "example.com" -name "hostname" -ipv4address "10.x.x.y" | ||
get-dnsserverresourcerecord -name "hostname" -ZoneName "example.com" | 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" | ||
``` | ``` |
Latest revision as of 06:01, 5 February 2022
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"