Dsn config

Add a configuration directive to enable dsn (or not)