November 23, 2017

DNS Forward Zone Details

The script shows the DNS Forward Zone Details.This means, that this retrieves
the individual records contained within a domain record

Important manual pages:

Author: SoftLayer Technologies, Inc. <>
import SoftLayer
# For nice debug output:
from pprint import pprint as pp

# Set SoftLayer API username and key.
USERNAME = 'set me'

# Generate one at
API_KEY = 'set me'

# Set the forward zone id
dnsId = 1769988

# Create a new connection to the API service.
client = SoftLayer.Client(

# Filter data according to details displayed in Customer Portal.
filterInstance = {"resourceRecords": {"type": {"operation": "soa"}}}

    # Gets the Forward Zone Details
    result = client['SoftLayer_Dns_Domain'].getResourceRecords(
        id=dnsId, filter=filterInstance)
except Exception as e:
    # An error message will be displayed if something is wrong in the script
    pp('Failed ............', e)


We would love to hear it
Open an issue