FS::svc_domain - Object methods for svc_domain records
use FS::svc_domain;
$record = new FS::svc_domain \%hash; $record = new FS::svc_domain { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
$error = $record->suspend;
$error = $record->unsuspend;
$error = $record->cancel;
An FS::svc_domain object represents a domain. FS::svc_domain inherits from FS::svc_Common. The following fields are currently supported:
The additional fields pkgnum and svcpart (see the FS::cust_svc manpage) should be defined. An FS::cust_svc record will be created and inserted.
The additional field action should be set to N for new domains or M for transfers.
A registration or transfer email will be submitted unless $FS::svc_domain::whois_hack is true.
The additional field email can be used to manually set the admin contact email address on this email. Otherwise, the svc_acct records for this package (see the FS::cust_pkg manpage) are searched. If there is exactly one svc_acct record in the same package, it is automatically used. Otherwise an error is returned.
If any soamachine configuration file exists, an SOA record is added to the domain_record table (see <FS::domain_record>).
If any machines are defined in the nsmachines configuration file, NS records are added to the domain_record table (see the FS::domain_record manpage).
If any machines are defined in the mxmachines configuration file, MX records are added to the domain_record table (see the FS::domain_record manpage).
If a machine is defined in the shellmachine configuration value, the qmailmachines configuration file exists, and the catchall field points to an an account with a home directory (see the FS::svc_acct manpage), the command:
[ -e $dir/.qmail-$qdomain-defualt ] || { touch $dir/.qmail-$qdomain-default; chown $uid:$gid $dir/.qmail-$qdomain-default; }
is executed on shellmachine via ssh (see dot-qmail/``EXTENSION ADDRESSES''). This behaviour can be supressed by setting $FS::svc_domain::nossh_hack true.
a machine is defined in the
The corresponding FS::cust_svc record will be deleted as well.
Called by the suspend method of FS::cust_pkg (see the FS::cust_pkg manpage).
Called by the unsuspend method of FS::cust_pkg (see the FS::cust_pkg manpage).
Called by the cancel method of FS::cust_pkg (see the FS::cust_pkg manpage).
Sets any fixed values; see the FS::part_svc manpage.
(If $FS::svc_domain::whois_hack is true, returns that in all cases instead.)
$Id: svc_domain.html,v 1.3 2002-01-29 17:42:46 ivan Exp $
All BIND/DNS fields should be included (and exported).
Delete doesn't send a registration template.
All registries should be supported.
Should change action to a real field.
The $recref stuff in sub check should be cleaned up.
the FS::svc_Common manpage, the FS::Record manpage, the FS::Conf manpage, the FS::cust_svc manpage, the FS::part_svc manpage, the FS::cust_pkg manpage, the Net::Whois manpage, ssh, dot-qmail, schema.html from the base documentation, config.html from the base documentation.