271
Votes

Add local DNS server to ER605

 
271
Votes

Add local DNS server to ER605

364 Reply
Re:Add local DNS server to ER605
2023-02-10 21:18:48

  @hammer86 

 

Hopefully an official solution will be provided soon. In the mean time I built a coredns plugin which resolves local client addresses via the omada controller client list.

 

https://github.com/dougbw/coredns_omada

#76
Options
Re:Add local DNS server to ER605
2023-02-11 20:04:12

I hope that there will be an update soon!

the new router ER605 have packed again for now, am thinking about whether I send him back

#77
Options
RE:Add local DNS server to ER605
2023-02-13 11:38:19
Please use the internal dns functionality of the Ubiquity edgerouter 6P as your goal. Works perfectly. Also allow de WAN dps to resolve to an internal adress where an application like PiHole might be running
#78
Options
RE:Add local DNS server to ER605
2023-02-14 03:56:41

@Lawton not sure if you noticed, here is the TP-Link Omada forum.

If I wish to change brands and dump my investment I wont be asking a thing here, right?

 

Thanks anyway.

The UnF Networks, inc My TP-Link network : 1x OC200, 1x TL-R605, 2x EAP-245 & 1x TL-SG2008
#79
Options
Re:Add local DNS server to ER605
2023-02-14 03:57:34
Will test it, thanks!
The UnF Networks, inc My TP-Link network : 1x OC200, 1x TL-R605, 2x EAP-245 & 1x TL-SG2008
#80
Options
RE:Add local DNS server to ER605
2023-02-14 06:54:00

  @TheUnF you didn't understand his answer. It wasn't an advise to change the brand, but a clue for development team to have well working Ubiquity as an inspiration.

#81
Options
RE:Add local DNS server to ER605
2023-02-14 09:39:24
I would appreciate it for ER7206 too, even through this feature sholud be implemented on the entire business router modells. +1
#82
Options
Re:Add local DNS server to ER605
2023-02-18 17:50:58

I would like to add to this request, a hostname override is a must for any system like this.

 

controller domain omada.mydomain.com resolves to a real IP address over the internet but overriding it for a private IP on the local lan makes sense.

#83
Options
Re:Add local DNS server to ER605
2023-02-26 04:17:24

  @snoop_doug 

snoop_doug wrote

  @hammer86 

 

Hopefully an official solution will be provided soon. In the mean time I built a coredns plugin which resolves local client addresses via the omada controller client list.

 

https://github.com/dougbw/coredns_omada

 

That's very cool!  Sadly, I'm in standalone mode, so no omada controller, but very very cool.

#84
Options
Re:Add local DNS server to ER605
2023-02-28 07:59:04

  @snoop_doug this is fantastic work, well done!

 

I want to do the same as an interim solution but I have an Unbound DNS server and not very familiar with Go. I had a look at your Github repository but not able to figure out the specific API calls that you used to get the information.

 

I am trying to build this is shell and I am getting stuck already at the point when trying to get the TOKEN:

 

# set variables

OMADA_URL="https://192.168.1.5:8843"

SITE="office"

USERNAME="apiuser"

PASSWORD="Password1234"

 

# get controller id from the API

CONTROLLER_ID="$(curl -sk "${OMADA_URL}/api/info" | jq -r .result.omadacId)"

# curl -sk "${OMADA_URL}/api/info"

echo $CONTROLLER_ID

 

# login, get token, set & use cookies

TOKEN="$(curl -sk -X POST -c "/tmp/omada-cookies.txt" -b "/tmp/omada-cookies.txt" -H "Content-Type: application/json" "${OMADA_URL}/${CONTROLLER_ID}/api/v3/login" -d '{"username": "'"${USERNAME}"'", "password": "'"${PASSWORD}"'"}' | jq -r .result.token)"

echo $TOKEN

 

# validate login

curl -sk -X GET -b "/tmp/omada-cookies.txt" -H "Content-Type: application/json" -H "Csrf-Token: ${TOKEN}" "${OMADA_URL}/${CONTROLLER_ID}/api/v2/loginStatus?token=${TOKEN}" | jq .

 

#get the site id

SITE_ID="$(curl -sk -X GET -b "/tmp/omada-cookies.txt" -H "Content-Type: application/json" -H "Csrf-Token: ${TOKEN}" "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites/${SITE}" | jq -r .result.id)"

echo $SITE_ID

 

# get list of clients

curl -sk -X GET -b "/tmp/omada-cookies.txt" -H "Content-Type: application/json" -H "Csrf-Token: ${TOKEN}" "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites/$SITEID/insight/clients?token=${TOKEN}&currentPage=1&currentPageSize=1000&filters.active=true"

 

 

The above script get's stuck getting the TOKEN, so "echo $TOKEN" is empty and hence the rest also doesn't work. 

 

Any ideas? I'd much appreciate any help, thanks!

 

 

#85
Options