Showing posts with label google. Show all posts
Showing posts with label google. Show all posts

August 27, 2018

[SOLVED] Update google Cloud DNS A record to your local IP via bash



UpdateARecord.sh

#!/usr/bin/env bash
echo "My public IP:$(curl -s ipinfo.io/ip)"
ZONE_NAME='example-com'DOMAIN_NAME='somefacysubdomain.example.com.'

gcloud dns record-sets transaction abort -z=$ZONE_NAME
gcloud dns record-sets transaction start -z=$ZONE_NAME

#show current A record
gcloud dns record-sets list --zone $ZONE_NAME --name "$DOMAIN_NAME" --type=A

#remove old record
OLD_IP=$(gcloud dns record-sets list --zone $ZONE_NAME --name "$DOMAIN_NAME" --type=A | sed -n 2p | awk '{print $4}')
gcloud dns record-sets transaction remove -z=$ZONE_NAME \
   --name="$DOMAIN_NAME" \
   --type=A \
   --ttl=300 "$OLD_IP"

#add new record
gcloud dns record-sets transaction add -z=$ZONE_NAME \
   --name="$DOMAIN_NAME" \
   --type=A \
   --ttl=300 "$(curl -s ipinfo.io/ip)"

#check incoming changes
gcloud dns record-sets transaction describe -z=$ZONE_NAME

#make changes
gcloud dns record-sets transaction execute -z=$ZONE_NAME


#display updated DNS records
gcloud dns record-sets list --zone $ZONE_NAME

March 11, 2013

January 10, 2013

[SOLVED] Ubuntu: Configure Google Public DNS IPs

open resolv.conf

$ sudo vi /etc/resolv.conf

just add

nameserver 8.8.8.8
nameserver 8.8.4.4

Why should you try Google Public DNS?

By using Google Public DNS you can:

Source: https://developers.google.com/speed/public-dns/

February 20, 2011

[SOLVED] GoogleDocs: How to download the spreadsheet as xls

For example you found some nice Google Docs Sheet

https://spreadsheets.google.com/pub?key=0ArURTcbhh9uWdGdTVEFFM3FadVlMUE91QVRMQ0VGaFE

and would like to save this document as Excel file. Just add at the end of the URL "&output=xls"

https://spreadsheets.google.com/pub?key=0ArURTcbhh9uWdGdTVEFFM3FadVlMUE91QVRMQ0VGaFE&output=xls

also you may like to switch into edit mode (if you have enought rights). Just replace "pub" with "ccc"
https://spreadsheets.google.com/ccc?key=0ArURTcbhh9uWdGdTVEFFM3FadVlMUE91QVRMQ0VGaFE

Source: googlesystem.blogspot.com

November 14, 2010

GTUG Bootcamp 2010 in Munich

Here yo will get small overview of  "GTUG Bootcamp 2010 in Munich". You can also go directly to picasa gallery to comment pictures there ;) http://picasaweb.google.com/m.kupriyanov/GTUGBootcamp2010InMunich

Stuttgart GTUG [@StuGTUG] goes GTUG BootCamp in Munich #gtugbc