Skip to content

Parsing Error 'resolv.conf' file #630

@maneta

Description

@maneta

From expanding the tests on the PR #618 we have found several issues with parse_nameservers function in the gateway/src/resty/resolver.lua file.

Identified Problems
  1. The bellow expression will do not catch the case where server == resolver because the function to.string of the meta table resolver is concatenating "serverName_ip".."ServerNamePort"
    if server and server ~= resolver then
      insert(nameservers, nameserver.new(server))
    end
  1. The parsing of search local.domain #foobar brakes the regex

Those are the identified cases I found that brakes the resolver. Maybe should extend a bit the test cases.

To Do:
  • correct server == resolver case
  • correct parsing search local.domain #foobar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions