Ddns - "BIND host error: '1'"

Hello,
I have this error on a Rpi4 installation with an official snapshot from spring this year (5.4.113 Kernel) and the as of now most actual "[Rpi4 < $(community_build)] (Rpi4 < $(community_build) - #1722 by Frozburn)". Since error is the same in both I post here.

This is my /etc/config/ddns:

config ddns 'global'
	option ddns_dateformat '%F %R'
	option ddns_loglines '250'
	option ddns_rundir '/var/run/ddns'
	option ddns_logdir '/var/log/ddns'

config service 'ServerService_fallen4'
	option enabled '1'
	option lookup_host 'fallen4.mig19.de'
	option use_ipv6 '0'
	option update_url 'https://robot.s-dns.de/scripts/dynamic_dns.php?zone=[DOMAIN]&zone_password=[PASSWORD]&host=[USERNAME]'
	option ip_source 'network'
	option use_syslog '2'
	option check_unit 'minutes'
	option force_unit 'minutes'
	option retry_unit 'seconds'
	option domain 'mig19.de'
	option username 'fallen4'
	option password 'PASS'
	option dns_server 'pns04.dcsix.net'

config service 'myddns_ipv6'
	option update_url 'http://[USERNAME]:[PASSWORD]@your.provider.net/nic/update?hostname=[DOMAIN]&myip=[IP]'
	option lookup_host 'yourhost.example.com'
	option domain 'yourhost.example.com'
	option username 'your_username'
	option password 'your_password'
	option use_ipv6 '1'
	option interface 'wan6'
	option ip_source 'network'
	option ip_network 'wan6'
	option enabled '0'

The service in question is "ServerService_fallen4", the myddns_ipv6 is not active yet.
I get "BIND host error: '1'" in the log:

125645       : #> /usr/bin/host -t A fallen4.mig19.de pns04.dcsix.net >/var/run/ddns/ServerService_fallen4.dat 2>/var/run/ddns/ServerService_fallen4.err
125645 ERROR : BIND host error: '1'
125645       :
125645  WARN : Get registered/public IP for 'fallen4.mig19.de' failed - retry 6/0 in 60 seconds

On the command line the lookup works fine, though:

# /usr/bin/host -t A fallen4.mig19.de pns04.dcsix.net                                                                                   
Using domain server:
Name: pns04.dcsix.net
Address: 185.136.99.195#53
Aliases: 

Host fallen4.mig19.de not found: 3(NXDOMAIN)

What could be the culprit for the host error code, which does not count on command line when manually executed?

Regards
Konsti

I'm confused. Can you explain what you mean by "works fine"?

:warning: BTW, if this is your domain, I get an NXDOMAIN error globally, which would be your problem (i.e. your domain is invalid).

1 Like

The ddns script(s) are checking if an update is required.
For this the existence of domain is checked preliminary. So the host command is issued and is expected(!) to return an NXDOMAIN as a result so update is required. This works on commandline!

Internal in the script the same command can not be executed, or gives a weird error.
Or does it expect a zero exit code in this case also, is this the culprit?
Is this use case working for anyone but me?

Pretty sure DDNS expects to get a response containing an IP address. I strongly suspect your issue would be resolved by ensuring the fallen4.mig19.de domain is properly set up with an initial IP address before you start using DDNS.

2 Likes

ARGH
You nailed it!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.