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

invalid domain name format "test.services" with docker #92

Closed
marcuslannister opened this issue Sep 5, 2020 · 6 comments
Closed

invalid domain name format "test.services" with docker #92

marcuslannister opened this issue Sep 5, 2020 · 6 comments

Comments

@marcuslannister
Copy link

marcuslannister commented Sep 5, 2020

It seams that it can not recognize "test.services" on config file, I change to "test.ser", then is ok.

here is my docker compose file, same as example.

version: "3.7"
services:
  ddns-updater:
    image: qmcgaw/ddns-updater
    container_name: ddns-updater
    network_mode: bridge
    ports:
      - 8000:8000/tcp
    volumes:
      - ./data:/updater/data
    environment:
      - CONFIG=
      - PERIOD=5m
      - IP_METHOD=cycle
      - IPV4_METHOD=cycle
      - IPV6_METHOD=cycle
      - HTTP_TIMEOUT=10s

      # Web UI
      - LISTENING_PORT=8000
      - ROOT_URL=/

      # Backup
      - BACKUP_PERIOD=0 # 0 to disable
      - BACKUP_DIRECTORY=/updater/data

      # Other
      - LOG_ENCODING=console
      - LOG_LEVEL=info
      - NODE_ID=-1 # -1 to disable
      - GOTIFY_URL=
      - GOTIFY_TOKEN=
    # restart: always
    restart: on-failure
@qdm12
Copy link
Owner

qdm12 commented Sep 5, 2020

I'm not sure I understand your problem, can you please elaborate more? Thanks!

@marcuslannister
Copy link
Author

sorry, I miss config file, below is my config file.

{
    "settings": [
        {
            "provider": "cloudflare",
            "domain": "test.services",
            "host": "@",
            "token": "xxx"
        }
    ]
}

when i start docker ddns-updater, it is fail.
fail log is

invalid domain name format "test.services"

when i change "domain": "test.services" to "domain": "test.ser", it is ok.

@qdm12
Copy link
Owner

qdm12 commented Sep 5, 2020

That's because it uses this regex to verify the format of the domain. I'll update it to support more top level domain names, maybe remove it as well as it shouldn't be really useful. I'll do that tomorrow morning, thanks for your patience and for reporting the issue!

@marcuslannister
Copy link
Author

got it and thanks.

@marcuslannister
Copy link
Author

one more thing, could you please add he.net support? ^_^

@qdm12 qdm12 closed this as completed in 00efca4 Sep 5, 2020
@qdm12
Copy link
Owner

qdm12 commented Sep 5, 2020

I removed the domain check so it should work with any domain name now. Anyway it's your responsibility to set the right domain name I guess 😄 Thanks again for the time creating the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants