How can I extract two fields from a given file “named.conf”? I want the fields ‘zone’ and ‘file’.
zone "example.com" IN {
type master;
file "db.example.com";
allow-query { any; };
allow-update { none; };
allow-transfer { 10.101.100.2; };
};
This might work for you: