Solved

DHCP DNS Domain Name

Posted on 2002-06-30
4
391 Views
Last Modified: 2007-12-19
Hi,

I managed to write a script file to assign static IP Address, Gateway, DNS Server but not the DNS Domain Name.

Below is the syntax used to set the optionvalue:

set optionvalue <option code> <data type> <option value>

eg,
set optionvalue 003 IPAddress 192.168.1.1

003 => gateway option code
IPAddress => data type

AS for DNS Domain name, I used :

set optionvalue 015 String abc.com.my

But it gives me an error stating "Parameter(s) passed are either incomplete or invalid."

I've tried a lot of combinations but it doesn't work.

Anyone can help ??


0
Comment
Question by:carollow
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
mikecr earned 50 total points
Comment Utility
If you mean that you want to set the DNS suffix search order, here is a little article that you can adapt to your script.

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q178277
0
 

Author Comment

by:carollow
Comment Utility
hi,

i managed to create the script file, but i still have one question.

WHY my dhcp server is showing 127.0.0.1 as the IP Address instead of the real IP Add in the MMC console window ?

thanks.
0
 
LVL 17

Expert Comment

by:mikecr
Comment Utility
That's because that is the IP that the server is bound to right now serving IP addresses. You can fix this by going to the Administrative tools, then DHCP Manager and open it. Right click on the server name, choose properties from the menu, then click the advanced tab and then about half way down the screen click on the bindings button and you can then set the IP that it is bound to.
0
 
LVL 1

Expert Comment

by:netwiz562
Comment Utility
---- CLEAN UP ----

carollow,
No comment has been added lately (385 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: [ Award points to mikecr ]

Please leave any comments here within the next seven days.

¡PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

------------------------------
Rajiv Makhijani
EE Cleanup Volunteer
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now