Using Perl

Using perl to replace IP in the DNS database, where a* are the domain starting with letter 'a'

            perl -p -i -e  's/192.168.0.11/192.168.0.12/' a*.*.db