Linuxconf 1.14r2
+
1. What is Linuxconf
+ ++ Welcome to Linuxconf, an interactive configuration and administration + utility for the Linux operating system. +
+ Linuxconf has been created both to help administer + a linux server or workstation and to highlight the underlying + power of the Linux operating system. +
+ It lets you manage + +
-
+
- Boot and boot services +
- Date & time +
- DNS +
- Email (sendmail) +
- File systems and file services +
- Firewalls +
- Network connectivity +
- User accounts +
- UUCP +
+

+
+
+
+
+
+
+
+
+
+
+
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/messages/sources/apache.dic linuxconf-1.14r3/messages/sources/apache.dic
*** linuxconf-1.14r2/messages/sources/apache.dic Wed Mar 3 15:57:30 1999
--- linuxconf-1.14r3/messages/sources/apache.dic Wed Apr 7 01:39:21 1999
***************
*** 1,3 ****
! @version 2
!M_DEFAULT
:E Defaults
--- 1,3 ----
! @version 3
!M_DEFAULT
:E Defaults
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/messages/sources/askrunlevel.dic linuxconf-1.14r3/messages/sources/askrunlevel.dic
*** linuxconf-1.14r2/messages/sources/askrunlevel.dic Tue Sep 29 14:46:03 1998
--- linuxconf-1.14r3/messages/sources/askrunlevel.dic Tue Apr 6 22:52:34 1999
***************
*** 117,121 ****
:E You must specify the root partition
!E_IVLSECTOR
! :E Invalid partition or device for boot sector\ninstallation
!T_ACTLILO
:E Activating LILO configuration
--- 117,123 ----
:E You must specify the root partition
!E_IVLSECTOR
! :E Unusual partition or device for boot sector\n
! +installation. This will probably yield a non\n
! +bootable system.
!T_ACTLILO
:E Activating LILO configuration
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/messages/sources/dnsconf.dic linuxconf-1.14r3/messages/sources/dnsconf.dic
*** linuxconf-1.14r2/messages/sources/dnsconf.dic Sat Mar 27 11:22:10 1999
--- linuxconf-1.14r3/messages/sources/dnsconf.dic Wed Apr 7 02:19:01 1999
***************
*** 1,3 ****
! @version 14
!F_IPADR
:E IP address
--- 1,3 ----
! @version 15
!F_IPADR
:E IP address
***************
*** 290,295 ****
!E_EXPECTARG1
:E Expect argument followed by a semi-colon
- !E_IVLDTOKEN
- :E Invalid keyword %s
!E_EXPECTTYPE
:E Expected either master, slave or hint
--- 290,293 ----
***************
*** 372,373 ****
--- 370,373 ----
!F_ACLNAME
:E Name
+ !F_NOTIFY
+ :E Notify
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/messages/sources/mailconf.dic linuxconf-1.14r3/messages/sources/mailconf.dic
*** linuxconf-1.14r2/messages/sources/mailconf.dic Mon Mar 8 21:08:20 1999
--- linuxconf-1.14r3/messages/sources/mailconf.dic Sun Apr 4 09:55:33 1999
***************
*** 25,31 ****
:E Edit global mail aliases
!IEDITALIASES
! :E You are allowed to edit/add/deleted\nsystem wide aliases for electronic mail
!I_NEWALIAS
! :E Select [Add] to add a new aliase
!P_WRITE
:E write %s
--- 25,31 ----
:E Edit global mail aliases
!IEDITALIASES
! :E You are allowed to edit/add/delete\nsystem wide aliases for electronic mail
!I_NEWALIAS
! :E Select [Add] to add a new alias
!P_WRITE
:E write %s
***************
*** 538,539 ****
--- 538,541 ----
!F_QUOTA
:E Limit user inbox to (k)
+ !H_MALIASES
+ :E Aliases
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/messages/sources/status.dic linuxconf-1.14r3/messages/sources/status.dic
*** linuxconf-1.14r2/messages/sources/status.dic Wed Mar 3 14:43:44 1999
--- linuxconf-1.14r3/messages/sources/status.dic Wed Apr 7 01:55:25 1999
***************
*** 37,38 ****
--- 37,40 ----
!E_NOTDONE
:E Not done yet!
+ !M_MD
+ :E RAID (MD) usage
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/misc/ipstuff.cc linuxconf-1.14r3/misc/ipstuff.cc
*** linuxconf-1.14r2/misc/ipstuff.cc Thu Jul 31 00:29:51 1997
--- linuxconf-1.14r3/misc/ipstuff.cc Wed Apr 7 02:43:14 1999
***************
*** 63,67 ****
char *pt = buf;
for (int i=0; i<4 && a[i] != -1; i++){
! pt += sprintf (pt,ctl,a[i]);
ctl = ".%d";
}
--- 63,67 ----
char *pt = buf;
for (int i=0; i<4 && a[i] != -1; i++){
! pt += ::sprintf (pt,ctl,a[i]);
ctl = ".%d";
}
***************
*** 78,82 ****
{
for (int i=nbn-1; i>=0; i--){
! str += sprintf (str,"%u.",a[i]);
}
strcpy (str,"IN-ADDR.ARPA");
--- 78,82 ----
{
for (int i=nbn-1; i>=0; i--){
! str += ::sprintf (str,"%u.",a[i]);
}
strcpy (str,"IN-ADDR.ARPA");
***************
*** 93,97 ****
for (int i=3; i>=0; i--){
if (a[i] != -1){
! str += sprintf (str,"%d.",a[i]);
}
}
--- 93,97 ----
for (int i=3; i>=0; i--){
if (a[i] != -1){
! str += ::sprintf (str,"%d.",a[i]);
}
}
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/misc/timestr.cc linuxconf-1.14r3/misc/timestr.cc
*** linuxconf-1.14r2/misc/timestr.cc Tue Jan 6 03:02:01 1998
--- linuxconf-1.14r3/misc/timestr.cc Wed Apr 7 02:42:44 1999
***************
*** 42,46 ****
int secs = remain % 60;
char buf[20];
! sprintf (buf,"%ld:%02ld:%02d:%02d",days,hours,minutes,secs);
SSTRING::setfrom (buf);
}else{
--- 42,46 ----
int secs = remain % 60;
char buf[20];
! ::sprintf (buf,"%ld:%02ld:%02d:%02d",days,hours,minutes,secs);
SSTRING::setfrom (buf);
}else{
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/apache/apache.m linuxconf-1.14r3/modules/apache/apache.m
*** linuxconf-1.14r2/modules/apache/apache.m Wed Mar 3 15:57:30 1999
--- linuxconf-1.14r3/modules/apache/apache.m Wed Apr 7 01:39:21 1999
***************
*** 3,7 ****
#define DICTIONARY_REQUEST \
const char **_dictionary_apache;\
! TRANSLATE_SYSTEM_REQ _dictionary_req_apache("apache",_dictionary_apache,67,2);\
void dummy_dict_apache(){}
#endif
--- 3,7 ----
#define DICTIONARY_REQUEST \
const char **_dictionary_apache;\
! TRANSLATE_SYSTEM_REQ _dictionary_req_apache("apache",_dictionary_apache,67,3);\
void dummy_dict_apache(){}
#endif
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/apache/httpd.cc linuxconf-1.14r3/modules/apache/httpd.cc
*** linuxconf-1.14r2/modules/apache/httpd.cc Mon Mar 29 11:53:22 1999
--- linuxconf-1.14r3/modules/apache/httpd.cc Wed Apr 7 01:38:14 1999
***************
*** 47,50 ****
--- 47,51 ----
static const char MAXREQUESTSPERCHILD[]="MaxRequestsPerChild";
static const char VIRTUALHOST[]="VirtualHost";
+ static const char NAMEVIRTUALHOST[]="nameVirtualHost";
static const char TIMEOUT[]="Timeout";
static const char MINSPARESERVERS[]="MinSpareServers";
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/dnsconf/dns.cc linuxconf-1.14r3/modules/dnsconf/dns.cc
*** linuxconf-1.14r2/modules/dnsconf/dns.cc Sun Mar 28 11:02:55 1999
--- linuxconf-1.14r3/modules/dnsconf/dns.cc Wed Apr 7 02:17:47 1999
***************
*** 215,218 ****
--- 215,220 ----
}else if (strcmp(tok,K_RECURSION)==0){
options.no_recursion = !lex.getarg_yesno();
+ }else if (strcmp(tok,K_NOTIFY)==0){
+ options.notify = lex.getarg_yesno();
}else{
UNKNOWN *un = new UNKNOWN;
***************
*** 260,264 ****
SSTRING zone,file;
SSTRINGS masters,allowtrans,allowquery,allowupdate,alsonotify;
! bool notify = false;
zone.setfrom (lex.gettoken());
const char *tok = lex.gettoken();
--- 262,266 ----
SSTRING zone,file;
SSTRINGS masters,allowtrans,allowquery,allowupdate,alsonotify;
! char notify = NOTIFY_DEFAULT;
zone.setfrom (lex.gettoken());
const char *tok = lex.gettoken();
***************
*** 446,449 ****
--- 448,452 ----
options.query_log=0;
options.fake_iquery=0;
+ options.notify=true; //notify is enabled by default (bind8)
pathcfg.setfrom ("/var/named");
/* #Specification: dns / bind4 and bind8
***************
*** 507,510 ****
--- 510,518 ----
}
+ PUBLIC bool DNS::getnotify() const
+ {
+ return options.notify;
+ }
+
PUBLIC void DNS::basiccheck()
{
***************
*** 626,629 ****
--- 634,640 ----
fprintf (fout,"\t%s no;\n",K_RECURSION);
}
+ if (options.notify==false){
+ fprintf (fout,"\t%s no;\n",K_NOTIFY);
+ }
dns_writeopts (forwarders,K_FORWARDERS,fout);
dns_writeopts (options.allowtrans,K_ALLOW_TRANSFER,fout);
***************
*** 642,647 ****
}
const char *named_dir = pathcfg.get();
! ret = primarys.write(true,fout,named_dir);
! ret |= primarys_rev.write(true,fout,named_dir);
secondarys.write(true,fout,named_dir);
ret |= fclose (fout);
--- 653,658 ----
}
const char *named_dir = pathcfg.get();
! ret = primarys.write(true,fout,named_dir,this);
! ret |= primarys_rev.write(true,fout,named_dir,this);
secondarys.write(true,fout,named_dir);
ret |= fclose (fout);
***************
*** 658,663 ****
}
const char *named_dir = pathcfg.get();
! ret = primarys.write(false,fout,named_dir);
! ret = primarys_rev.write(false,fout,named_dir);
secondarys.write(false,fout,named_dir);
if (forwarders.getnb() > 0){
--- 669,674 ----
}
const char *named_dir = pathcfg.get();
! ret = primarys.write(false,fout,named_dir,this);
! ret = primarys_rev.write(false,fout,named_dir,this);
secondarys.write(false,fout,named_dir);
if (forwarders.getnb() > 0){
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/dnsconf/dnsconf.h linuxconf-1.14r3/modules/dnsconf/dnsconf.h
*** linuxconf-1.14r2/modules/dnsconf/dnsconf.h Sun Mar 28 11:05:50 1999
--- linuxconf-1.14r3/modules/dnsconf/dnsconf.h Wed Apr 7 02:19:07 1999
***************
*** 26,29 ****
--- 26,31 ----
#endif
+ #define NOTIFY_DEFAULT 2
+
enum RECORD_TYPE{
RTYPE_COMMENT,
***************
*** 285,289 ****
int write (bool bind8,
FILE *fout,
! const char *named_dir)const;
/*~PROTOEND~ PRIMARY */
};
--- 287,292 ----
int write (bool bind8,
FILE *fout,
! const char *named_dir,
! const DNS *dns)const;
/*~PROTOEND~ PRIMARY */
};
***************
*** 328,332 ****
int write (bool bind8,
FILE *fout,
! const char *named_dir)const;
/*~PROTOEND~ PRIMARYS */
};
--- 331,336 ----
int write (bool bind8,
FILE *fout,
! const char *named_dir,
! const DNS *dns)const;
/*~PROTOEND~ PRIMARYS */
};
***************
*** 418,421 ****
--- 422,426 ----
char query_log;
char fake_iquery;
+ char notify;
SSTRINGS listenon;
SSTRINGS allowtrans;
***************
*** 525,528 ****
--- 530,534 ----
SECONDARY *findsecond (const char *name)const;
void getalladr (IP_ADDRS&adrs);
+ bool getnotify (void)const;
long getrevdate (void);
private:
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/dnsconf/dnsconf.m linuxconf-1.14r3/modules/dnsconf/dnsconf.m
*** linuxconf-1.14r2/modules/dnsconf/dnsconf.m Sat Mar 27 11:22:10 1999
--- linuxconf-1.14r3/modules/dnsconf/dnsconf.m Wed Apr 7 02:19:01 1999
***************
*** 3,7 ****
#define DICTIONARY_REQUEST \
const char **_dictionary_dnsconf;\
! TRANSLATE_SYSTEM_REQ _dictionary_req_dnsconf("dnsconf",_dictionary_dnsconf,158,14);\
void dummy_dict_dnsconf(){}
#endif
--- 3,7 ----
#define DICTIONARY_REQUEST \
const char **_dictionary_dnsconf;\
! TRANSLATE_SYSTEM_REQ _dictionary_req_dnsconf("dnsconf",_dictionary_dnsconf,158,15);\
void dummy_dict_dnsconf(){}
#endif
***************
*** 133,173 ****
#define E_BIND8LEX 117
#define E_EXPECTARG1 118
! #define E_IVLDTOKEN 119
! #define E_EXPECTTYPE 120
! #define E_IVLDIP 121
! #define E_ZONETYPE 122
! #define E_EXPECTED 123
! #define E_IVLDHOSTIP 124
! #define E_SETHOSTPART 125
! #define F_ALLOWTRANS 126
! #define F_ALLOWQUERY 127
! #define F_LISTENON 128
! #define T_ACCESS 129
! #define F_ALLOWUPDATE 130
! #define F_ALSONOTIFY 131
! #define H_ACLS 132
! #define I_ADDMATCH 133
! #define T_ACL 134
! #define I_ADDACL 135
! #define T_ACLS 136
! #define M_ACL 137
! #define M_LOGGING 138
! #define H_ACL 139
! #define I_DELACL 140
! #define M_SECURITY 141
! #define F_NETHOSTACL 142
! #define F_NETSIZE 143
! #define I_DELADDR 144
! #define T_ADDRMATCH 145
! #define I_ADDRMATCH 146
! #define E_HOSTIP 147
! #define E_IVLDACL 148
! #define E_NETWORKIP 149
! #define E_NETSIZE 150
! #define M_ACCESS 151
! #define T_DNSACCESS 152
! #define B_EDITNAME 153
! #define T_ACLNAME 154
! #define I_ACLNAME 155
! #define E_NOSPACE 156
! #define F_ACLNAME 157
--- 133,173 ----
#define E_BIND8LEX 117
#define E_EXPECTARG1 118
! #define E_EXPECTTYPE 119
! #define E_IVLDIP 120
! #define E_ZONETYPE 121
! #define E_EXPECTED 122
! #define E_IVLDHOSTIP 123
! #define E_SETHOSTPART 124
! #define F_ALLOWTRANS 125
! #define F_ALLOWQUERY 126
! #define F_LISTENON 127
! #define T_ACCESS 128
! #define F_ALLOWUPDATE 129
! #define F_ALSONOTIFY 130
! #define H_ACLS 131
! #define I_ADDMATCH 132
! #define T_ACL 133
! #define I_ADDACL 134
! #define T_ACLS 135
! #define M_ACL 136
! #define M_LOGGING 137
! #define H_ACL 138
! #define I_DELACL 139
! #define M_SECURITY 140
! #define F_NETHOSTACL 141
! #define F_NETSIZE 142
! #define I_DELADDR 143
! #define T_ADDRMATCH 144
! #define I_ADDRMATCH 145
! #define E_HOSTIP 146
! #define E_IVLDACL 147
! #define E_NETWORKIP 148
! #define E_NETSIZE 149
! #define M_ACCESS 150
! #define T_DNSACCESS 151
! #define B_EDITNAME 152
! #define T_ACLNAME 153
! #define I_ACLNAME 154
! #define E_NOSPACE 155
! #define F_ACLNAME 156
! #define F_NOTIFY 157
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/dnsconf/dnsconf.p linuxconf-1.14r3/modules/dnsconf/dnsconf.p
*** linuxconf-1.14r2/modules/dnsconf/dnsconf.p Sun Mar 28 11:05:50 1999
--- linuxconf-1.14r3/modules/dnsconf/dnsconf.p Wed Apr 7 02:19:06 1999
***************
*** 2,6 ****
/* acl.cc 27/03/99 11.12.28 */
/* bind8.cc 26/03/99 23.12.20 */
! /* dns.cc 28/03/99 11.02.54 */
void dns_writeopts (const SSTRINGS&tb,
const char *keyword,
--- 2,6 ----
/* acl.cc 27/03/99 11.12.28 */
/* bind8.cc 26/03/99 23.12.20 */
! /* dns.cc 07/04/99 02.17.46 */
void dns_writeopts (const SSTRINGS&tb,
const char *keyword,
***************
*** 21,25 ****
void dns_lexcheck (SSTRING&s, int &nof, int new_nof, int &err);
void dns_lexcheck (SSTRINGS&tb, int &nof, int new_nof, int &err);
! /* features.cc 27/03/99 11.15.16 */
void feature_editlist (DIALOG&dia,
int level,
--- 21,25 ----
void dns_lexcheck (SSTRING&s, int &nof, int new_nof, int &err);
void dns_lexcheck (SSTRINGS&tb, int &nof, int new_nof, int &err);
! /* features.cc 07/04/99 02.15.06 */
void feature_editlist (DIALOG&dia,
int level,
***************
*** 32,36 ****
void ipmap_edit (void);
int ipmap_allocateip (const char *range, char *ip, DNS&dns);
! /* logging.cc 28/03/99 11.05.38 */
/* misc.cc 30/07/97 23.45.38 */
void dns_cnv2abs (SSTRING&s);
--- 32,36 ----
void ipmap_edit (void);
int ipmap_allocateip (const char *range, char *ip, DNS&dns);
! /* logging.cc 28/03/99 11.25.22 */
/* misc.cc 30/07/97 23.45.38 */
void dns_cnv2abs (SSTRING&s);
***************
*** 40,44 ****
void dnsconf_updatedns (bool silent);
/* origin.cc 20/03/99 08.10.52 */
! /* primary.cc 26/03/99 20.41.32 */
/* primbydom.cc 20/12/98 14.41.44 */
/* primquery.cc 23/07/97 22.55.18 */
--- 40,44 ----
void dnsconf_updatedns (bool silent);
/* origin.cc 20/03/99 08.10.52 */
! /* primary.cc 07/04/99 02.18.54 */
/* primbydom.cc 20/12/98 14.41.44 */
/* primquery.cc 23/07/97 22.55.18 */
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/dnsconf/dnsconf.pm linuxconf-1.14r3/modules/dnsconf/dnsconf.pm
*** linuxconf-1.14r2/modules/dnsconf/dnsconf.pm Sun Mar 28 11:05:50 1999
--- linuxconf-1.14r3/modules/dnsconf/dnsconf.pm Wed Apr 7 02:19:06 1999
***************
*** 36,40 ****
PUBLIC int BIND8_LEXPARSE::expect (const char *s);
PUBLIC const char *BIND8_LEXPARSE::getcomment (void);
! /* dns.cc 28/03/99 11.02.54 */
PUBLIC CONFIG_FILE_DNS::CONFIG_FILE_DNS (const char *_path);
PUBLIC int CONFIG_FILE_DNS::extract (SSTREAM&ss);
--- 36,40 ----
PUBLIC int BIND8_LEXPARSE::expect (const char *s);
PUBLIC const char *BIND8_LEXPARSE::getcomment (void);
! /* dns.cc 07/04/99 02.17.46 */
PUBLIC CONFIG_FILE_DNS::CONFIG_FILE_DNS (const char *_path);
PUBLIC int CONFIG_FILE_DNS::extract (SSTREAM&ss);
***************
*** 56,59 ****
--- 56,60 ----
PUBLIC DNS::DNS (bool extract);
PUBLIC int DNS::empty (void);
+ PUBLIC bool DNS::getnotify (void)const;
PUBLIC void DNS::basiccheck (void);
PRIVATE void DNS::mkzonedir (void);
***************
*** 113,117 ****
PUBLIC void DNS::editone (const char *name);
PUBLIC void DNS::editrecs (const char *preset);
! /* features.cc 27/03/99 11.15.16 */
PUBLIC void DNS::editaccess (void);
PUBLIC void DNS::editfeatures (void);
--- 114,118 ----
PUBLIC void DNS::editone (const char *name);
PUBLIC void DNS::editrecs (const char *preset);
! /* features.cc 07/04/99 02.15.06 */
PUBLIC void DNS::editaccess (void);
PUBLIC void DNS::editfeatures (void);
***************
*** 140,144 ****
char *ip,
DNS&dns);
! /* logging.cc 28/03/99 11.05.38 */
PUBLIC void UNKNOWN::add (const char *token, const char *comment);
PUBLIC void UNKNOWN::write (FILE *fout, int level);
--- 141,145 ----
char *ip,
DNS&dns);
! /* logging.cc 28/03/99 11.25.22 */
PUBLIC void UNKNOWN::add (const char *token, const char *comment);
PUBLIC void UNKNOWN::write (FILE *fout, int level);
***************
*** 182,186 ****
PUBLIC int ORIGINS::save (const char *named_dir,
const char *fname)const;
! /* primary.cc 26/03/99 20.41.32 */
PUBLIC PRIMARY::PRIMARY (const char *_domain,
const char *_file,
--- 183,187 ----
PUBLIC int ORIGINS::save (const char *named_dir,
const char *fname)const;
! /* primary.cc 07/04/99 02.18.54 */
PUBLIC PRIMARY::PRIMARY (const char *_domain,
const char *_file,
***************
*** 212,216 ****
PUBLIC int PRIMARY::write (bool bind8,
FILE *fout,
! const char *named_dir)const;
PUBLIC void PRIMARY::addrec (RECORD *rec);
PUBLIC void PRIMARY::setupdia (DIALOG&dia,
--- 213,218 ----
PUBLIC int PRIMARY::write (bool bind8,
FILE *fout,
! const char *named_dir,
! const DNS *dns)const;
PUBLIC void PRIMARY::addrec (RECORD *rec);
PUBLIC void PRIMARY::setupdia (DIALOG&dia,
***************
*** 228,232 ****
PUBLIC int PRIMARYS::write (bool bind8,
FILE *fout,
! const char *named_dir)const;
PUBLIC VIRTUAL PRIMARY *PRIMARYS::new_PRIMARY (void);
PUBLIC PRIMARY *PRIMARYS_REV::new_PRIMARY (void);
--- 230,235 ----
PUBLIC int PRIMARYS::write (bool bind8,
FILE *fout,
! const char *named_dir,
! const DNS *dns)const;
PUBLIC VIRTUAL PRIMARY *PRIMARYS::new_PRIMARY (void);
PUBLIC PRIMARY *PRIMARYS_REV::new_PRIMARY (void);
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/dnsconf/features.cc linuxconf-1.14r3/modules/dnsconf/features.cc
*** linuxconf-1.14r2/modules/dnsconf/features.cc Sat Mar 27 11:15:16 1999
--- linuxconf-1.14r3/modules/dnsconf/features.cc Wed Apr 7 02:15:07 1999
***************
*** 79,82 ****
--- 79,86 ----
dia.newf_str (MSG_U(F_SEARCHLIST,"Search list"),searchlist);
}
+ if (bind8){
+ dia.newf_chk (MSG_U(F_NOTIFY,"Notify"),options.notify
+ ,"");
+ }
int nof = 0;
while (1){
diff -rc2P -x *.o -x *.a -x *.bak -x *~ -x *.help -x *.old -x *.nap -x *.nar -x *.nas -x *.gif -x *.class linuxconf-1.14r2/modules/dnsconf/primary.cc linuxconf-1.14r3/modules/dnsconf/primary.cc
*** linuxconf-1.14r2/modules/dnsconf/primary.cc Fri Mar 26 20:41:32 1999
--- linuxconf-1.14r3/modules/dnsconf/primary.cc Wed Apr 7 02:18:54 1999
***************
*** 306,310 ****
Return -1 if any error.
*/
! PUBLIC int PRIMARY::write (bool bind8, FILE *fout, const char *named_dir) const
{
int ret = origins.save (named_dir,file.get());
--- 306,310 ----
Return -1 if any error.
*/
! PUBLIC int PRIMARY::write (bool bind8, FILE *fout, const char *named_dir, const DNS * dns) const
{
int ret = origins.save (named_dir,file.get());
***************
*** 313,317 ****
fprintf (fout,"\t%s %s;\n",K_TYPE,K_MASTER);
fprintf (fout,"\t%s \"%s\";\n",K_FILE,file.get());
! fprintf (fout,"\t%s %s;\n",K_NOTIFY,notify ? "yes" : "no");
dns_writeopts (allowtrans,K_ALLOW_TRANSFER,fout);
dns_writeopts (allowquery,K_ALLOW_QUERY,fout);
--- 313,319 ----
fprintf (fout,"\t%s %s;\n",K_TYPE,K_MASTER);
fprintf (fout,"\t%s \"%s\";\n",K_FILE,file.get());
! if (notify!=NOTIFY_DEFAULT) {
! fprintf (fout,"\t%s %s;\n",K_NOTIFY,notify ? "yes" : "no");
! }
dns_writeopts (allowtrans,K_ALLOW_TRANSFER,fout);
dns_writeopts (allowquery,K_ALLOW_QUERY,fout);
***************
*** 397,406 ****
dia.newf_title ("",MSG_U(F_EVERYHOSTS,"Every hosts requirements"));
dia.newf_str (MSG_U(F_TTL,"Time to live"),info.soa->default_ttl);
! dia.newf_title (MSG_U(T_ACCESS,"Access control"),level,"",MSG_R(T_ACCESS));
! int level2 = level + 1;
! feature_editlist (dia,level2,MSG_R(F_ALLOWTRANS),allowtrans);
! feature_editlist (dia,level2,MSG_R(F_ALLOWQUERY),allowquery);
! feature_editlist (dia,level2,MSG_U(F_ALLOWUPDATE,"Allow update from"),allowupdate);
! feature_editlist (dia,level2,MSG_U(F_ALSONOTIFY,"Also notify"),alsonotify);
}
--- 399,410 ----
dia.newf_title ("",MSG_U(F_EVERYHOSTS,"Every hosts requirements"));
dia.newf_str (MSG_U(F_TTL,"Time to live"),info.soa->default_ttl);
! if (dns.bind8){
! dia.newf_title (MSG_U(T_ACCESS,"Access control"),level,"",MSG_R(T_ACCESS));
! int level2 = level + 1;
! feature_editlist (dia,level2,MSG_R(F_ALLOWTRANS),allowtrans);
! feature_editlist (dia,level2,MSG_R(F_ALLOWQUERY),allowquery);
! feature_editlist (dia,level2,MSG_U(F_ALLOWUPDATE,"Allow update from"),allowupdate);
! feature_editlist (dia,level2,MSG_U(F_ALSONOTIFY,"Also notify"),alsonotify);
! }
}
***************
*** 580,588 ****
! PUBLIC int PRIMARYS::write (bool bind8, FILE *fout, const char *named_dir) const
{
int ret = 0;
for (int i=0; i