cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1971
Views
3
Helpful
2
Replies

create VLAN and dnsNameservers ?

MagnusA
Community Member

Hi ,

When I create a VLAN, I cant specify Nameservers , no matter what I specify it gets always upstream_dns.

Any Ideas ?

A PUT afterwards works though ..

endpoint used: "https://api.meraki.com/api/v1/networks/$networkId/appliance/vlans"

Payload:

{
    "name": "Trusted devices",
    "id": "1861",
    "applianceIp": "172.18.61.1",
    "subnet": "172.18.61.0/24",
    "reservedIpRanges":  [
        {
            "start":  "172.18.61.1",
            "end":  "172.18.61.20",
            "comment":  "x"
        }
    ],
"dnsNameservers": "192.168.0.20",
"dhcpHandling":  "Run a DHCP server",
"dhcpLeaseTime":  "1 day",
"dhcpBootOptionsEnabled":  false
}

regards // Magnus

1 Accepted Solution

Accepted Solutions

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

I haven't checked the documentation, but I could see the dnsNameservers needing to be an array rather than just a string.

View solution in original post

2 Replies 2

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

I haven't checked the documentation, but I could see the dnsNameservers needing to be an array rather than just a string.

I realized that I must create vlan , then modify to add settings. Create does not support DNS , DHCP settings.

Thanks