Split DNS API

jimmyt234
Building a reputation

Split DNS API

APIs for Local and Split DNS Service

This feature allows administrators to determine which DNS requests are answered by which DNS servers.

 

I have raised a Meraki support ticket, but wanted to reach out to the community anyway to see if anyone had used this API / new feature yet.

 

The first issue I had is when trying to add multiple nameserver addresses, it threw an error saying: "More than one address is in addresses"

 

 

import requests

url = "https://api.meraki.com/api/v1/organizations/ORG_ID/appliance/dns/split/profiles"

payload = '''{
    "name": "8x8 DNS Profile",
    "hostnames": [ "*.8x8.com", "*.packet8.net" ],
    "nameservers": { "addresses": [ "8.28.0.9", "192.84.18.11" ] }
}'''

headers = {
    "Authorization": "Bearer API_TOKEN",
    "Content-Type": "application/json",
    "Accept": "application/json"
}

response = requests.request('POST', url, headers=headers, data = payload)

print(response.text.encode('utf8'))

 

 

When I added a profile with only one nameserver I was not convinced it was actually redirecting traffic to the specified nameserver, because a packet capture on the Internet port showed the DNS query going to the clients DNS server, which is set to Proxy to upstream DNS rather than the one added in the DNS profile via the API...

 

 

1 Reply 1
PhilipDAth
Kind of a big deal
Kind of a big deal

This is an interesting new feature you have found.

 

I suspect you'll need to be running the latest MX 19.x code for this to work.

Get notified when there are additional replies to this discussion.