Hello,
I recently switched my home network to use 4x OpenWRT-based Access Points. I have an Ubiquiti EdgeRouter that is configured to assign static IPs via DHCP to the access points. I also have DNSmasq enabled so that I can do local hostname lookups.
I cannot get auto-registration to work using the local DNS hostname but using the MAC address directly works.
E.g. my access point is named: ap_master.agarwalla.local and has a local IP: 10.0.1.5
I can successfully do an nslookup of ap_master.agarwalla.local from the OpenWisp server:
nilesh@OpenWisp:~$ nslookup ap_master.agarwalla.local
Server: 10.0.1.1
Address: 10.0.1.1#53
Name: ap_master.agarwalla.local
Address: 10.0.1.5
I installed and setup OpenWisp and also configured /etc/config/openwisp on the OpenWRT router:
config controller 'http'
option verify_ssl '0'
option uuid ''
option key ''
option shared_secret 'XXXX'
Auto-registration fails as follows:
root@ap_master:~# logread -f
Thu Jan 14 14:45:03 2021 daemon.info openwisp: Registering device...
Thu Jan 14 14:45:03 2021 daemon.err openwisp: Registration failed! { "name": [ "Must be either a valid hostname or mac address." ] }
Using the MAC address directly DOES work, though....but then I can't change the hostname via the web interface:
Any thoughts on how to get this all to work with the local DNS hostname?
Tnx!