fixed registration dns reply but it is kind of buggy