Skip to content

dnsmasq configuration is wrong #113

Description

@jiramares

Sandcat loadsintranet domains from search domains (eg. A, B) and when local DNS server is provided (eq. a.b.c.d) creates the following configuration:

# Auto-generated by wg-client-init.sh — do not edit.
no-resolv
no-hosts
listen-address=127.0.0.1
bind-interfaces
log-facility=-
cache-size=1000
domain-needed
bogus-priv
server=/A/127.0.0.11
server=/B/127.0.0.11
server=a.b.c.d

but this configuration can't resolve another containers. The forward to docker resolver is not necessary for search domains but for other containers. Resolution for search domains is done by provided custom DNS server. From mine point of view the configuration should be:

# Auto-generated by wg-client-init.sh — do not edit.
no-resolv
no-hosts
listen-address=127.0.0.1
bind-interfaces
log-facility=-
cache-size=1000
bogus-priv
server=//127.0.0.11
server=a.b.c.d

So unqualified names (other containers) are sent to docker and everything else (including intranet domains) goes standard way to provided DNS server.

Do not force including domains (domain-needed) because containers has unqualified names.

Everything has been mentioned and described (including path in #64) .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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