Please complete a simple BASH script.
The DNS server uses a zone file with a list of IP’s. Once it serves up an IP’s this script will remove that IP from the zone file so that it is only served once.
Each time a user goes to [login to view URL] they are served a unique IP.
The system is Ubuntu 12.04 on AWS EC2. BIND9 installed via apt-get install bind9, tested working as a stand alone master name server for internet with simple zone file for kexow.com.
#######################################################################
Enable BIND9 logging
Locate BIND9 log file
Has the log file been written to?
tail?
If so then,
Find “[login to view URL]” in the last line of the log file?
grep?
If so then,
Find and remember the IP address served
grep?
Find that IP address in the zone file and remove it
sed?
Update Bind9
###########################################################################