rewrite dns parse and now there have lots of errors