Add get dns function