Google Apps enabler til GratisDNS.dk

'ghs.google.com', 'mail'=>'ghs.google.com', 'calendar'=>'ghs.google.com', 'docs'=>'ghs.google.com', 'sites'=>'ghs.google.com' ); $mxrecords=array( 'ASPMX.L.GOOGLE.COM'=>'1', 'ALT1.ASPMX.L.GOOGLE.COM'=>'5', 'ALT2.ASPMX.L.GOOGLE.COM'=>'5', 'ASPMX2.GOOGLEMAIL.COM'=>'10', 'ASPMX3.GOOGLEMAIL.COM'=>'10', 'ASPMX4.GOOGLEMAIL.COM'=>'10', 'ASPMX5.GOOGLEMAIL.COM'=>'10' ); $xmpprecords=array( 'xmpp-server.l.google.com'=>'5', 'xmpp-server1.l.google.com'=>'20', 'xmpp-server2.l.google.com'=>'20', 'xmpp-server3.l.google.com'=>'20', 'xmpp-server4.l.google.com'=>'20' ); $domain = isset($_POST['domain'])?trim($_POST['domain']):""; $username = isset($_POST['username'])?trim($_POST['username']):""; $verifyrec = isset($_POST['verifyrec'])?trim($_POST['verifyrec']):""; $password = isset($_POST['password'])?trim($_POST['password']):""; if (domainownercheck($domain,$username,$password)) { echo "

Opretter verifyrecord (CNAME)"; flush(); $record="host=".$verifyrec.".".$domain."&kname=google.com&action=addcnamerecord"; postrecord($domain,$username,$password,$record); echo "

"; flush(); echo "

Opretter CNAME records "; flush(); foreach ($cnamerecords as $myhost=>$googlehost) { echo " . "; flush(); $record="host=".$myhost.".".$domain."&kname=".$googlehost."&action=addcnamerecord"; postrecord($domain,$username,$password,$record); } echo "

"; flush(); echo "

Opretter MX records "; flush(); foreach ($mxrecords as $exchanger=>$prio) { echo " . "; flush(); $record="host=".$domain."&exchanger=".$exchanger."&preference=".$prio."&action=addmxrecord"; postrecord($domain,$username,$password,$record); } echo "

"; flush(); echo "

Opretter GoogleTalk/Jabber records "; flush(); foreach ($xmpprecords as $xmppserver=>$prio) { $record="host=_xmpp-server._tcp.".$domain."&exchanger=".$xmppserver."&preference=".$prio."&weight=0&port=5269&action=addsrvrecord"; postrecord($domain,$username,$password,$record);echo " . "; flush(); $record="host=_jabber._tcp.".$domain."&exchanger=".$xmppserver."&preference=".$prio."&weight=0&port=5269&action=addsrvrecord"; postrecord($domain,$username,$password,$record);echo " . "; flush(); } echo "

"; flush(); echo "

Opretter SPF record "; flush(); $record="leftRR=".$domain."&rightRR=v=spf1 include:aspmx.googlemail.com -all&action=addtxtrecord"; postrecord($domain,$username,$password,$record); echo "

"; echo "


"; echo "

Vent nu et par minutter på at dine nyoprettede DNS records bliver synlige ude i den store verden, og fortsæt herefter "; echo "oprettelsesproceduren hos Google.

"; echo "

Du kan eventuelt checke om din verifyrecord er oprettet her.

"; } else { echo "

FEJL: Forkert brugernavn, kodeord eller domænenavn

"; } ?>

Dette er et værktøj der gør det lidt lettere at Google Apps enable et domæne som er DNS hosted hos GratisDNS.

Hjælp/forklaring her

Udfyld felterne