Net-UKDomain-Nominet-Automaton

 view release on metacpan or  search on metacpan

Automaton.pm  view on Meta::CPAN


	if ( ! $d->delete($domain) ) {
		print "Unable to issue delete '$domain' operation - " . $d->errstr;
		}

=head1 DESCRIPTION

This module is designed to assist you automate operations used to interface with Nominet, the .UK domain registry.

The Nominet automaton system is an asyncronous process. Requests must be sent via email and replies are also returned via email.

The main operations will always return true if the message was sent successfully, otherwise the errstr will be populated.

It is recommended you have 'Automaton field options' set to 'Use new field set' via https://secure.nominet.org.uk/tags/manage-options.html

Further information on the Nominet automation system can be found here: http://www.nominet.org.uk/registrars/systems/auto/

=head1 USAGE

I<Net::UKDomain::Nominet::Automaton> has the following object based interface. On failure, all methods will return undef and set the errstr object with a suitable message.

=head2 Net::UKDomain::Nominet::Automaton->new( %args )

Constructs a new I<Net::UKDomain::Nominet::Automaton> instance and returns that object. 
Returns C<undef> on failure.

I<%args> can include:

=over 4

=item KEYID

The PGP KeyID to the key used to sign messages to the Nominet automaton system.

(eg: ABC123E4)

=item PASSPHRASE

The PGP passphrase you originally used to generate your key.

=item TAG

Your Nominet Registrar TAG.

Note: You should be listed here: http://www.nominet.org.uk/registrars/becomeregistrar/taglist/

=item SMTPSERVER

The smtp server through which messages to the Nominet automaton system will be sent.

=item EMAILFROM

The email address from which messages to the Nominet automaton system should be sent.

Note: This email address is usually the same one that you use to log in here: https://secure.nominet.org.uk/

=item SECRING

The full path to the secret keyring file.

eg: /home/user/.gnupg/secring.gpg

=item PUBRING

The full path to the public keyring file.

eg: /home/user/.gnupg/pubring.gpg

=item COMPAT

The compatibility mode for Crypt::OpenPGP (PGP2, PGP5 or GnuPG)

PGP2 is the default, you do not usually need to adjust this.

=item TESTEMAIL

This is used for debugging only. Don't enable this on a live system.

Defining this will mean that all requests will be sent to the defined 
testemail address instead of to the Nominet automation system.

=back

All arguements are required except I<COMPAT> and I<TESTEMAIL>. 
If I<COMPAT> is not provided it will default to PGP2.

=head1 Net::UKDomain::Nominet::Automaton->valid_domain($domain);

Validates the domain for the .uk name space. 

=head1 Net::UKDomain::Nominet::Automaton->domain_available($domain);

Checks whether the domain is available. Returns true if it is.

=head1 Net::UKDomain::Nominet::Automaton->register($domain, $details);

Sends a message to the Nominet Automaton to register the domain.

The %details hash should contain the details that the Nominet
automation system requires for domain registration to be completed.

All details will be validated.

Note: A true result does not mean the domain was successfully registered,
it simply means the request was successfully sent.

See: http://www.nominet.org.uk/registrars/systems/auto/request/

=head1 Net::UKDomain::Nominet::Automaton->modify($domain, $details);

Sends a message to the Automaton to modify the domain.

The %details hash should include only the fields you want to 
update. The fields need to be as per the Nominet Automaton 
standard fields.

See: http://www.nominet.org.uk/registrars/systems/auto/modify/

=head1 Net::UKDomain::Nominet::Automaton->release($domain, $tag);

Releases the domain to the given registrar TAG. 

This is the means Nominet use to transfer the management of a 
domain from one member or regisrar to another.

See: http://www.nominet.org.uk/registrars/systems/auto/release/



( run in 1.618 second using v1.01-cache-2.11-cpan-df04353d9ac )