Skip to content

Instantly share code, notes, and snippets.

@pascalduez
Last active January 1, 2019 11:52
Show Gist options
  • Save pascalduez/99ee3dd8a5040b9acdfa2e74913332cc to your computer and use it in GitHub Desktop.
Save pascalduez/99ee3dd8a5040b9acdfa2e74913332cc to your computer and use it in GitHub Desktop.
Github page over HTTPS, setting up a custom domain at Gandi

Github page over HTTPS, setting up a custom domain at Gandi

DNS configuration

With an apex domain

@ 10800 IN A 185.199.108.153
@ 10800 IN A 185.199.109.153
@ 10800 IN A 185.199.110.153
@ 10800 IN A 185.199.111.153

With an apex domain and www subdomain

@ 10800 IN A 185.199.108.153
@ 10800 IN A 185.199.109.153
@ 10800 IN A 185.199.110.153
@ 10800 IN A 185.199.111.153
www 10800 IN CNAME webredir.vip.gandi.net.

Keep emails at Gandi

@ 10800 IN A 185.199.108.153
@ 10800 IN A 185.199.109.153
@ 10800 IN A 185.199.110.153
@ 10800 IN A 185.199.111.153
www 10800 IN CNAME webredir.vip.gandi.net.
@ 10800 IN MX 50 fb.mail.gandi.net.
@ 10800 IN MX 10 spool.mail.gandi.net.
@ 10800 IN TXT "v=spf1 include:_mailcust.gandi.net ?all"

Check

$ dig domain.tld +noall +answer

; <<>> DiG 9.13.5 <<>> domain.tld +noall +answer
;; global options: +cmd
domain.tld.          8480    IN      A       185.199.111.153
domain.tld.          8480    IN      A       185.199.109.153
domain.tld.          8480    IN      A       185.199.108.153
domain.tld.          8480    IN      A       185.199.110.153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment