The Huawei B315 modem supplied by Optus for the (now defunt) Vividwireless service is a workable but sadly rather crippled device, even down to the inability to modify assigned DNS servers from it's DHCP server away from Optus DNS to something sane (Google DNS/Cloudflare/etc.).
This script should allow for the easy update of assigned DNS servers and has been tested with Google Chrome.
- Log into router web UI (e.g.
http://192.168.0.1
). - From the same browser session, open the "web developer tools" pane.
- Drop the contents of
dnsmodify.js
intoConsole
area - modifyingROUTER_URI
,PRIMARY_DNS
andSECONDARY_DNS
to suit. - Run the script, updated DHCP settings are pushed and modem will restart.
- All DHCP leases should now receive updated DNS servers.
- Settings can be confirmed by:
- Logging once more into web UI.
- Visiting
http://192.168.0.1/api/dhcp/settings
. - Look for
<PrimaryDns>
/<SecondaryDns>
elements.
- List of connected Wi-Fi clients:
http://192.168.0.1/api/wlan/host-list