Skip to content

--check-config misses misconfigured "webserver" configuration option #8362

Closed
@egon1024

Description

@egon1024
  • Program: dnsdist
  • Issue type: Bug report

Short description

When running dnsdist (1.3.3-1) with --check-config a specific config error is not caught

Environment

  • Operating system: Ubuntu
  • Software version: Xenial (16.04)
  • Software source: PowerDNS repository

Steps to reproduce

  1. Install dnsdist 1.3.3-1
  2. Add this line to a config file: webserver("127.0.0.6}:1234", "api_password", "api_key")
  3. Run dnsdist with --check-config against the config file and note that it does not report an error (the } between the IP address and the : is invalid, and is reported correctly when starting dnsdist)

Expected behaviour

An error in the configuration to be reported

Actual behaviour

No error is reported

root@ubuntu1604:~# /usr/bin/dnsdist --check-config -C /tmp/tmpdd.conf 
Configuration '/tmp/tmpdd.conf' OK!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions