Accepted Add local DNS server to ER605
Please add a local DNS server, like dnsmasq, to the ER605. It's a bug for a business router that's running DHCP to not be able to resolve local host names.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
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
- Copy Link
- Report Inappropriate Content
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
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
@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.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
@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.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
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.
- Copy Link
- Report Inappropriate Content
snoop_doug wrote
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.
- Copy Link
- Report Inappropriate Content
@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}¤tPage=1¤tPageSize=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!
- Copy Link
- Report Inappropriate Content
Information
Helpful: 272
Views: 115644
Replies: 364