Fred Registrar API Documentation

Introduction

This document provides an overview of how to use the Free Registry for ENUM and Domains (FRED) API for managing domain names. The API allows users to perform various domain-related operations such as registering, transferring, renewing, and managing DNS and contact information.

Prerequisites

Before using the FRED API, ensure you have the following:

  1. FRED API Credentials: Username and password for authentication.
  2. EPP Class Library: A PHP library for handling EPP (Extensible Provisioning Protocol) requests.
  3. Configuration File: A config.php file containing your API credentials and settings.

Configuration

The configuration function fred_getConfigArray returns an array of configuration settings required for connecting to the FRED API.

Nameserver Management

Get Nameservers

The fred_GetNameservers function retrieves the nameservers for a given domain.

Save Nameservers

The fred_SaveNameservers function updates the nameservers for a given domain.

Domain Lock Management

Get Registrar Lock

The fred_GetRegistrarLock function retrieves the lock status of a domain.

Save Registrar Lock

The fred_SaveRegistrarLock function updates the lock status of a domain.

Email Forwarding ManagementGet Email Forwarding

The fred_GetEmailForwarding function retrieves email forwarding settings.

Save Email Forwarding

The fred_SaveEmailForwarding function updates email forwarding settings.

DNS Management

Get DNS Records

The fred_GetDNS function retrieves DNS records for a domain.

Save DNS Records

The fred_SaveDNS function updates DNS records for a domain.

Domain Registration

Register Domain

The fred_RegisterDomain function registers a new domain.

Domain Transfer

Transfer Domain

The fred_TransferDomain function transfers a domain to another registrar.

Domain Renewal

Renew Domain

The fred_RenewDomain function renews a domain for a specified period.

Contact Management

Get Contact Details

The fred_GetContactDetails function retrieves the contact details for a domain.

Save Contact Details

The fred_SaveContactDetails function updates the contact details for a domain.

Auth Code Retrieval

Get EPP Code

The fred_GetEPPCode function retrieves the EPP code for a domain transfer.

Nameserver Management

Register Nameserver

The fred_RegisterNameserver function registers a new nameserver.

Modify Nameserver

The fred_ModifyNameserver function modifies the IP address of an existing nameserver.

Delete Nameserver

The fred_DeleteNameserver function deletes an existing nameserver.

This documentation provides an overview of how the Free Registry for ENUM and Domains (FRED) API works, based on the provided domain operations code. Each function is designed to handle specific domain management tasks, such as registration, transfer, renewal, and contact management. The functions interact with the EPP (Extensible Provisioning Protocol) to perform these tasks and handle responses accordingly.