---
updatedAt: 2026-09-02T22:28:53.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/powershell/llms.txt
---

# Edge hostnames

Get-EdnsEdgeHostnames

## Synopsis

Get edge hostnames.

## Syntax

```powershell
Get-EDNSEdgeHostnames [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Description

Displays a list of edge hostnames that have been configured for you.

This function is similar to the `Get-EdgeHostname` operation, but is included here to give you an option of limiting your API client to just the Edge DNS API.

## Parameters

<table>
  <tbody>
    <tr>
      <td class="ps-td"><code>&#8209;AccountSwitchKey</code></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use <a href="https://techdocs.akamai.com/powershell/docs/get-accountswitchkey">Get-AccountSwitchKey</a>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;EdgeRCFile</code></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>Your EdgeGrid resource file to authenticate your command. Defaults to <code>~/.edgerc</code>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Section</code></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to <code>default</code>.</p>
        </div>
      </td>
    </tr>
  </tbody>
</table>

## Related Links

* [User Guide: Overview](https://techdocs.akamai.com/powershell/docs/overview)
* [API Reference](https://techdocs.akamai.com/edge-dns/reference/get-data-edgehostnames)

# Sibling pages

* [Authoritative name servers](https://techdocs.akamai.com/powershell/docs/get-ednsauthority.md)
* [Bulk zone create results](https://techdocs.akamai.com/powershell/docs/get-ednszonebulkcreateresult.md)
* [Bulk zone create request status](https://techdocs.akamai.com/powershell/docs/get-ednszonebulkcreatestatus.md)
* [Bulk zone delete request results](https://techdocs.akamai.com/powershell/docs/get-ednszonebulkdeleteresult.md)
* [Bulk zone delete request status](https://techdocs.akamai.com/powershell/docs/get-ednszonebulkdeletestatus.md)
* [Change list](https://techdocs.akamai.com/powershell/docs/get-ednschangelist.md)
* [Change list diff](https://techdocs.akamai.com/powershell/docs/get-ednschangelistdiff.md)
* [Change list settings](https://techdocs.akamai.com/powershell/docs/get-ednschangelistsettings.md)
* [Contract](https://techdocs.akamai.com/powershell/docs/get-ednszonecontract.md)
* [Contracts](https://techdocs.akamai.com/powershell/docs/get-ednscontracts.md)
* [Convert result](https://techdocs.akamai.com/powershell/docs/get-ednsconvertresult.md)
* [Convert status](https://techdocs.akamai.com/powershell/docs/get-ednsconvertstatus.md)
* [DNSSEC algorithms](https://techdocs.akamai.com/powershell/docs/get-ednsdnssecalgorithms.md)
* [DNSSEC status](https://techdocs.akamai.com/powershell/docs/get-ednszonednssecstatus.md)
* [Groups](https://techdocs.akamai.com/powershell/docs/get-ednsgroups.md)
* [Master zone file](https://techdocs.akamai.com/powershell/docs/get-ednsmasterfile.md)
* [Proxy](https://techdocs.akamai.com/powershell/docs/get-ednsproxy.md)
* [Proxy health check](https://techdocs.akamai.com/powershell/docs/get-ednsproxyhealthcheckrecordtypes.md)
* [Proxy zone](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzone.md)
* [Proxy zone create result](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzonecreateresult.md)
* [Proxy zone create status](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzonecreatestatus.md)
* [Proxy zone delete result](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzonedeleteresult.md)
* [Proxy zone delete status](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzonedeletestatus.md)
* [Proxy zone manual filter report](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzonemanualfilterreport.md)
* [Proxy zone TSIG key](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzonetsigkey.md)
* [Proxy zone TSIG key use](https://techdocs.akamai.com/powershell/docs/get-ednsproxyzonetsigkeyusedby.md)
* [Record set names for change list](https://techdocs.akamai.com/powershell/docs/get-ednschangelistrecordsetnames.md)
* [Record set types](https://techdocs.akamai.com/powershell/docs/get-ednsrecordsettypes.md)
* [Record set types for name and change list](https://techdocs.akamai.com/powershell/docs/get-ednschangelistrecordsettypes.md)
* [Record sets](https://techdocs.akamai.com/powershell/docs/get-ednsrecordset.md)
* [Record sets for change list](https://techdocs.akamai.com/powershell/docs/get-ednschangelistrecordset.md)
* [Secondary SOA](https://techdocs.akamai.com/powershell/docs/get-ednssecondarysoa.md)
* [TSIG key algorithms](https://techdocs.akamai.com/powershell/docs/get-ednstsigalgorithms.md)
* [TSIG key contract](https://techdocs.akamai.com/powershell/docs/get-ednstsigkeycontract.md)
* [TSIG keys](https://techdocs.akamai.com/powershell/docs/get-ednstsigkey.md)
* [Users of zone's TSIG key](https://techdocs.akamai.com/powershell/docs/get-ednstsigkeyusedby.md)
* [Zone](https://techdocs.akamai.com/powershell/docs/get-ednszone.md)
* [Zone's aliases](https://techdocs.akamai.com/powershell/docs/get-ednszonealias.md)
* [Zone DNS key](https://techdocs.akamai.com/powershell/docs/get-ednszonednskey.md)
* [Zone transfer status](https://techdocs.akamai.com/powershell/docs/get-ednszonetransferstatus.md)
* [Zone version](https://techdocs.akamai.com/powershell/docs/get-ednszoneversion.md)
* [Zone version master file](https://techdocs.akamai.com/powershell/docs/get-ednszoneversionmasterfile.md)
* [Zone version record set](https://techdocs.akamai.com/powershell/docs/get-ednszoneversionrecordset.md)