none
DNS GPO

    Question

  • Under The network Card properties Advanced TCP/IP settings DNS is there a policy to enforce that "Register this connection's addresses in DNS" is always checked?

    Tuesday, June 25, 2013 1:57 PM

Answers

All replies

  • Through group policy you cannot make this change... With script Yes....

    Prajwal Desai http://PrajwalDesai.Com

    Tuesday, June 25, 2013 2:09 PM
  • You can make a batch file out of this script and add it to a GPO that will push to the computers.

    netsh int ipv4 set dnsservers name="Local Area Connection" source=DHCP register=primary


    • Edited by rkassing Tuesday, June 25, 2013 4:04 PM added more
    Tuesday, June 25, 2013 4:03 PM
  • Thanks for your replies

    Many of the cards may have been renamed or are multi-homed, many are Wireless Network Connection, Local Area Connection 2 etc.

    Many of these may be non DHCP but still need the setting.

    Just looking for the best solution given my varying situation.



    • Edited by jamicon Tuesday, June 25, 2013 5:26 PM updated
    Tuesday, June 25, 2013 4:28 PM
  • There may be another way But I don't know of a wildcard for this

    set dnsserver name="Local Area Connection" source=dhcp
    You can make multiple lines for each name.

    set dnsserver "Local Area Connection" static 10.0.0.1 primary
    This will be a little more difficult because you have to add the IP address

    Hope someone else can be more help

    Tuesday, June 25, 2013 5:36 PM
  • wmic path win32_networkadapterconfiguration where ipenabled=true call setdynamicdnsregistration 1,1

    anyway, you will need a script because adapter configuration in the registry is based on GUIDs...


    Martin

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

    Restore the forum design - my user defined Cascading Style Sheet!

    Tuesday, June 25, 2013 8:03 PM
  • so if I batch "wmic path win32_networkadapterconfiguration where ipenabled=true call setdynamicdnsregistration 1,1"

    into a computer logon script it will set it for all network cards?

    Wednesday, June 26, 2013 12:45 PM
  • Yes. No liability, of course ,-))

    Martin

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

    Restore the forum design - my user defined Cascading Style Sheet!

    • Marked as answer by jamicon Friday, June 28, 2013 1:45 PM
    Thursday, June 27, 2013 10:45 AM
  • SUPER KEWL!

    • Edited by jamicon Friday, June 28, 2013 1:45 PM updated
    Friday, June 28, 2013 1:06 PM