Add dns and console thread