Configuring DNS on NT with CPS or During Unattended Setup

Last reviewed: November 13, 1997
Article ID: Q151179
3.50 3.51 WINDOWS kbsetup The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.5, 3.51, and 4.0
  • Microsoft Windows NT Server versions 3.5, 3.51, and 4.0

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"},+ ; ;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"},+ {Domain,$(NoTitle),$(!REG_VT_SZ),""},+ ; {Hostname,$(NoTitle),$(!REG_VT_SZ),$(ResultHostname)},+ ; ;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"},+ {NameServer,$(NoTitle),$(!REG_VT_SZ),""},+ ; {ForwardBroadcasts,$(NoTitle),$(!REG_VT_DWORD),0},+ ; {IPEnableRouter,$(NoTitle),$(!REG_VT_DWORD),0},+ ; ;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"},+ {SearchList,$(NoTitle),$(!REG_VT_SZ),""}}

        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."


KBCategory: kbsetup
KBSubcategory: ntsetup ntdriver ntreskit ntsrvwkst
Additional reference words: prodnt 3.50 3.51
Keywords : ntdriver ntreskit ntsetup NTSrvWkst kbsetup
Version : 3.50 3.51
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 13, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.