ورود

نسخه کامل مشاهده نسخه کامل : چجوری از طریق cmd میشه دی ان اس ست کرد ؟



moslem.b
28-07-2009, 20:24
من میخوام از طریق cmd دوتا دی ان اس ست کنم مثلا 192.3.3.3 و 4.2.2.4

hraeissi
29-07-2009, 10:34
دستور فوق NETSH است و با استفاده از سویچ های زیر نیز کارهای دیگری را انجام می دهد



abort - Discards changes made while in offline mode.
add - Adds a configuration entry to a list of entries.
alias - Adds an alias.
bridge - Changes to the `netsh bridge' context.
bye - Exits the program.
commit - Commits changes made while in offline mode.
delete - Deletes a configuration entry from a list of entries.
diag - Changes to the `netsh diag' context.
dump - Displays a configuration script.
exec - Runs a script file.
exit - Exits the program.
firewall - Changes to the `netsh firewall' context.
help - Displays a list of commands.
interface - Changes to the `netsh interface' context.
offline - Sets the current mode to offline.
online - Sets the current mode to online.
popd - Pops a context from the stack.
pushd - Pushes current context on stack.
quit - Exits the program.
ras - Changes to the `netsh ras' context.
routing - Changes to the `netsh routing' context.
set - Updates configuration settings.
show - Displays information.
unalias - Deletes an alias.


Examples:


برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید


to set a static address or

برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید

موفق باشید

undertaker_ss
29-07-2009, 10:35
من میخوام از طریق cmd دوتا دی ان اس ست کنم مثلا 192.3.3.3 و 4.2.2.4


ست کردن یکی اش اینطوری هست
اول تایپ کنید netsh و enter بزنید و بعد تایپ کنید:
interface ip set dns “Local Area Connection” static 192.168.3.3

برای ست کردن دومی هم اینطوری باید بنویسید :

interface ip add dns "Local Area Connection" 4.2.2.4