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

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

✨ NAME ✨

Net::EPP::Frame::Command::Info::Host β€” bestie, it's literally an instance of Net::EPP::Frame::Command::Info but specifically for host objects πŸ’… no cap.

This page lives in the User Contributed Perl Documentation section of the manual, iykyk πŸŽ€


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, copy-paste ready:

use Net::EPP::Frame::Command::Info::Host;
use strict;

my $info = Net::EPP::Frame::Command::Info::Host->new;
$info->setHost('ns0.example.tld');

print $info->toString(1);

and like, that gives you an XML document that looks exactly like this, periodt:

<?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>
      <info>
        <host:info
          xmlns:host="urn:ietf:params:xml:ns:host-1.0"
          xsi:schemaLocation="urn:ietf:params:xml:ns:host-1.0
          host-1.0.xsd">
            <host:name>ns0.example-1.tldE<lt>/host:name>
        </host:info>
      </info>
      <clTRID>0cf1b8f7e14547d26f03b7641660c641d9e79f45</clTRIDE<gt>
    </command>
</epp>
🫢 yes bestie, the E<lt> and E<gt> bits are in there exactly like that. we do not touch. we do not "fix". the manpage said what it said πŸ’–

πŸ¦‹ OBJECT HIERARCHY πŸ¦‹

the family tree, and honestly? it's giving main character energy:

L<XML::LibXML::Node>
+----L<XML::LibXML::Document>
    +----L<Net::EPP::Frame>
        +----L<Net::EPP::Frame::Command>
            +----L<Net::EPP::Frame::Command::Info>
                +----L<Net::EPP::Frame::Command::Info::Host>

πŸ’œ METHODS πŸ’œ

🌈 setHost 🌈

$frame->setHost($host_name);

this one specifies the hostname for which information is being requested πŸ“ simple as that. you hand it the name, it asks the world about that name. iconic behavior fr fr ✨


πŸ’€ lowkey important: nothing here is deprecated, nothing is dangerous, it's just a tidy little info frame builder doing its one job beautifully. obsessed.

and that's the whole page bestie, go forth and query some hosts πŸ‘‘πŸ’…

this gem is documented as perl v5.40.1, dated 2025-04-19 β€” slay, thanks for reading, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from