Skip to content

This yocLibrary enables your project to do DNS-specific operations.

License

Notifications You must be signed in to change notification settings

yocto/yoclib-dns-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yocLib - DNS (PHP)

This yocLibrary enables your project to do DNS-specific operations.

Status

PHP Composer codecov

Installation

composer require yocto/yoclib-dns

Usage

Deserializing

use YOCLIB\DNS\Helpers\TypeHelper;

// Deserialize from presentation format
$aRecord = TypeHelper::deserializeFromPresentationFormatByClassAndType('127.0.0.1',DNSClass::IN,DNSType::A);

// Deserialize from wire format
$aRecord = TypeHelper::deserializeFromWireFormatByClassAndType("\x7F\x00\x00\x01",DNSClass::IN,DNSType::A);

Serializing

use YOCLIB\DNS\Types\A;

$aRecord = new A('127.0.0.1');

// Serialize to presentation format
$aRecord->serializeToPresentationFormat();

// Serialize to wire format
$aRecord->serializeToWireFormat();

About

This yocLibrary enables your project to do DNS-specific operations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages