Net::E...Domain(3pm)

πŸ“¦
version 0.28 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ Net::EPP::Frame::Command::Transfer::Domain πŸ’–

okay bestie, so this is a User Contributed Perl Documentation page β€” and it's about Net::EPP::Frame::Command::Transfer::Domain, which is literally an instance of Net::EPP::Frame::Command::Transfer but specifically for domain objects. that's it, that's the whole name section. short, sweet, iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

here's the vibe β€” you spin one up, you tell it what to do, you tell it which domain, and you print it:

use Net::EPP::Frame::Command::Transfer::Domain;
use strict;

my $info = Net::EPP::Frame::Command::Transfer::Domain->new;
$info->setOp('query');
$info->setDomain('example.tld');

print $info->toString(1);

and this results in an XML document like this (yes, exactly like this, character for character, don't touch it):

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
  epp-1.0.xsd">
    <command>
      <transfer op="query">
        <domain:transfer
          xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"
          xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0
          domain-1.0.xsd">
            <domain:name>example.tldE<lt>/domain:name>
        </domain:transfer>
      </transfer>
      <clTRID>0cf1b8f7e14547d26f03b7641660c641d9e79f45</clTRIDE<gt>
    </command>
</epp>

look at that little clTRID doing its thing. main character energy fr fr. πŸ’…


πŸ¦‹ OBJECT HIERARCHY πŸ¦‹

here's the family tree, and yes it's giving royalty:

  L<XML::LibXML::Node>
  +----L<XML::LibXML::Document>
      +----L<Net::EPP::Frame>
          +----L<Net::EPP::Frame::Command>
              +----L<Net::EPP::Frame::Command::Transfer>
                  +----L<Net::EPP::Frame::Command::Transfer::Domain>

so like, it inherits down the whole chain and ends up as the domain-specific transfer child. slay. 🌈


πŸŽ€ METHODS πŸŽ€

setDomain

$frame->setDomain('example.tld');

this method specifies the domain name for the transfer. that's the whole job. you tell it which domain, it knows which domain. communication queen. πŸ’–

period

$frame->period($years);

this sets the optional renewal period for the transfer. note the optional β€” it's not required, it's just there if you want it. 🫢

setAuthInfo

$frame->setAuthInfo($pw);

this sets the authInfo code for the transfer. that's the password-y little auth code situation, and it's very much needed for the transfer to go through. πŸ”₯


no cap, this page is short but it's all killer no filler. every method listed, every XML tag preserved, nothing skipped. πŸ’œ

and that's a wrap on the docs, bestie β€” this page came from perl v5.40.1 and it's dated 2025-04-19. go forth and transfer those domains. periodt. βœ¨πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from