The string parameters are quite inconvenient, refactor the function so that it uses knot_dname_t.
knot_dname_t