Skip to content

Is it possible to change the DNS server programatically? #38

Answered by vmakeev
felipecrs asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I think it is possible to make a service that will change the connection data

As far as I understand, for this I will need to get the current connection parameters GET api/ntwk/wan?type=active, then change the IPv4DnsServers field, and send back the request POST api/ntwk/wan?type=active with the body of the following type:

{
  "action": "update",
  "data": <previously received by the GET request and modified data>,
  "csrf": {
    "csrf_param": .....,
    "csrf_token": .....
  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@felipecrs
Comment options

Answer selected by felipecrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants