FusionForge

DNS

From FusionForge Wiki
Jump to: navigation, search

Domain structure

FusionForge recommends that you reserve a domain or subdomain for it, for instance:

  • forge.yourdomain.tld : the web interface (http and https)
  • scm.forge.yourdomain.tld : access to source repositories e.g. Git and SVN (https, ssh, rsync, xinetd)
  • lists.forge.yourdomain.tld : mailing lists (smtp and https)
  • users.forge.yourdomain.tld : user e-mail aliases (smtp)
  • *.forge.yourdomain.tld : wildcard for project web pages

Bind configuration

Here is a sample configuration for a single server on 123.123.123.123 and domain forge.domain.tld.

On your DNS server:

  • Add a zone to /etc/bind/master/forge.domain.tld:
; -*- dns -*-
$TTL   3600               ; non-slaves refresh after 1 hour (e.g.: ISPs)
@       IN      SOA ns1.domain.tld. root.domain.tld (
                2015092501 ; serial (YYMMDDxx)
                3600       ; slaves refresh after 1 hour
                3600       ; slaves retry after 1 hour on failure
                1209600    ; slaves expire after 2 weeks
                3600       ; minimum negative cache TTL of 1 hour
        )
        NS      ns1.domain.tld.
        NS      ns2.domain.tld.

        A 123.123.123.123

scm    CNAME  @
lists  A      123.123.123.123
lists  MX 10  @
users  A      123.123.123.123
users  MX 10  @
*      A      123.123.123.123
  • Reference it in /etc/bind/named.conf.local:
zone "forge.domain.tld" {
     type master;
     file "/etc/bind/master/forge.domain.tld";
     allow-query { any; };
};
  • Restart bind:
service bind9 restart