User Tools

Site Tools


Creation of corporate DNS

Generic requrements

  • Placement of server into differents AS, for stability from network failures
  • Easy web management
  • SQL DBMS storage or like it

Requirement for migration work

  • Don't interrupt service during work – Successful

Former/legacy DNS

  • Based on HE.net free DNS service. Hmm…

Decition

Standard decition:

  • 3 DNS server in different AS (pdns1, pdns3, pdns4.lazurit.us), one as master, two as slave.
  • PostgresQL DBMS as storage, PowerDNS as authoritative DNS service, Unbound as recursor, FreeBSD as OS.

Phases

Three standard phases:

  • Research and development,
  • Checking of decition
  • Migration from-to, domain by domain.

Migration

Standard also. For every domain

  1. Download DNS database (with AXFR reques or from web site) and
  2. Convert the databse to SQL batch with zone2sql tool.
  3. Upload to corporate DNS database.
  4. Switch glue DNS record for the domain to corporate DNS.
  5. Watch and checking result.

Status

  • Done, it stable works, with very well results. Total duration of project ~3 month.

Usage

Now 38 domains with 1242 records total. In plan add more 15 subdomain for mail supply. – 2016/08/09

sep 2017: IT staff still uses IP addresses. May be I must use DDT?

Some work code

Find differences between the same dns answers from two different server

#!/bin/sh                                                                                                   
for r in `cat lazurit.us.zone | awk '/IN/{print $1}'`;do                                                    
 
dig @ns2.he.net $r cname| grep -v ';;' | grep -v SOA | sort -V  > /tmp/a                                    
dig @pdns4.lazurit.us $r cname| grep -v ';;' | grep -v SOA | sort -V > /tmp/b                               
 
echo -------- $r ---------                                                                                  
diff -u100  /tmp/a /tmp/b                                                                                   
 
done                                                                                                        

Work screenshot


First PagePrevious PageBack to overviewNext PageLast Page