hey fellas new member here
been looking all over the web for this but i can't find any solutions. basically here's the problem i have
In a dns conf file i have something like this
zone "test1.com" {
type slave;
file "slave/db.test1.com";
};
zone "test2.com" {
type slave;
file "slave/db.test2.com";
};
zone "test3.com" {
type slave;
file "slave/db.test3.com";
};
What i need done is to insert the line 'masters { 10.0.0.1; };' below 'file "slave/db.test#.com"; ' keeping }; below it. basically to look like this
zone "test#.com" {
type slave;
file "slave/db.test#.com";
masters { 10.0.0.1; }; #new line
};
I've tried using this command in vi " :%s/};/masters { 10.0.0.1; };}; "
but that leaves me with this
zone "test#.com" {
type slave;
file "slave/db.test#.com";
masters { 10.0.0.1; };};
which i don't like i need the second }; to be below the line "masters"
is there a CR command i can use with this command " :%s/};/masters { 10.0.0.1; };}; " ???
any help or suggestions would be appreciated
thanks
been looking all over the web for this but i can't find any solutions. basically here's the problem i have
In a dns conf file i have something like this
zone "test1.com" {
type slave;
file "slave/db.test1.com";
};
zone "test2.com" {
type slave;
file "slave/db.test2.com";
};
zone "test3.com" {
type slave;
file "slave/db.test3.com";
};
What i need done is to insert the line 'masters { 10.0.0.1; };' below 'file "slave/db.test#.com"; ' keeping }; below it. basically to look like this
zone "test#.com" {
type slave;
file "slave/db.test#.com";
masters { 10.0.0.1; }; #new line
};
I've tried using this command in vi " :%s/};/masters { 10.0.0.1; };}; "
but that leaves me with this
zone "test#.com" {
type slave;
file "slave/db.test#.com";
masters { 10.0.0.1; };};
which i don't like i need the second }; to be below the line "masters"
is there a CR command i can use with this command " :%s/};/masters { 10.0.0.1; };}; " ???
any help or suggestions would be appreciated
thanks