discover/network: Ensure dns config buffer contains a trailling nul