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

No update or output from Google Domains #354

Open
crocokyle opened this issue Jul 16, 2021 · 9 comments
Open

No update or output from Google Domains #354

crocokyle opened this issue Jul 16, 2021 · 9 comments

Comments

@crocokyle
Copy link

crocokyle commented Jul 16, 2021

Currently running v2.3.1 on raspbian with google domains.
inadyn --check-config -l debug

config    : /etc/inadyn.conf
pidfile   : /var/run/inadyn.pid
cache-dir : /var/cache/inadyn
Checking configuration file /etc/inadyn.conf
Configuration file OK

cat /etc/inadyn.conf

# In-A-Dyn v2.0 configuration file format
period          = 300
user-agent      = Mozilla/5.0

# Google Domains - notice use of '@' to update root entry
provider [email protected] {
    hostname = @.heavyiron77.com
    username = USERNAME
    password = PASSWORD
}

sudo systemctl status inadyn

● inadyn.service - Internet Dynamic DNS Client
   Loaded: loaded (/lib/systemd/system/inadyn.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-07-15 21:20:41 EDT; 17min ago
     Docs: man:inadyn
           man:inadyn.conf
           https://github.com/troglobit/inadyn
 Main PID: 4997 (inadyn)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/inadyn.service
           └─4997 /usr/sbin/inadyn -n -s

Jul 15 21:20:41 pi-nvr systemd[1]: Started Internet Dynamic DNS Client.
Jul 15 21:20:41 pi-nvr inadyn[4997]: In-a-dyn version 2.3.1 -- Dynamic DNS update client.

tail -f /var/log/syslog

Jul 15 21:17:38 pi-nvr systemd[1]: Started Internet Dynamic DNS Client.
Jul 15 21:17:38 pi-nvr inadyn[4947]: In-a-dyn version 2.3.1 -- Dynamic DNS update client.

cat /var/cache/inadyn/@.heavyiron77.com.cache

XX.XX.XXX.XX #(My correct IP)

Running inadyn 1 -l debug outputs nothing but Google Domains still shows no update to the IP.
inadyn
/var/log/inadyn is also empty.

@troglobit
Copy link
Owner

Unfortunately I don't have google domains myself, hopefully someone else can chime in here. However, it would be great if you could post the output from inadyn -1 -l debug ... making sure to filter out your password of course.

The only thing I can think of is to try running also with --force, to bypass the Inadyn caching mechanism.

@crocokyle
Copy link
Author

inadyn -1 -l debug outputs nothing at all unfortunately, but I was able to make updates just using a bash script/cron for now.

Here is the bash script I'm using successfully at the moment:

USERNAME="<USERNAME>"
PASSWORD="<PASSWORD>"
HOSTNAME="@.mydomain.com"

# Resolve current public IP
IP=$(curl -s "https://domains.google.com/checkip")
# Update Google DNS Record
URL="https://${USERNAME}:${PASSWORD}@domains.google.com/nic/update?hostname=${HOSTNAME}&myip=${IP}"
printf "$(date) $(curl -s $URL)" >> /var/log/ddns
printf "\n" >> /var/log/ddns

I'd love to help out with a PR, but I'm not great with C. I can give you access to one of the old domains I don't use through Google Domains if you'd like. I've got several that I'm no longer using. They have a feature that lets me add another Gmail account as a manager for that domain and would allow you to test. I just need a Gmail address to assign it to.

Also, in case you weren't aware, the credentials for Google DDNS aren't your Gmail address/password. There's a generated set of credentials under DNS > Show Advanced Settings > Manage dynamic DNS > View Credentials

@troglobit
Copy link
Owner

Personally I only get to test against freedns, so a Google Domain account would be awesome, thanks! I'm actually working on setting up some sort of automated tests right now, so this would be great. My email is [email protected]

@troglobit
Copy link
Owner

Sorry, I realize now that I forgot -n in the command above, it should read: inadyn -1 -l debug -n to run in foreground and get debug logs to stderr, otherwise it goes to syslog.

@troglobit
Copy link
Owner

@crocokyle if at all possible, I'd still very much like to take you up on that offer of co-manager of one of your unused Google Domains.

@telnetdoogie
Copy link

telnetdoogie commented May 23, 2023

Hey @crocokyle ! I have a couple of google domains entries that I'm using inadyn to update for me and I'm not having any issues... Is there any info I can provide that might help? I'm wondering if you're having a problem with the use of the @ sign in the config? Here's mine (obfuscated)

provider [email protected]:2 {
        checkip-server = default
        username = blahblah
        password = blahblah
        hostname = home.mydomain.com
}

FYI I update home.mydomain.com and then I have a wildcard CNAME entry that points to home.mydomain.com

A suggestion might be to add dyn.heavyiron77.com which inadyn updates, and then make a custom (blank) entry heavyiron77.com point to dyn.heavyiron.com

@joshcohen
Copy link

joshcohen commented Nov 10, 2024

Google Domains closed and transferred all domains to SquareSpace earlier this year. This issue should be defunct?

@troglobit
Copy link
Owner

Then perhaps the plugin should be removed as well?

@joshcohen
Copy link

I intentionally stopped short of suggesting it to leave room for community discussion, but had the same thought.

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

No branches or pull requests

4 participants