Page MenuHomeVyOS Platform

Unable to submit wildcard ("*.example.com") A or AAAA records in dns forwarder
Closed, ResolvedPublicBUG

Description

When attempting to submit a wildcard A record, an error appears:

me@gw01# set service dns forwarding authoritative-domain example.com records a * address '10.0.10.1'

  Invalid value
  Value validation failed
  Set failed

The same happens for AAAA records.

me@gw01# set service dns forwarding authoritative-domain example.com records aaaa * address 'fc00::1'

  Invalid value
  Value validation failed
  Set failed

This is part of DNS spec and should probably be accepted.

Details

Version
VyOS 1.4-rolling-202204190217
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

ajgnet updated the task description. (Show Details)

PR https://github.com/vyos/vyos-1x/pull/1382

vyos@r14# run show conf com | match dns
set service dns forwarding allow-from '192.0.2.0/24'
set service dns forwarding authoritative-domain example.com records a any address '192.0.2.1'
set service dns forwarding authoritative-domain example.com records a foo address '192.0.2.5'
set service dns forwarding authoritative-domain example.com records aaaa any address '2001:db8::11'
set service dns forwarding listen-address '192.168.122.14'
set service dns forwarding listen-address '192.0.2.1'
[edit]
vyos@r14# 
[edit]
vyos@r14# 
[edit]
vyos@r14# cat /run/powerdns/zone.example.com.conf
;
; Autogenerated by dns_forwarding.py
;
*    300    A    192.0.2.1
foo    300    A    192.0.2.5
*    300    AAAA    2001:db8::11
Viacheslav changed the task status from Open to Needs testing.Jul 4 2022, 5:21 PM
Viacheslav claimed this task.
Viacheslav moved this task from Open to Finished on the VyOS 1.4 Sagitta board.