Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community.
This allows you to keep the connectivity to these services alive even during a local DNS outage.
From the "Start" button, select "Run", and enter "services.msc".
There are other ways to do this, of course (aren't there always? Select "Disabled" from the list of choices for "Startup type".
Change from single to double quotes and see if that works.
BTW the first part doesn't work for me: If you are getting the IPs OK, this is a straight sed question.