Linux / UNIX Tech Support Forum
This is a discussion on BIND named.conf search zone and comment it out script within the Shell scripting forums, part of the Development/Scripting category; Hi I've a file called /etc/named.conf I want a script which could search for a given domain name and then ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
I've a file called /etc/named.conf I want a script which could search for a given domain name and then comment it as well. Can anyone let me know how would be it possible to COMMENT/UN COMMENT the fields related to that domain name? |
| Sponsored Links | ||
|
|
|
||||
|
Is named.conf domain done via include statement or direct zone file? For e.g. following will print zone name:
PHP Code:
Code:
zone "example.com" {
PHP Code:
Code:
zone "example.com" {
type master;
file "/etc/bind/zones/e/example.com";
allow-transfer { singlemaster; };
};
PHP Code:
PHP Code:
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Thanks for your help.
When i run this script, its generating the following error. ./testing: line 23: unexpected EOF while looking for matching `"' ./testing: line 25: syntax error: unexpected end of file |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script For Dns BIND Server Configuration | ramjgn | Shell scripting | 4 | 24-03-2009 06:32 PM |
| Shell BIND NAMED Zone Creation Script | asim.mcp | Shell scripting | 4 | 13-02-2009 04:51 PM |
| getting errors from named.conf in rhel5 | ashu.wifi | CentOS / RHEL / Fedora | 2 | 17-09-2008 02:02 PM |
| script to search a "sentence" on a group of files. | permalac | Shell scripting | 2 | 04-09-2008 12:24 PM |
| Linux Change the time zone configuration after installation | raj | Linux software | 1 | 17-07-2006 02:11 AM |