pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.65k stars 1.68k forks source link

DNS settings in *_installer container are ignore #4689

Closed BenasPaulikas closed 5 months ago

BenasPaulikas commented 1 year ago

Current Behavior

In docker config I changed DNS to cloudflare IP's image

In installation script I do

cat /etc/resolv.conf

It returns

nameserver 127.0.0.11

Expected Behavior

Correct DNS servers would be used/ /etc/resolv.conf would return 1.1.1.1

It's strange that DNS is being set here https://github.com/pterodactyl/wings/blob/develop/server/install.go#L454 But it's not being used.

Steps to Reproduce

Change docker network config

    dns:
    - 1.1.1.1
    - 1.0.0.1

In egg installation do

cat /etc/resolv.conf

Panel Version

1.11.3

Wings Version

1.11.4

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

No response

Is there an existing issue for this?

MaximumWoahverdrive commented 1 year ago

Did you remove the docker network and restart wings on the node as documented? https://pterodactyl.io/wings/1.0/configuration.html#example-of-usage-2

The process to change DNS for the containers is:

  1. Stop all pterodactyl managed containers running on the node (through the panel)
  2. Stop wings on the node systemctl stop wings
  3. Edit the network config in /etc/pterodactyl/config.yml
  4. Remove the network on the node docker network rm pterodactyl_nw (if you get an error stating "[...] has active endpoints" there are still containers with that network running)
  5. Start wings systemctl start wings

resolv.conf containing nameserver 127.0.0.11 is expected