Page MenuHomeVyOS Platform

DNS service failed to start
Closed, ResolvedPublicBUG

Description

In my vyos, the router DNS recursive forwarder failed to start, reporting the following error:

Jul 06 16:51:01 vyos pdns_recursor[25154]: Jul 06 16:51:01 Only one thread, no need to distribute queries ourselves
Jul 06 16:51:01 vyos pdns_recursor[25154]: PowerDNS Recursor 4.3.2 (C) 2001-2020 PowerDNS.COM BV
Jul 06 16:51:01 vyos pdns_recursor[25154]: Using 64-bits mode. Built using gcc 8.3.0 on Jun 30 2020 21:56:22 by root@abda66eaec39.
Jul 06 16:51:01 vyos pdns_recursor[25154]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Jul 06 16:51:01 vyos pdns_recursor[25154]: Enabling IPv6 transport for outgoing queries
Jul 06 16:51:01 vyos pdns_recursor[25154]: Unable to load Lua script from 'recursor.conf.lua': STL Exception: recursor.vyos-hostsd.conf.lua:7: Caught exception: Found . in wrong position in DNSName pve..

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202007060117
Why the issue appeared?
Design mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Again, please always attach a configuration file

forwarding {
    allow-from 192.168.0.0/16
    allow-from 2001:470:f1cd::/48
    cache-size 1024
    domain pve. {
        addnta
        recursion-desired
        server 192.168.0.47
        server 2001:470:f1cd::47
    }
    listen-address 0.0.0.0
    listen-address ::
    name-server 2001:470:f1cd::ff00
    name-server 192.168.0.254
    name-server 202.96.134.33
    name-server 202.96.128.86
    name-server 114.114.114.114
    name-server 1.1.1.1
    name-server 1.0.0.1
    system
}
jack9603301 changed Version from 1.3-rolling-202006270117 to 1.3-rolling-202007060117.Jul 6 2020, 8:57 AM
jack9603301 updated the task description. (Show Details)

@c-po @jjakob I've found the root cause of the problem. When my domain is written in fully qualified format, there will be one more point in the generated Lua script. There are currently the following solutions to this problem:

a) Use the writing method approved by RFC standard headed by bind, and use the writing method similar to pve.

b) It is required that the user should ignore the last point in the use process, and use the writing method similar to pve

For details, please refer to the following link:

https://github.com/vyos/vyos-1x/blob/current/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl

I need someone to give me a good choice. I prefer standard writing. That is a

I have prepared a repair pudding, I use the solution of a, I am hesitating whether to mention PR, otherwise, it should be noted in the document that the writing of B should be ignored in the vyos configuration

jack9603301 changed the task status from Open to Needs testing.Jul 15 2020, 3:26 AM
jack9603301 triaged this task as Normal priority.
jack9603301 changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
jack9603301 changed Why the issue appeared? from Will be filled on close to Design mistake.
jack9603301 changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:57 PM
erkin removed a subscriber: Active contributors.