---
title: "Zone AXFR"
url: "https://help.internetx.com/en/api/core-zone-axfr/"
lang: "en"
section: "API reference — API reference (XML/JSON)"
breadcrumb: "API documentation (JSON/XML) > Tasks > Zone tasks"
updated: "2022-07-11"
---

# Zone AXFR

## Function

The Zone AXFR task gets the zone data directly from the name server.

### Description

Route: GET /zone/{name}/{systemNameServer}/\_axfr​  
There is no need to send a body.

```
{
}
```

```
{
   "stid": "20190702-app3-dev-8005",
   "status": {
      "code": "S0210",
      "text": "Zone data has been inquired successfully",
      "type": "SUCCESS"
   },
   "object": {
      "type": "Zone",
      "value": "examplezone.com"
   },
   "data": [
      "examplezone.com.\t600\tIN\tSOA\tns1.example-nameserver.com. joe.example.com. 2019070100 3600 7200 604800 600\nexamplezone.com.\t600\tIN\tNS\tns2.example-nameserver.com.\nexamplezone.com.\t600\tIN\tNS\tns1.example-nameserver.com.\nexamplezone.com.\t86000\tIN\tA\t7.7.7.7\nsubdomainexample.examplezone.com.\t600\tIN\tA\t1.3.5.7\nwww.subdomainexample.examplezone.com.\t600\tIN\tA\t1.3.5.7\nwww.examplezone.com.\t86000\tIN\tA\t7.7.7.7\n"
   ]
}
```

Task code: 0210  
Uses [Zone](/en/api/core-domain-zone-object/) object

```
<request>
    <auth>
        <user>customer</user>
        <password>password</password>
        <context>4</context>
    </auth>
    <task>
        <code>0210</code>
        <zone>
            <system_ns>ns1.example.com</system_ns>
            <name>example.de</name>
        </zone>
    </task>
</request>
```

```
<response>
	<result>
		<data>
			<axfr><![CDATA[example.de. 86400 IN SOA ns1.example.com. sub1.example.com. 2014121200 43200 7200 1209600 86400 
					example.de. 86400 IN NS ns1.example.com. 		
					example.de. 86400 IN NS ns2.example.com. 
					example.de. 86400 IN A 123.123.123.123 	
					www.example.de. 86400 IN A 123.123.123.123
			]]></axfr>
		</data>
	</result>
	<status>
		<code>S0210</code>
		<text>Zone data has been inquired successfully.</text>
		<type>success</type>
		<object>
			<type>zone</type>
			<value>example.de</value>
		</object>
	</status>
</response>
```
