adding exit codes to dns