powershell - Difference between -NS and -NAMESERVER -
i writing script create necerassary dns records of zone in powershell. going through documentation, saw 2 properties add-dnsserverresourcerecord command. 1 -ns
, , other -nameserver
.
can please explain me difference between two? , 1 use set ns records zone? see in docs, not alieses each other.
-ns
switch parameter tells cmdlet adding ns
record dns.
-nameserver
how pass value of ns
record.
essentially -ns
required on ns
parameter set (because that's how parameter set gets chosen). -nameserver
available in ns
parameter set, , required in set because it's value need set.
so set ns
records zone, need both.
this similar relationship between -ptr
, -ptrdomainname
.
Comments
Post a Comment