Page MenuHomeVyOS Platform

ddclient improperly updated when apply rfc2136 config
Open, Requires assessmentPublicBUG

Description

key is not being applied as password for nsupdate, requires manual editing, which of course disappears upon reboot. Tested with several rolling versions, including most recently

#Version
Version: VyOS 1.3-rolling-202012120217
Release Train: equuleus
Built by: autobuild@vyos.net
Built on: Sat 12 Dec 2020 02:17 UTC
Build UUID: 5b7e0220-6852-446d-913b-8ff33ea3dfcf
Build Commit ID: 1efea42f805d27
Architecture: x86_64
Boot via: installed image

Applied config:

set service dns dynamic interface eth0 rfc2136 greywolfe.family key '/config/auth/rndc.key'
set service dns dynamic interface eth0 rfc2136 greywolfe.family record '*.example.com'
set service dns dynamic interface eth0 rfc2136 greywolfe.family server 'auth.example.com'
set service dns dynamic interface eth0 rfc2136 greywolfe.family ttl '300'
set service dns dynamic interface eth0 rfc2136 greywolfe.family zone 'example.com'

Result /run/ddclient/ddclient.conf

Autogenerated by dynamic_dns.py

daemon=1m
syslog=yes
ssl=yes

ddclient configuration for interface "eth0"

use=if, if=eth0

RFC2136 dynamic DNS configuration for example.com, example.com, *.example.com

server=auth.example.com
protocol=nsupdate
password=
ttl=300
zone=example.com
*.example.com

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.3-rolling-202012120217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Any chance this gets looked at? Probably 5 minute fix, since it's just an error of the config key not being assigned.

@greywolfe Can you explain, which records/params do you expect?
Is that correct?

# RFC2136 dynamic DNS configuration for *.example.com.example.com
server=auth.example.com
protocol=nsupdate
password=/config/auth/rndc.key
ttl=300
zone=example.com
*.example.com

@Viacheslav
set service dns dynamic interface eth0 rfc2136 greywolfe.family key '/config/auth/rndc.key'

should cause the following in ddclient.conf, but instead leaves it blank

password=/config/auth/rndc.key

Thank you