Atomia DNS

Default installation

111 views 0

The default installation of the Atomia DNS Master server.

Overview

This guide will install the Atomia DNS Master server using a default installation. This means that both the Atomia DNS database and Atomia DNS API will be installed.

Installation on Ubuntu 10.04 LTS

  1. Do a standard installation of Ubuntu 10.04 LTS.
  2. Add the Atomia APT Repository to the server using:
  3. wget -q -O - http://public.apt.atomia.com/setup.sh.shtml | sed s/%distcode/`lsb_release -c | awk '{ print $2 }'`/g | sh
    
  4. Update all packages:
  5. apt-get update
    
  6. Install the Atomia DNS Master:
  7. apt-get install atomiadns-masterserver
    
  8. Add the initial DNSSEC keyset (optional):See Creating the initial DNSSEC keyset for instructions.

Installation on FreeBSD

  1. Do a standard installation of FreeBSD. The instructions where tested with FreeBSD 10.0-RELEASE, but should work on other versions as well.
  2. Make sure you have an up-to-date ports collection, as described in the FreeBSD handbook.
  3. cd /usr/ports/dns ; fetch -q -o - http://atomiadns.com/tarballs/bleeding.tar.gz | tar xvfpz - --strip-components 2 "*/freebsd"
    

Keep in mind

This step is only neccessary if the Atomia DNS ports are not in the main ports collection.

  1. Install PostgreSQL:
  2. cd /usr/ports/databases/postgresql91-server make BATCH=yes install echo 'postgresql_enable="YES"' >> /etc/rc.conf /usr/local/etc/rc.d/postgresql initdb /usr/local/etc/rc.d/postgresql start
    
  3. Install Atomia DNS:
  4. cd /usr/ports/dns/atomiadns-database make BATCH=yes install test x"$SHELL" = x"/bin/bash" && hash -r ; echo "$SHELL" | grep csh > /dev/null && rehash atomiadns-sync-database cd /usr/ports/dns/atomiadns-api echo "DEFAULT_VERSIONS+=apache=2.2" >> /etc/make.conf make BATCH=yes install cd /usr/ports/dns/atomiadns-client make BATCH=yes install echo 'apache22_enable="YES"' >> /etc/rc.conf
    

Important!

Make sure that your hostname exists in DNS or in /etc/hosts, otherwise the install might fail due to Apache complaining.

  1. Optionally password protect the Atomia DNS installation (very much recommended):
  2. cat > /usr/local/etc/apache22/Includes/atomiadns_password_protect.conf <<EOF <Location /> AuthUserFile /usr/local/etc/apache22/atomiadns.htpasswd AuthName "Atomia DNS" AuthType Basic require valid-user </Location> EOF # Remember the password that you enter, it is used in the next step, and later when you add nameservers. htpasswd -c /usr/local/etc/apache22/atomiadns.htpasswd atomiadns apachectl graceful
    
  3. Test the installation by creating your first (and often only) nameserver group:
  4. echo 'soap_username=YOUR_OPTIONAL_BUT_OBVIOUSLY_HIGHLY_RECOMMENDED_API_SERVER_USERNAME' >> /etc/atomiadns.conf echo 'soap_password=YOUR_OPTIONAL_BUT_OBVIOUSLY_HIGHLY_RECOMMENDED_API_SERVER_PASSWORD' >> /etc/atomiadns.conf atomiadnsclient --method AddNameserverGroup --arg default
    
  5. Add the initial DNSSEC keyset (optional): See Creating the initial DNSSEC keyset for instructions.

Installation on Redhat Enterprise Linux 4

Important!

We no longer recommend Redhat Enterprise Linux 4, latest version supported is Redhat Enterprise Linux 6.

  1. First setup the needed repositories.
  2. rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm rpm -Uhv http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-redhat-8.4-1.noarch.rpm rpm -Uhv http://rpm.atomia.com/rhel4/atomia-repository-setup-1.0-1.noarch.rpm
    
  3. Next install the Atomia DNS master server
  4. up2date -i atomiadns-masterserver
    
  5. Allow md5 authentication instead of ident for connections to 127.0.0.1/32 in /var/lib/pgsql/data/pg_hba.conf, example row:
  6. host all all 127.0.0.1/32 md5
    
  7. Restart postgresql:
  8. service postgresql restart
    

Installation on Redhat Enterprise Linux 5

Important!

We no longer recommend Redhat Enterprise Linux 4, latest version supported is Redhat Enterprise Linux 6.

  1. First setup the needed repositories.
  2. rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm rpm -Uhv http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-redhat-8.4-1.noarch.rpm rpm -Uhv http://rpm.atomia.com/rhel5/atomia-repository-setup-1.0-1.noarch.rpm
    
  3. Next install the Atomia DNS master server
  4. yum install atomiadns-masterserver
    
  5. Allow md5 authentication instead of ident for connections to 127.0.0.1/32 in /var/lib/pgsql/data/pg_hba.conf, example row:
  6. host all all 127.0.0.1/32 md5
    
  7. Restart postgresql:
  8. service postgresql restart
    

Installation on Redhat Enterprise Linux 6

  1. First setup the needed repositories.
  2. rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm rpm -Uhv http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-redhat-8.4-1.noarch.rpm rpm -Uhv http://public.rpm.atomia.com/rhel6/atomia-public-repository-setup-1.0-1.el6.noarch.rpm
    
  3. Next install the Atomia DNS master server
  4. yum install atomiadns-masterserver
    
  5. Allow md5 authentication instead of ident for connections to 127.0.0.1/32 in /var/lib/pgsql/data/pg_hba.conf, example row:
  6. host all all 127.0.0.1/32 md5
    
  7. Restart postgresql:
  8. service postgresql restart
    

Was this helpful?