Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseException for filter-aaaa-on-v4 #47

Closed
stephan2012 opened this issue Nov 22, 2022 · 4 comments
Closed

ParseException for filter-aaaa-on-v4 #47

stephan2012 opened this issue Nov 22, 2022 · 4 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@stephan2012
Copy link
Contributor

Just faced pyparsing.exceptions.ParseException for option filter-aaaa-on-v4:

pyparsing.exceptions.ParseException: Expected '}', found 'filter'  (at char 2902), (line:98, col:9)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "library/bind9_info.py", line 227, in <module>
    main()
  File "library/bind9_info.py", line 223, in main
    run_module()
  File "library/bind9_info.py", line 208, in run_module
    result = my_clauses.parseString(toplevel_config, parseAll=True)
  File "/usr/local/lib/python3.8/ansible-2.12/lib/python3.8/site-packages/pyparsing/core.py", line 1141, in parse_string
    raise exc.with_traceback(None)
pyparsing.exceptions.ParseSyntaxException: Expected '}', found 'filter'  (at char 2902), (line:98, col:9)

Config:

options {
  […]
  filter-aaaa-on-v4 yes;
  […]
};
@egberts
Copy link
Owner

egberts commented Nov 25, 2022

Mmmmm, line 2518 of https://github.com/egberts/bind9_parser/blob/master/examples/rough-draft/namedconfglobal.py

Shows that this option is no longer used after 9.14.1. (It started in 9.8).

Perhaps setting the version number before reading the file to a desire version or your named.conf is actually holding some obsoleted clause/keywords?

This is a question.

@stephan2012
Copy link
Contributor Author

Perhaps setting the version number before reading the file to a desire version or your named.conf is actually holding some obsoleted clause/keywords?

The option is good since Ubuntu Server 18.04 LTS still brings BIND9 v9.11.3. Setting the target version is a good point. However, I was not yet able to figure out how to configure it. Did I miss any documentation about it?

@egberts
Copy link
Owner

egberts commented Nov 25, 2022

Yeah. Because there isn't any support for versioning (yet) outside of examples/rough-draft/namedconfglobal.py

My bad.

It's a bug then. I got this.

@egberts egberts added bug Something isn't working good first issue Good for newcomers labels Nov 25, 2022
@egberts egberts self-assigned this Nov 25, 2022
@stephan2012
Copy link
Contributor Author

Thank you, @egberts! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants