Google/Domains

From Omnia
Jump to navigation Jump to search

Google Domains

https://domains.google.com/

Register web domain names through Google for about $12 for most domain names (depending on extension)

Google DNS

8.8.8.8
8.8.4.4

Setting up a Dynamic DNS synthetic record

Dynamic DNS - Google Domains Help - https://support.google.com/domains/answer/6147083

Naked Domain

To forward your Naked Domain, enter "." as your subdomain

To Dynamic DNS your Naked Domain, enter "." as your subdomain

Dynamic DNS

Google Domains uses the dyndns2 protocol

---

Wild Card:

While you cannot use a wildcard in a Dynamic DNS record, you can direct a wildcard to your naked domain or a particular subdomain with a CNAME record.
  1. Create a Dynamic DNS record for your naked domain using @ (@.example.com) or for the subdomain you want your wildcard redirected to.
  2. Create a CNAME record redirecting * (the wildcard) to your naked domain or subdomain. See Resource records for help with creating a CNAME record.

---

DDclient with Google Domains Support (ddclient.conf entries):

ssl=yes
protocol=googledomains
login=generated_username
password=generated_password
your_resource.your_domain.tld

---

Using API:

https://username:password@domains.google.com/nic/update?hostname=subdomain.yourdomain.com&myip=1.2.3.4

Responses:

# success
good 1.2.3.4
nochg 1.2.3.4
# failure
nohost
badauth
notfqdn
badagent
abuse
911

---

Reference:

Scripted API Update

#!/bin/bash

USER=ZQGaUj9xxxxxxx
PASS=gM9FEX0Ixxxxxxx
DOMAIN=www.oeey.com
IP=`curl -s ip.oeey.com`

echo "$IP" | grep -o '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' > /dev/null
if [ $? -eq 0 ] ; then
  OLDIP=`cat /tmp/ip-$DOMAIN`
  if [ "$IP" == "$OLDIP" ] ; then
    #echo "No update needed: $DOMAIN ($IP)"
    exit 0
  fi
  echo "$IP" > /tmp/ip-$DOMAIN
  #https://username:password@domains.google.com/nic/update?hostname=subdomain.yourdomain.com&myip=1.2.3.4
  curl -s "https://$USER:$PASS@domains.google.com/nic/update?hostname=$DOMAIN&myip=$IP"
  echo ""
  if [ $? -eq 0 ] ; then
    echo "Success: $DOMAIN ($IP)"
    exit 0
  else
    echo "Google update failed for domain: $DOMAIN ($IP)"
    exit 1
  fi
else
  echo "Unable to aquire IP: $DOMAIN ($IP)"
  exit 1
fi

Standard Google App Domains

Google Apps Free edition (legacy) - https://support.google.com/a/answer/2855120

Prior to December 6, 2012, Google offered a free edition of Google Apps—also known as the Standard edition—that had a reduced set of business features. As of December 6, 2012, Google stopped offering Free edition to new customers. If you already had the Free edition, you can continue using it for free. Or to receive the full set of business features, you can upgrade your account.

keywords

google domains registration registrar