# How Tos

## Domain setup

1. Contact me with the form to get a domain.
2. Set up a DNS server. For example with Cloudflare.
	- Account home -> Add a domain
	- This is not a CloudFlare tutorial
    - Contact me to setup domain nameservers
3. Add DNS records to your DNS provider

    - Only CNAME records are needed for web hosting.
    - MX and TXT records are for email hosting.

	| Type  | Name | Content | notes |
	|---|---|---|---|
	| CNAME | * | virve.snuff.fi |
    | CNAME | @ | virve.snuff.fi |
    | MX    | * | mail.snuff.fi  | priority 10 |
    | MX    | @ | mail.snuff.fi | priority 10 |
    | TXT   | @ | "v=spf1 a mx include:_spf.mail.snuff.fi -all" |
    | TXT   | _DMARC | "v=DMARC1; p=reject; adkim=r; aspf=r; fo=1;" |

## Hosting setup

1. Add your site to Snuffi [dashboard](https://panel.snuff.fi)
    Web -> Add web domain
    If you have purchased email hosting, tick Mail Support
	
	!!! WARNING
		Remember to enter the full domain including the extension
		and subdomain if applicable.
		
		For example `im-cool.fi` or `hot-gal.snuf.fi`
