wmic nicconfig where "description='NAME OF THE ADAPTER HERE'" call setdnsserversearchorder("10.0.0.1", "10.0.0.2")
To see all the fun other stuff you can do with this class (Win32_NetworkAdapterConfiguration), see here or check out the method docs.
wmic nicconfig call /?
EDIT: As I pointed out later, you probably want one of these instead:
wmic nicconfig where "description='NAME OF THE ADAPTER HERE'" call setdnsdomain("yourdomain.tld") (so yourdomain.tld is like "microsoft.com" in the official documentation).
If you want to change the order of domains you search (if you have a bunch, you try
wmic nicconfig where "description='NAME OF THE ADAPTER HERE'" call setdnssuffixsearchorder("yourdomain1.tld", "yourdomain2.tld")
If you want to apply this to every card or adapter, you can just say anyone that is not null. I have not tested this and do not know the impact on the OS and VPN-based virtual adapters on your system, so please test that before destroying a production box). So, revisit the above example.
wmic nicconfig where "description=!=null" call setdnssuffixsearchorder("yourdomain1.tld", "yourdomain2.tld")
Again, look at the caveat above. So, if you want this in a quick and dirty batch file, just do something like this (for a specific adapter at this point, I want you to know if you need to apply to all before you copy one of my half-assed scripts. I madea pretty junky one for you on Pastebin. I hope it helps. I have dumped it to the screen below. Make sure to "quote your adapter name" and quote "your domain name" when using the batch file, or it will be most unfun with the crazy results that will bork your computer.
IF NOT %1=="" GOTO CHECKPARAM
ECHO You did not mention an adapter for me to configure.
REM Make sure that other than setting the adapter name,
REM you actually have a domain set.
IF NOT %2=="" GOTO CONFIGDNS
ECHO You did not supply a domain you want configured.
%WINDIR%\system32\wmic.exe nicconifg "where description='%~1'" call setdnsdomain("%~2")
IF %ERRORLEVEL%==0 GOTO :EOF
ECHO Uh-oh. WMIC seems to have not exited gracefully.
ECHO The error code was %ERRORLEVEL%.