Microsoft KB Archive/151179

= INFO: Configuring DNS on NT with CPS or During Unattended Setup =

Article ID: 151179

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Workstation 3.5
 * Microsoft Windows NT Workstation 3.51
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 3.5
 * Microsoft Windows NT Server 3.51
 * Microsoft Windows NT Server 4.0 Standard Edition

-



This article was previously published under Q151179



SUMMARY
You can configure Domain Name Service (DNS) information in Windows NT either during an unattended installation or with the Resource Kit Computer Profile Setup (CPS) utilities by modifying the Oemnxptc.inf file.

For an unattended install using the winnt.exe /u:unattended.txt option, you have to copy the I386 directory from the compact disc. Once the I386 has been copied to a share point you can modify the Oemnxptc.inf.

For CPS you can make the changes to the Oemnxptc.inf on the image that was created with Uplodprf.exe.



MORE INFORMATION
After opening the Oemnxptc.inf, locate the following section and make the required modifications for your environment for DNS configuration.

NOTE: The semicolons indicate commented lines and will not be read.

set RegistryErrorIndex = $($R0)

CloseRegKey $(TcpVersKeyHandle) CloseRegKey $(TcpRulesKeyHandle) LibraryProcedure ResultHostname $(!TCPCFG_HANDLE), ConvertHostname

$(!STF_COMPUTERNAME) set NewValueList = {{EnableDHCP,$(NoTitle),$(!REG_VT_DWORD),$(EnableDHCPFlag)},+ {DataBasePath,$(NoTitle),$(!REG_VT_EXPAND_SZ), "%SystemRoot%\System32\drivers\etc"},+ {Domain,$(NoTitle),$(!REG_VT_SZ),""},+ {Hostname,$(NoTitle),$(!REG_VT_SZ),$(ResultHostname)},+ {NameServer,$(NoTitle),$(!REG_VT_SZ),""},+ {ForwardBroadcasts,$(NoTitle),$(!REG_VT_DWORD),0},+ {IPEnableRouter,$(NoTitle),$(!REG_VT_DWORD),0},+ {SearchList,$(NoTitle),$(!REG_VT_SZ),""}}
 * The Domain equates to the Domain Name in the GUI
 * Enter the Domain Name in between the quotes
 * Example: {Domain,$(NoTitle),$(!REG_VT_SZ),"xxxxxxxx.xxx"},+
 * Example: {Domain,$(NoTitle),$(!REG_VT_SZ),"xxxxxxxx.xxx"},+
 * The NameServer equates to the DNS Search order in the GUI
 * Enter the IP Addresses between the quotes
 * Example: {NameServer,$(NoTitle),$(!REG_VT_SZ),"xxx.xxx.xxx.xxx
 * xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx"},+
 * xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx"},+
 * The SearchList equates to the Domain Suffix Search Order in the GUI
 * Enter the Domain Suffix between the quotes
 * Example: {SearchList,$(NoTitle),$(!REG_VT_SZ)," xxxxxxxx.xxx
 * xxxxxxxx.xxx xxxxxxxx.xxx"},+
 * xxxxxxxx.xxx xxxxxxxx.xxx"},+

Shell $(UtilityInf), AddValueList, $(TcpParmKeyHandle),

$(NewValueList)

CloseRegKey $(TcpParmKeyHandle) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(TcpLinkageHandle) CloseRegKey $(TcpSvcKeyHandle) EndWait Debug-Output "OEMNXPTC.INF: Registry error: add value list."

Additional query words: prodnt SBK OPK Install

Keywords: kbinfo kbsbk KB151179

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.