hello everybody
i am writing a bash shell script to modify the DNS zone file. I have completed many steps, but i am stuck at the point given below.
The problem is to write a shell script/command to Convert all CNAMEs that are referencing the same domain to A records:
ie:
Code:
IN A 66.223.38.187
ftp IN CNAME my-site.com.
web IN CNAME my-site.com.
to
ftp IN A 66.223.38.187
web IN A 66.223.38.187
I have tried all the ways i.e. google and other Sed/awk tutorial.But could not find the solution.