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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.