Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, May 14, 2019 3:35 AM
I writing a command line script in Windows8, I need to detect whenever a DNS suffix change( search domain) when we move from one network to another. i am using following command to detect DNS suffix changes:</b>
wmic nicconfig get DNSDomainSuffixSearchOrder /ALL /EVERY:5 /REPEAT:10
The output is DNSDomainSuffixSearchOrder {"my.dns.suffix.local"} {"my.dns.suffix.local"}
while this command is running i am switching between different networks but that does not change anything is the output for this command. both the networks i am switching between, has DHCP ,with DNS suffix config, which is being received in OSx and updated timely in OSx scipt but in windows update is not happening. Is there any file, which i can read these values from, if not being updated in the command properly?
Note:I have verified in OSx the saerch domains(dns suffixes) are being updated nicely.
I am expecting that the DNS Suffixes should be updated wheneveri switch between different networks if they have DHCP with DNS suffix config.
All replies (5)
Tuesday, May 14, 2019 7:30 AM
Hello Vikas Pushkar,
Thank you for posting in this forum.
I am a bit confused about your description. Which DNS suffix does the DNS suffix in your description mean?
Primary Dns suffix? DNS Suffix Search List? Or Connection-specific DNS Suffix?
For a domain-joined machine, the primary DNS suffix does not change due to network changes. The same is true of DNS Suffix Search List.
Best Regards,
Leon
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, May 14, 2019 8:03 AM
I am trying to refer to Primary and connection-specific DNS Suffix.
How do i know when a machine enters the domain and leaves the domain, if the machine is domain-joined?
Tuesday, May 14, 2019 8:40 AM
I don't know if there will be logs to record the operation of joining/leaving domain. This does not seem to be a problem with the network. You can go to the AD forum to find the answer.
Besides, when joining/leaving/changing domain, the client will automatically change the primary DNS suffix.
Best Regards,
Leon
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, May 17, 2019 7:46 AM
Hi,
Just checking in to see if the information provided was helpful.
Please let us know if you would like further assistance.
Best Regards,
Leon
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, May 21, 2019 8:49 AM
Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Best Regards,
Leon
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].