I'm having trouble writing a program for dns modifications. I need to find a way to search an open file and change or substitute the found results with the input.
Example---->
sub modify_dns {
open DNS, "/var/named/domain.com.hosts";
(need to search and replace here)
Any help woudl be great apprecaited. Thanks ahead of time
Example---->
sub modify_dns {
open DNS, "/var/named/domain.com.hosts";
(need to search and replace here)
Any help woudl be great apprecaited. Thanks ahead of time