Здраствуйте!
Подскажите, что нужно сделать в программе? Как написать на РНР я пониаю, но не имел опыта и знаний связанных с DNS и BIND zone file :(
Вот текст задания:PHP5: Processing BIND zone files
1) Write a simple DNS zone management system using php5 and mysql
2) The script will receive a local path of zone file in bind format and will parse and replicate the zone information into MySQL DB and vice versa.
3) The database will containe the following tables:
a) Zones:
int id;
varchar zonename;
varchar hostmaster;
int ttl;
int serial;
int refresh;
int retry;
int expire;
int minimum;
string ns1;
string ns2;
string mx1;
string mx2;
b) Records:
int id (corresponding to id in Zones table)
string record_type;
string hostname;
string value (ipaddress or alias)
4) Write an interface for editing zone entries and updating zone information accordingly.
5) The script will generate a bind zone file from the information contained in the database.
6) The script MUST use Smarty template engine for HTML output.
7) The script MUST use MySQLi extension of php5 including prepared statements.
8) The script MUST be written using OOP (DNS zone must be defined as object)
9) For regular expressions PCRE MUST be utilized.
10) The code must be properly commented and each variable, function and method must have a corresponding PHPDOC entry.
Помогите люди, пожалуйста!