"net stop dnscache" Not working

rannday 16 Reputation points
2021-05-20T14:36:29.36+00:00

The requested pause, continue, or stop is not valid for this service.

More help is available by typing NET HELPMSG 2191.

net helpmsg 2191

The requested pause, continue, or stop is not valid for this service.

Real helpful help message, there...

So, what's going on? /flushdns seems to be working. /displaydns shows only a few sites that I'm currently on after. nslookup still showing incorrect IP for a DNS entry. Dig through WSL or any other system shows the correct entry. Pinging the domain from CMD also shows the incorrect IP.

Read try to the "net stop dnscache", but I'm receiving that error, and I can't find any resources on how to resolve it.

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
{count} votes

1 answer

Sort by: Most helpful
  1. Gary Nebbett 6,216 Reputation points
    2021-05-20T15:05:26.977+00:00

    Hello @rannday ,

    The message from "sc stop dnscache" is perhaps more revealing; it says, on my PC:

    [SC] OpenService FAILED 5:

    Access is denied.

    The command "sc sdshow dnscache" shows:

    D:
    (A;CI;CCLCSWRPLORC;;;BU)
    (A;CI;CCLCSWRPDTLORC;;;BA)
    (A;CI;CCLCSWRPDTLORC;;;SY)
    (A;;CCLCSWRPLORC;;;IU)
    (A;CI;CCLCSWRPLORC;;;NS)
    (A;CI;CCLCSWRPLORC;;;LS)
    (A;CI;CCLCSWRPDTLORC;;;NO)
    (A;CI;CCLCSWDTLOCRRC;;;S-1-5-80-2940520708-3855866260-481812779-327648279-1710889582)
    (A;CI;CCLCSWRPLORC;;;AC)
    (A;CI;CCLCSWRPLORC;;;S-1-15-3-1)
    (A;CI;CCLCSWRPLORC;;;S-1-15-3-2)
    (A;CI;CCLCSWRPLORC;;;S-1-15-3-3)
    S:
    (AU;FA;CCLCSWRPDTLORC;;;WD)

    Most other services show this security descriptor:

    D:
    (A;;CCLCSWRPWPDTLOCRRC;;;SY)
    (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)
    (A;;CCLCSWLOCRRC;;;IU)
    (A;;CCLCSWLOCRRC;;;SU)
    S:
    (AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

    So the ability to stop the service is not granted to anyone. This is an unusual way of refusing to stop - normally the service control function just returns ERROR_CALL_NOT_IMPLEMENTED for controls (such as SERVICE_CONTROL_STOP) that it wants to block.

    Gary

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.