Dsn config

Add a configuration directive to enable DSN (or not)