hello everybody
i wxanna write a little script that add a new zone to my DNS server , the main task are :
1) insert the following line to /etc/bindd9/named.conf :
Quote:
zone "$domaine" {
type master;
file "$domaine";
};
|
2) creat the record file in /var/named/ which has to look like this :
Quote:
@ IN SOA admin. admin.$domaine.com. (
1997022700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
@ IN NS ns
@ IN MX 10 mail
mail IN A $ip
ns IN A $ip
www IN A $ip
@ IN A $ip
|
i have to set sedault value for each variable , then the user will just puch enter to set the default , my pb now is how to INSERT these ilnes into named.conf .
thnx for any suggestion.