#!/bin/bash

raw="DNS=0.0.0.0
DNS=
"

IFS= read -rd '' kvs < <(awk -F= 'NF == 2 {print $2}' <<< "$raw")

declare -p kvs