macOS Mavericks – How to Restore Deleted com.apple.mDNSResponder.plist

dnsmacos

I already had trouble with DNS not resolving for all apps except Chrome, in my troubleshooting I for some reason deleted com.apple.mDNSResponder.plist
Deleting this file did not help in any way..
Could someone post the text to 10.9 com.apple.mDNSResponder.plist? I understand I will have to change permissions etc on the file.

Best Answer

Here is the contents of my /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist from OS X 10.9.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.apple.mDNSResponder</string>
    <key>OnDemand</key>
    <false/>
    <key>InitGroups</key>
    <false/>
    <key>UserName</key>
    <string>_mdnsresponder</string>
    <key>GroupName</key>
    <string>_mdnsresponder</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/sbin/mDNSResponder</string>
    </array>
    <key>MachServices</key>
    <dict>
        <key>com.apple.mDNSResponder</key>
        <true/>
               <key>com.apple.mDNSResponder.dnsproxy</key>
               <true/>
    </dict>
    <key>Sockets</key>
    <dict>
        <key>Listeners</key>
        <dict>
            <key>SockFamily</key>
            <string>Unix</string>
            <key>SockPathName</key>
            <string>/var/run/mDNSResponder</string>
            <key>SockPathMode</key>
            <integer>438</integer>
        </dict>
    </dict>
    <key>EnableTransactions</key>
    <true/>
    <key>BeginTransactionAtShutdown</key>
    <true/>
    <key>POSIXSpawnType</key>
    <string>Interactive</string>
</dict>
</plist>

It'd probably be worth running a permissions repair after restoring the file.