dotpanic
New Around Here
Hi!
I have some issues installing NextDNS on Asus Merlin 386.2_2.
The install seems to complete successfuly:
The first issue I have is that I can't see logs:
Ok I can live without that but anyway, is this a security issue? Does nextdns need some rights on its logging path?
Everything is working fine just after installation. But as soon as I reboot the router, nextdns is not activated.
I've spend a few hours trying to understand why I don't have access to startdns logs and why it does not start correctly at reboot, but I'm pretty lost now
Is anyone can help?
Thank you!
I have some issues installing NextDNS on Asus Merlin 386.2_2.
The install seems to complete successfuly:
admin@u8t-wlanap:/tmp/home/root# DEBUG=1 sh -c "$(curl -sL https://nextdns.io/install)"
INFO: OS: asuswrt-merlin
INFO: GOARCH: armv5
INFO: GOOS: linux
INFO: NEXTDNS_BIN: /jffs/nextdns/nextdns
INFO: LATEST_RELEASE: 1.12.5
DEBUG: Start install loop with CURRENT_RELEASE=
DEBUG: NextDNS is not installed
i) Install NextDNS
e) Exit
Choice (default=i): i
INFO: Installing NextDNS...
DEBUG: Using merlin install type
DEBUG: Installing 1.12.5 binary for linux/armv5 to /jffs/nextdns/nextdns
DEBUG: Downloading https://github.com/nextdns/nextdns/releases/download/v1.12.5/nextdns_1.12.5_linux_armv5.tar.gz
DEBUG: Start configure
DEBUG: Get configuration ID
DEBUG: Previous config ID: xxxxxx
NextDNS Configuration ID (default=xxxxxx):
DEBUG: Add arg -config=xxxxxx
Sending your devices name lets you filter analytics and logs by device.
Report device name? [Y|n]: Y
DEBUG: Add arg -report-client-info=true
DEBUG: Add arg -setup-router=true
Make nextdns CLI cache responses. This improves latency and reduces the amount
of queries sent to NextDNS.
Note that enabling this feature will disable dnsmasq for DNS to avoid double
caching.
Enable caching? [Y|n]: Y
DEBUG: Add arg -cache-size=10MB
Instant refresh will force low TTL on responses sent to clients so they rely
on CLI DNS cache. This will allow changes on your NextDNS config to be applied
on you LAN hosts without having to wait for their cache to expire.
Enable instant refresh? [Y|n]: Y
DEBUG: Add arg -max-ttl=5s
NextDNS installed and started using merlin init
Congratulations! NextDNS is now installed.
To upgrade/uninstall, run this command again and select the approriate option.
You can use the nextdns command to control the daemon.
Here is a few important commands to know:
# Start, stop, restart the daemon:
nextdns start
nextdns stop
nextdns restart
# Configure the local host to point to NextDNS or not:
nextdns activate
nextdns deactivate
# Explore daemon logs:
nextdns log
# For more commands, use:
nextdns help
INFO: OS: asuswrt-merlin
INFO: GOARCH: armv5
INFO: GOOS: linux
INFO: NEXTDNS_BIN: /jffs/nextdns/nextdns
INFO: LATEST_RELEASE: 1.12.5
DEBUG: Start install loop with CURRENT_RELEASE=
DEBUG: NextDNS is not installed
i) Install NextDNS
e) Exit
Choice (default=i): i
INFO: Installing NextDNS...
DEBUG: Using merlin install type
DEBUG: Installing 1.12.5 binary for linux/armv5 to /jffs/nextdns/nextdns
DEBUG: Downloading https://github.com/nextdns/nextdns/releases/download/v1.12.5/nextdns_1.12.5_linux_armv5.tar.gz
DEBUG: Start configure
DEBUG: Get configuration ID
DEBUG: Previous config ID: xxxxxx
NextDNS Configuration ID (default=xxxxxx):
DEBUG: Add arg -config=xxxxxx
Sending your devices name lets you filter analytics and logs by device.
Report device name? [Y|n]: Y
DEBUG: Add arg -report-client-info=true
DEBUG: Add arg -setup-router=true
Make nextdns CLI cache responses. This improves latency and reduces the amount
of queries sent to NextDNS.
Note that enabling this feature will disable dnsmasq for DNS to avoid double
caching.
Enable caching? [Y|n]: Y
DEBUG: Add arg -cache-size=10MB
Instant refresh will force low TTL on responses sent to clients so they rely
on CLI DNS cache. This will allow changes on your NextDNS config to be applied
on you LAN hosts without having to wait for their cache to expire.
Enable instant refresh? [Y|n]: Y
DEBUG: Add arg -max-ttl=5s
NextDNS installed and started using merlin init
Congratulations! NextDNS is now installed.
To upgrade/uninstall, run this command again and select the approriate option.
You can use the nextdns command to control the daemon.
Here is a few important commands to know:
# Start, stop, restart the daemon:
nextdns start
nextdns stop
nextdns restart
# Configure the local host to point to NextDNS or not:
nextdns activate
nextdns deactivate
# Explore daemon logs:
nextdns log
# For more commands, use:
nextdns help
The first issue I have is that I can't see logs:
Code:
admin@u8t-wlanap:/tmp/home/root# nextdns log
Error: exit status 1
Ok I can live without that but anyway, is this a security issue? Does nextdns need some rights on its logging path?
Everything is working fine just after installation. But as soon as I reboot the router, nextdns is not activated.
Code:
admin@u8t-wlanap:/tmp/home/root# nextdns
-sh: nextdns: not found
admin@u8t-wlanap:/tmp/home/root# ls /tmp/opt/sbin/
ls: /tmp/opt/sbin/: No such file or directory
*** symbolic link is not recreated at reboot? Do I need to manually add a "mkdir -p /tmp/opt/sbin" and "ln -sf /jffs/nextdns/nextdns /tmp/opt/sbin/nextdns" to /jffs/init-start?
admin@u8t-wlanap:/tmp/home/root# ps w | grep next
373 admin 781m S /jffs/nextdns/nextdns run
admin@u8t-wlanap:/tmp/home/root# grep next /tmp/syslog.log
/tmp/syslog.log:May 5 07:05:15 nextdns[373]: Starting NextDNS 1.12.5/linux on 127.0.0.1:5342
/tmp/syslog.log:May 5 07:05:15 nextdns[373]: Starting mDNS discovery
/tmp/syslog.log:May 5 07:05:15 nextdns[373]: Listening on TCP/127.0.0.1:5342
/tmp/syslog.log:May 5 07:05:15 nextdns[373]: Listening on UDP/127.0.0.1:5342
/tmp/syslog.log:Apr 20 09:49:19 nextdns[373]: Setting up router
/tmp/syslog.log:Apr 20 09:49:34 nextdns[373]: Activating
*** at this point, the daemon is started but nextdns website reports: This device is currently using ”Cloudflare” as DNS resolver
admin@u8t-wlanap:/tmp/home/root# /jffs/nextdns/nextdns restart
*** and now nextdns website reports: All good
I've spend a few hours trying to understand why I don't have access to startdns logs and why it does not start correctly at reboot, but I'm pretty lost now
Is anyone can help?
Thank you!
Last edited: