how to setup any dns (prefer nsd3) to give ip 220.127.116.11 for google and 18.104.22.168 for all others?
I don't know about NSD, but with BIND9's
I don't believe you're looking for the answer to depend on the source IP address, which is what's normally known as a "view", or "split DNS".
If I understand you correctly, you want to serve the answer '22.214.171.124' if the question is Google, and '126.96.36.199' if the question is anything else.
For a BIND answer, see this question setting the wildcard to your '188.8.131.52' and just add specific records to override the wildcard for those domains that you want to resolve to '184.108.40.206'.
Alternatively, my evldns software could easily do this.