Add --dn option
Work on issue #2768