Yes you have to add to named.conf on both hosts however the entries look slightly different:
Master:
Code:
zone "example.com" {
type master;
file "example.com";
allow-query { any; };
};
Slave:
Code:
zone "example.com" {
type slave;
file "example.com";
masters { 10.x.x.x; };
allow-query { any; };
};
As you see in the latter you have to add the masters option to the zone statement on the slave.
To automate adding to slave you'd have to script it yourself. That could be done but would take some effort. If you search the BIND mail list archives there may be example scripts for that.