TimothyYe / godns

A dynamic DNS client tool that supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
https://timothyye.github.io/godns/
Apache License 2.0
1.5k stars 220 forks source link

Problem managing Linode-based domain names. #188

Open c4lliope opened 1 year ago

c4lliope commented 1 year ago

Describe the bug
A clear and concise description of what the bug is.

I had GoDNS running already on a number of domains; I added a couple and changed my godns.json around, and upon re-launching my domain DNS remains blank.

The frequency of this issue
could be a local issue.

Steps to Reproduce

sudo systemctl restart godns
# or
godns -c ~/src/godns/godns.json

Your GoDNS configuration

{
  "provider": "Linode",
  "login_token": "abc123",
  "domains": [
    {
      "domain_name": "assembled.app",
      "sub_domains": ["*", "@"]
    },
    {
      "domain_name": "base.bingo",
      "sub_domains": ["@"]
    },
    {
      "domain_name": "aerial.bio",
      "sub_domains": ["@"]
    },
    {
      "domain_name": "library.cards",
      "sub_domains": ["@"]
    },
    {
      "domain_name": "silicon.am",
      "sub_domains": ["@"]
    }
  ],
  "resolver": "8.8.8.8",
  "ip_url": "https://api.ipify.org",
  "ipv6_url": "https://ipify.org",
  "ip_type": "IPv4",
  "interval": 300
}

Expected behavior
Linode DNS records should be added.

Screenshots
image

Environment (please complete the following information):

Additional context

GoDNS systemd logs:

● godns.service - GoDNS Pong
     Loaded: loaded (/lib/systemd/system/godns.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-09-13 05:13:29 EDT; 9h ago
   Main PID: 2161 (godns)
      Tasks: 7 (limit: 1788)
     Memory: 1.8M
        CPU: 185ms
     CGroup: /system.slice/godns.service
             └─2161 /home/access/bin/godns -c=/home/access/src/godns/godns.json

Sep 13 05:13:29 genkan systemd[1]: Started GoDNS Pong.
Sep 13 05:13:29 genkan godns[2161]: time="2022-09-13T05:13:29-04:00" level=info msg="GoDNS started, entering main loop..."
Sep 13 05:13:29 genkan godns[2161]: time="2022-09-13T05:13:29-04:00" level=info msg="Creating DNS handler with provider: Linode"

My /lib/systemd/system/godns.service:

[Unit]
Description=GoDNS Pong
After=network.target

[Service]
ExecStart=/home/access/bin/godns -c=/home/me/src/godns/godns.json
Restart=always
KillMode=process
RestartSec=2s

[Install]
WantedBy=multi-user.target

I can access IP address on my machine:

$ curl https://api.ipify.org
98.218.220.151
TimothyYe commented 1 year ago

@c4lliope can you help to enable the config "debug_info": true to collect the detailed output logs?