Recalculating DNS network prefix