adds CNAME and set some config flags.