cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change DNS settings on AP's with API

SOLVED
Highlighted
Here to help

Change DNS settings on AP's with API

Hi,

 

I configured around 180 AP's in 1 organization with static IP addresses and static DNS. I would like to change only the DNS settings for all AP's, using API (with Postman app). I cannot change to DHCP because of monitoring systems. Anybody got any suggestions?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Kind of a big deal

Re: Change DNS settings on AP's with API

If you can it would be using this endpoint:

 

https://api.meraki.com/api_docs#update-the-management-interface-settings-for-a-device

 

You should be able to change only DNS, but I would test this out before hammering your Org with it 🙂

 

 

View solution in original post

4 REPLIES 4
Highlighted
Kind of a big deal

Re: Change DNS settings on AP's with API

If you can it would be using this endpoint:

 

https://api.meraki.com/api_docs#update-the-management-interface-settings-for-a-device

 

You should be able to change only DNS, but I would test this out before hammering your Org with it 🙂

 

 

View solution in original post

Highlighted
Kind of a big deal

Re: Change DNS settings on AP's with API

I don't think you can update IP or DNS info via API. It looks like update device attributes only allows the following:

 

{
"name":"Your AP",
"tags":" recently-added ",
"lat":37.4180951010362,
"lng":-122.098531723022,
"address":"1600 Pennsylvania Ave",
"moveMapMarker": true
}

 

It would be great if we could update stuff similar to updating WAN settings on an MX. So, so great. Edit: Wait, does this only work on MX? I only see reference to WAN ports.

 

Would your monitoring system settle down if you had reliable reservations setup? Or did you run into problems with that? Just curious - that's been our solution for monitoring Meraki devices with Auvik, but we're not sure if it's the best one or not. You'd still have to make that change manually across all devices...

Highlighted
Here to help

Re: Change DNS settings on AP's with API

Just did the first test and the AP comes back with the following:
{
"wan1": {
"usingStaticIp": true,
"staticIp": "192.168.1.3",
"staticSubnetMask": "255.255.255.0",
"staticGatewayIp": "192.168.1.1",
"staticDns": [
"8.8.8.8",
"8.8.4.4"
],
"vlan": null
}
}

Looks promising!
Highlighted
Here to help

Re: Change DNS settings on AP's with API

If you PUT the following with Postman:

{
"wan1": {
"staticDns": [
"208.67.222.222",
"208.67.220.220"
]
}
}

 

Only the DNS changes from the previous values to (in this case) the Cisco Umbrella (OpenDNS) values. It leaves the other "wan1" values as they were, so thanks a lot for pointing me to the right solution!

 

When using collections together with a CSV in Postman, you can change all AP's at once!

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.