Re: netsh

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"charleh (moif)" <charleh@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3c4g6sF6lrp11U1@xxxxxxxxxxxxxxxxx
> Hello,
>
> I have been given the task to disable DNS on a number of client machines.
> Currently, due to the servers remote location, I am remoting in via
> PCAnywhere and browsing the network via Network Neighbourhood. We aren't
on
> AD, just basic peer to peer and the server acting as a file server.

> What I don't want to do (only as a last resort) is login to each client
via
> PCA individually as Admin and change the settings manually as this causes
> downtime. I have been researching netsh and it appears that I can connect
to
> a client from the server and change the DNS settings that way.

SysInternals.com provides the free PSTools which
include PSExec and PSService etc and these can
be placed into a batch file which perhaps could loop
through the (filtered) output of Net View (which is
roughly equivalent to your Net Neighborhood method
although both are incomplete in the general case.)

> Is this the case and if so, what is the correct syntax? Given that the
> client machine name is L123 and we want DNS settings of either 0.0.0.0 or
> 127.0.0.1

So you don't want the machines to be able to RESOLVE
DNS names for themselves?

Easiest way to get NetSh syntax is to use the DUMP feature
then pull in and edit/use the output for exec'ing a file back in.

You do realize this is not true security? (IP addresses
or even Hosts file could still work locally on each machine.)
Changing the Default Gateway would be closer, but even
that might not do what you really want.

netsh inter ip set dns name="Local Area Connection" static addr=192.168.x.y

[Local Area Connection = your actual connection name]

OR are you talking about DNS Server?

One wonders why someone would bother with such a
fruitless task (in an unmanaged environment) since
there is no harm to anything except perhaps that server
by having the DNS server running....

It will not be used unless some clients are configured
to use it, and then presumably they NEED it.


.



Relevant Pages

  • Re: Internet Speed
    ... I think what we are trying to say is to use the DHCP from the SBS and NOT ... DNS and WINS point to the SBS. ... as the server IP address. ... it is recommend to configure all SBS client computers' IP and DNS ...
    (microsoft.public.windows.server.sbs)
  • Re: 70-294 next week
    ... to another DNS ... server for at least ... client, which then ... configuration on the client. ...
    (microsoft.public.cert.exam.mcse)
  • Re: Dual NIC vs Single NIC
    ... |> 135919 DNS Server Search Order Functionality in Windows ... Thank you for helping me to correct the misunderstand of DNS query ... Thank you again for your supplement about the client DNS cache issue. ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Dual NIC vs Single NIC
    ... I will again argue that turning off the client DNS cache (0 refresh ... 261968 Explanation of the Server List Management Feature in the Domain ... Internet when the SBS server is offline. ...
    (microsoft.public.windows.server.sbs)
  • RE: Dynamic Update of A&PTR Records - Best Practice?
    ... The DNS server does not support the DNS dynamic update protocol; ... For Windows Server 2003-based computers, the primary full computer name is ... When one of these events triggers a DNS update, the DHCP Client service, ...
    (microsoft.public.windows.server.dns)