[Pdns-users] Preferred filename of recursor settings

Otto Moerbeek otto at drijf.net
Tue Sep 10 10:56:14 UTC 2024


OBOn Tue, Sep 10, 2024 at 10:43:11AM +0100, Brian Candler via Pdns-users wrote:

> At https://doc.powerdns.com/recursor/yamlsettings.html it says:
> 
> /Starting with version 5.1.0, in the absence of a recursor.yml file, an
> existing recursor.conf will be processed as YAML, if that fails, it will be
> processed as old-style configuration. Packages will stop installing a
> old-style recursor.conf file and *start installing a default recursor.conf
> file containing YAML syntax*.
> /
> 
> [my emphasis]
> 
> Does this mean that going forward, the configuration file should
> preferentially be called "recursor.conf" rather than "recursor.yml", even
> when it's in YAML format?
> 
> The reason I ask is because if recursor.{conf,yml} in YAML format has a
> "recursor.include_dir" setting, then it only looks for files called *.yml in
> that directory.  So it seems to be a bit odd to use recursor.conf but *.yml
> for all the others.
> 
> Regards,
> 
> Brian.

recursor.conf allowed to contain YAML settings is the exception to the
rule to allow for easier upgrades of existing setups while still being
able to install a default YAML settings file for new installs.

Whether to read .yml or .conf include files is determined by the
format of mai settings file, not the name.

See also the recent update to upgrade.html.

	-Otto




More information about the Pdns-users mailing list