Hi,
thanks for suggestions. Here are my resultls:
I have tried: “opkg update; opkg install knot-host”, but first it didn’t help.
Yes, dig is installed in my router by default. Neither dig, nor nslookup nor khost helped first:
dig sync.afraid.org
<<>> DiG 9.11.2-P1 <<>> sync.afraid.org
global options: +cmd
connection timed out; no servers could be reached
khost sync.afraid.org
WARNING: response timeout for 127.0.0.1@53(UDP)
WARNING: response timeout for 127.0.0.1@53(UDP)
WARNING: failed to query server 127.0.0.1@53(UDP)
WARNING: response timeout for 127.0.0.1@53(UDP)
uci show ddns | grep service
ddns.myddns_ipv4=service
ddns.myddns_ipv4.service_name='dyndns.org’
ddns.myddns_ipv6=service
ddns.dnet_ipv4=service
ddns.dnet_ipv4.service_name='freedns.afraid.org’
ddns.test=service
/etc/init.d/ddns stop
usr/lib/ddns/dynamic_dns_updater.sh freedns 3
161313 : ************ ************** ************** **************
161313 note : PID ‘25125’ started at 2018-03-15 16:13
161313 : ddns version : 2.6.4-1
161313 : uci configuration:
ddns.dnet_ipv4=service
ddns.myddns_ipv4=service
ddns.myddns_ipv6=service
ddns.test=service
161313 WARN : Service section ‘freedns’ not defined - TERMINATE
161313 WARN : PID ‘25125’ exit WITH ERROR ‘1’ at 2018-03-15 16:13
And then some MAGIC started to happen, it started to work, but I do not understand exactly why:
khost sync.afraid.org
sync.afraid.org. is an alias for freedns.afraid.org.
freedns.afraid.org. has IPv4 address 50.23.197.94
dig sync.afraid.org
<<>> DiG 9.11.2-P1 <<>> sync.afraid.org
global options: +cmd
Got answer:
->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47363
flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
OPT PSEUDOSECTION:
EDNS: version: 0, flags:; udp: 4096
QUESTION SECTION:
sync.afraid.org. IN A
ANSWER SECTION:
sync.afraid.org. 300 IN CNAME freedns.afraid.org.
freedns.afraid.org. 60 IN A 50.23.197.94
Query time: 186 msec
SERVER: 127.0.0.1#53(127.0.0.1)
WHEN: Thu Mar 15 16:25:59 CET 2018
;MSG SIZE rcvd: 82
nslookup sync.afraid.org
nslookup: can’t resolve ‘(null)’: Name does not resolve
Name: sync.afraid.org
Address 1: 50.23.197.94 ns1.afraid.org
Please note my previous post. I have DNSSEC disabled for sync.afraid.org, but this config didn’t work so far for some reason. Your tip made it work though, I don’t know why or how. All we did was actually restarting ddns service. But it should have been restarted by router restart anyway. And it is restarted every day for me. But it only started to work now. I made some more testing and it is now working as expected. If i comment out my config in /etc/kresd/custom.conf and restart kresd, nslookup/dig/khost still wont work. If i enable it (means disable DNSSEC), then it works.