Company: Belastingdienst
Systems: HP/UX, Linux
Languages: CSH Shell
Short description:
Development of Shell scripts to simplify massive consolidation of zone and host files and team management.
Long description:
At the beginning of the year 2000 a huge DNS project was launched at the dutch tax services. The goal was to simplify the DNS administration of the massive load of unix systems spread all over departments in the netherlands.
Quite quickly it was realized that huge host name pollution had taken place. Hosts entries with the same names as DNS entries, but pointing to different IP's. Or DNS entries with similar IP's but with different names as the hosts file entries. etc.
A solution had to be found to consolidate the Hosts and DNS zone files to one file that would be importable into the new system. The process had to take place on a location-by-location basis and had to be done in one evening during migration to the new dns system.
Technical:
Complex bash shell scripts have been written that checked, verified and consolidated the hosts and zone files. Duplicate entries were removed. Faulty entries were fixed. Duplicate hostnames for equal ip's were transformed into one main A record with several cname records etc.
The scripts were run by entering the target servers into a textfile before running the scripts. Unresolvable entries were presented in an output file for manual processing.