chdir for dns