I need to add a record to several hosts file in Linux named directory with a bash script. I want to open each hosts file and add the line:
webmail.domain.com. IN A 192.168.1.1
for each domain.com.hosts file in the named directory. Could you give me some hints?