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

Resolve failed since dns resolving system change #66

Closed
zethis opened this issue Sep 22, 2020 · 4 comments
Closed

Resolve failed since dns resolving system change #66

zethis opened this issue Sep 22, 2020 · 4 comments

Comments

@zethis
Copy link

zethis commented Sep 22, 2020

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

host gotify.xxx.xxx
gotify.xxx.xxx is an alias for xxx.xxx.xxx
xxx.xxx.xxx has address 116.203.xxx.xxx

Current Behavior

First resolution is good
host gotify.xxx.xxx
gotify.xxx.xxx is an alias for xxx.xxx.xxx
xxx.xxx.xxx has address 116.203.xxx.xxx

Curling Gotify:
curl -IL gotify.xxx.xxx
200 OK

Only after curl gotify, second is bad:
host gotify.xxx.xxx
gotify.xxx.xxx is an alias for xxx.xxx.xxx
xxx.xxx.xxx has address 127.0.1.1

And curl response:

curl: (7) Failed to connect to gotify.xxx.xxx port 80: Connection refused

Steps to Reproduce

  1. Wireguard server is a container, gotify is a container, on the same public IP.
  2. Gotify Dns should be a CNAME (i guess)
  3. Wireguard client is a container on another hardware and public IP
  4. Curl gotify from the wireguard client container
  5. Wg-client ="TUNNEL"> Wg-server > Gotify

Environment

OS: UBUNTU 20.04
CPU architecture: x86_64
Working image of Wireguard: image: linuxserver/wireguard:amd64-v1.0.20200513-ls25
How docker service was installed:

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

Command used to create docker container (run/create/compose/screenshot)

docker-compose

version: "3"
services:
  wireguard:
    container_name: 'wireguard'
    image: linuxserver/wireguard
    restart: 'unless-stopped'
    volumes:
      - /root/docker/wg0.conf:/config/wg0.conf
      - /lib/modules:/lib/modules
    sysctls:
      - "net.ipv4.conf.all.rp_filter=2"
      - "net.ipv4.conf.all.src_valid_mark=1"
      - "net.ipv6.conf.all.disable_ipv6=0"
    cap_add:
      - NET_ADMIN
      - sys_module
    networks:
      - wireguard-client
      - zethis 

Docker logs

No Log

@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the issue template!

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@zethis
Copy link
Author

zethis commented Oct 23, 2020

up

@github-actions
Copy link

github-actions bot commented Aug 4, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@drizuid drizuid closed this as completed Jan 12, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants