Monday, July 5, 2010

How to visually embed Gallery in your own website by editing theme templates

http://codex.gallery2.org/Gallery2:How_to_visually_embed_Gallery_in_your_own_website_by_editing_theme_templates



Gallery2:How to visually embed Gallery in your own website by editing theme templates

Contents

 [hide]

Introduction

Visually embedding Gallery by editing theme templates is very easy. Each Gallery album has an associated theme, and the theme is responsible for drawing the entire page. So to make Gallery fit into your website all you really have to do is modify the theme template and CSS to use a color scheme and HTML snippets that blend in with the rest of your site. The only complicating factor is that if you use multiple themes with your Gallery, you'll have to tweak each of them individually. For the purposes of this article we'll stick with the Matrix theme as an example.

How it works

Almost every page in the Matrix theme is rendered through a single template. If you look in themes/matrix/templates/theme.tpl you'll see that it looks like this:

 <html>   <head>     <!-- HTML and Smarty tags -->   </head>   <body>     <!-- more HTML and Smarty tags -->     {if $theme.pageType == 'album'}       {g->theme include="album.tpl"}     {elseif $theme.pageType == 'photo'}       {g->theme include="photo.tpl"}     {elseif $theme.pageType == 'admin'}       {g->theme include="admin.tpl"}     {elseif $theme.pageType == 'module'}       {g->theme include="module.tpl"}     {elseif $theme.pageType == 'progressbar'}       {g->theme include="progressbar.tpl"}     {/if}       <!-- more HTML and Smarty -->   </body> </html> 

Do not use this sample code. It is just an illustrative example and incomplete. Copy the existing theme.tpl instead and start customizing from there.

If you're familiar with HTML then this should look like an entire web page to you. There are lots of Smarty tags in there that do various things but for the most part you can ignore them (at least at first). The big block in the middle of the example is the code that figures out what kind of page that Gallery is displaying and loads up the right template for that page.

Your own website probably has a header, and a footer, and maybe some other elements (like a sidebar) that you always display. So to make Gallery blend in, all you have to do is copy the HTML snippets from the rest of your site into the theme.tpl and reload the page.

There are two ways to modify the theme.

Simple approach

The simplest approach is to make a local modification to the template. In the templates directory you create a new directory called "local" and copy theme.tpl into that directory. Then make any changes to the new copy of theme.tpl and Gallery will use that instead of the original. When you update Gallery if the original theme.tpl hasn't changed, then your changes are still valid. Otherwise, your changes will still be around and you'll have to integrate them.

 $ cd themes/matrix/templates $ mkdir local $ cp theme.tpl local $ edit local/theme.tpl 

A typical customized themes/matrix/templates/local/theme.tpl template looks almost the same as the original. You just add your own CSS link in the <head> section of the page and add your header right after the <body> tag and your footer right before the closing </body> tag. Of course this is just an example, you can do everything you want with this template. See: Editing Templates

 <html>   <head>     <!-- HTML and Smarty tags -->     <!-- YOUR OWN CSS AND JAVASCRIPT -->   </head>   <body>     <!-- YOUR HTML / INCLUDE HEADER -->     <!-- more HTML and Smarty tags -->     {if $theme.pageType == 'album'}       {g->theme include="album.tpl"}     {elseif $theme.pageType == 'photo'}       {g->theme include="photo.tpl"}     {elseif $theme.pageType == 'admin'}       {g->theme include="admin.tpl"}     {elseif $theme.pageType == 'module'}       {g->theme include="module.tpl"}     {elseif $theme.pageType == 'progressbar'}       {g->theme include="progressbar.tpl"}     {/if}       <!-- more HTML and Smarty -->     <!-- YOUR HTML / INCLUDE FOOTER -->   </body> </html> 

If you need to insert JavaScript code, you will have to add {literal}your JavaScript code{/literal} tags around it. The reason is that in Gallery templates, we use the Smarty language and the curly braces { and } are reserved characters. And these characters are quite frequent in JavaScript code. Instead of using {literal}{/literal}, you can also use {ldelim} for the left { and {rdelim} for the right curly brace. See The Official Smarty FAQ

More Advanced Approach

The more advanced approach is to make your own theme by How to Copy an Existing Theme and then tweaking theme.tpl. This is a little bit harder (and will require you to modify a PHP file), but it's really not that bad and the result is that your theme will continue to work after most upgrades, although you won't get any new features we add to the theme you started from.

Saturday, July 3, 2010

小津安二郎 介绍

http://blog.sina.com.cn/s/blog_5accbb190100a9c0.html



导演:小津安二郎(1903.12.12-1963.12.12)他的生辰也是他的忌辰。墓碑上只有一个汉字---“无”。

 

他有一部《早春》,还有一部《晚春》。我很自然地选了这部《晚春》。大概《早春二月》早已在我心中生根的缘故,虽然很清楚地知道小津的早春自然是另一个风格。

 

晚春。很简单故事。27岁的纪子与父亲一直生活在镰仓,她怕父亲晚年孤独,不想考虑嫁人的事情。可父亲却很担忧,于是他终于同意等女儿出嫁后再续弦。纪子与父亲从京都旅行回来后就做了新娘,离开了家。其实父亲为了女儿的婚事,第一次说了违心的话。在那晚春的夜晚,他一人孤独地消磨时光。

 

小津的电影很注意情景的营造,他的屋舍构图里总有绿树或疏竹的存在,其实这也是寄物寓情,代表一种安逸的生活态度。所以,那些庭院的卧石,过风的松柏都有一定的寓意。他的电影不会大起大落,都以小事反映生命的思索,有着东方的宿命感,而其电影里的老年人都相当平和,有着一种荣辱不惊的人生豁达。

 

《晚春》一如既往从平静里展开剧情,家人聚会上繁琐的礼仪对日本人而言已是习惯。寻常小事和平静的对话也反映着时代的风貌。

 

影片叙述着相依为命的父女生活琐事,亲情的默契淡淡浮现。去东京交稿的段落,小津以列车行驶的动感和父女看书的静态交叉拍摄使得镜头不至于沉闷。小津的摄影机永远是以旁观者的姿态存在的,基本上是生活状态的平静描摹。纪子路遇叔叔,他们关于再婚的对话显示的是小津自己的道德观。综观小津内敛、克制的一生,这种向往纯粹的心愿是可以理解的。

 

是一部充满禅意的电影。可是正如一位导演所说---浮躁的人别看小津。我已经够浮躁。也许等到阅历见长,心如止水、神定气闲时再看小津,那时定有另一番味道。所以此时,晚春便是我唯一的小津。

  

2005.6.13

 

 

附记:转

 

小津及其同时代的沟口健二、黑泽明三位导演的作品,几乎代表着日本电影的最高艺术成就。如果说,黑泽明主要以武士及历史题材的电影著称;沟口健二侧重于表现含辛茹苦的小人物,尤其社会下层妇女的不幸遭遇;那么,小津安二郎的电影则专注于反映普通人家的日常生活,致力刻划微观细腻的情感世界,风格清简静穆。

 

他热爱生命,对镜头下的人物既是怜爱也灌注无限深情。他拍大学的生活,拍父亲的故事,拍温暖的家庭。可事实是,他没上过大学,父亲在生时很少和他同住;他终生未娶,一辈子只和母亲一块生活。他从中学就开始接触电影,是天生的造影者。一生嗜酒。

 

小津的推崇者常常赞叹他简约的影像风格,譬如摄影机位距离地面仅三英尺,与坐在榻榻米上的演员持平,非常适合拍摄日式居室的生活场景。小津后期的电影,摄影机完全静止不动,镜头的处理更是朴拙到极致,摈弃了淡入淡出等剪辑语言,画面全部采用直接切换,犹如老僧入定,禅意盎然。

 

作品年表:

 

    1927年 《忏悔之刀》Sword of Penitence

  1932年 《我出生了,但……》I Was Born But。。。

  1933年 《消逝的幻想》Passing Fancy

  1942年 《从前有位父亲》There Was a Father

  1949年 《晚春》Late Spring

  1951年 《麦秋》Early Summer

  1953年 《东京物语》Tokyo Story

  1958年 《彼岸花》Equinox Flower

  1959年 《早安》Good Morning ,《浮草》Floating Weeds      

  1960年 《秋日和》Late Autumn

  1961年 《小早川家之秋》The End of Summer

  1962年 《秋刀鱼之味》An Autumn Afternoon

Friday, July 2, 2010

一些东西,有可取之处


男人看一看有好处

       1、老婆是大树,千万要抱住;情人是小鸟,千万别喂饱;老婆是个宝,她吵你别吵;情人是小草,谁拔跟谁跑;都说红颜好,不吵也不跑,就是不好找。

       2、有一种爱,明明是深爱,却说不出来; 有一种爱,明明想放弃,却无法释怀; 有一种爱,明知是煎熬,却又躲不开; 有一种爱,明知结果是伤痛,心却早已收不回来……

       3、缘份,到底何谓缘份?曾记得看过一篇文章,文章中说:今生的水,前世的茶,用今生的水泡一杯前世的茶,透明的瓷杯中沉淀的是前世的情,沸腾的是今生的爱,这就叫作缘份!

       4、渐渐的上网不上线渐渐的上线不想看~~渐渐的相对而无言渐渐的好友成再见~~从无所不谈到无话可谈~~-----这就是网聊★有一个人虽也牵肠挂肚却跟家庭无关~~有一种爱虽也刻骨铭心却和婚姻无缘

       5、自行车的后轮爱上了前轮,可是他知道自己永远都不可能和她在一起,于是他吻遍了前轮走过的每一寸土地,且默默地关注并陪伴着她......别错过陪伴你的人哪!!!  

       6、富有不代表尊贵.学历不代表素质.形象不代表内涵.贫穷不代表自卑.年龄不代表自信!

       7、心属于你的 我借来寄托 却变成我的心魔 你属于谁的 我刚好经过 却带来潮起潮落

       8、 打开电脑我们如此接近 关上电脑我们那么遥远

       9、花如蝴蝶蝶如花,花蝶本生梁祝家。 比翼双飞频入梦,情思缭乱到天涯。 能拥抱的时候,请别只是牵牵小手,能在一起的时候请别轻易分开

     10、花样年华指间过,。爱一个人是去了解去理解去疼爱去体贴去付出。在这个喧闹的尘世,渴求一份宁静,渴望缘是天意,份是人为,知音是贴切的默契,知己是完美的深交,缘分是久久长长的相聚,朋友是生生世世的牵挂。

     11、不要去恨你爱过的人,不要去问分手谁比较痛,在一起是缘分,可是爱也会变冷,爱的背后不是恨,而是遗忘和宽容。不可以做朋友,因为彼此伤害过,不可以做仇人,因为彼此深爱过......

     12、上网可以 不许网恋 视频可以 不许见面 网络虚拟 注意坏蛋*

     13、有一种酒一点点就能醉人,有一种爱一点点就能温馨,有一种人一相识就难以忘怀,有一种心就算不经常见面也会彼此牵念,直到永远!

     14、相处时需要包容,相爱时需要真心,快乐时需要分享,争吵时需要沟通,孤单时需要陪伴,难过时需要安慰,生气时需要冷静。

      15、人生就像迷宫,我们用上半生找寻入口,用下半生找寻出口。

       16、关于爱情:­不要认为后面还有更好的,因为现在拥有的就是最好的。­不要认为还年轻可以晚些结婚,爱情是不等年龄的。­不要因为距离太远而放弃,爱情可以和你一起坐火车的。­不要因为对方不富裕而放弃,只要不是无能的人,勤劳可以让你们富裕的。­不要因为父母反对而放弃,你会发现因为这个原因而反放弃的爱情,将是你一生的悔恨。­其实对于爱情,越单纯越幸福。一生只谈一次恋爱是最好的,经历的太多了,会麻木;分离多了,会习惯;换恋人多了,会比较;到最后,你不会再相信爱情;­你会自暴自弃;你会行尸走肉;你会与你不爱的人结婚,就这样过一辈子。­

­    17、关于爱情:­也许爱情是一部忧伤的童话,惟其遥远与真实。­放弃一个爱你的人并不痛苦,放弃一个你爱的人那才痛苦。­

若是有缘时间空间都不是距离,若是无缘总是相聚也无法合意;凡事不必太在意,更不需去强求,就让一切随缘。­逃避不一定躲得过;­面对不一定最难过;­孤独不一定不快乐;­得到不一定长久;­失去不一定不再拥有。­爱是一种享受,即使痛苦也会觉得幸福;­爱是一种体会,即使心碎也会觉得甜蜜;­爱是一种经历,即使破碎也会觉得美丽;­不要因为寂寞而错爱,­不要因为错爱而寂寞一生。­

­   18、关于伴侣:­伴侣不是结婚时发誓非你不娶或非你不嫁的那个人,而是发现你身上有许多缺点仍然选择你的那个人;­伴侣不是天黑了和你一起手挽手走进饭店的那个人,而是守在门口巴望你回来共进晚餐的那个人;­伴侣不是和你大谈爱情,把“我爱你”挂在嘴边的那个人,而是和你平淡的唠叨柴米油盐、锅碗瓢盆的那个人。­在幸福的婚姻中,伴侣已不是一个具体的人,而是你和ta在几十年的岁月中沉淀下来的:一份默契、一份温情、一份平淡、一份理解、一份宽容。­爱ta就要让ra开心,这就是伴侣........­

­    19、关于承诺:­在古希腊传说中,情侣都将戒指套在对方的中指上,因为他们相信那儿有一根血管直通心脏。所以戒指的意思就是用心承诺!­但是人世间有多少爱能生死白头,又有多少的情可以天长地久?­所以你选择共度一生得未必是你最爱的,你最爱的未必能和你共度一生。­多少的有情人走不进彼此的今生,只能苦苦的相约于来世;而多少的男男女女走过爱情走进婚姻却不会再珍惜彼此的付出。­所以记得珍惜你爱的人,把每一个平淡的今天当成是彼此相依的最后一刻,好好握紧爱人的手,即使ta容颜已老,即使ta满面沧桑,那也是你记忆中永恒的温馨。­别忘了守住对ta的承诺,别忘了牵住ta的手,一生一世一辈子.....­

­    20、关于人生:­人生如梦,岁月无情。蓦然回首,才发现人活着是一种心情。­穷也好,富也好,得也好,失也好。一切都是过眼云烟。想想,不管昨天、今天、明天,能豁然开朗就是美好的一天。不管亲情、友情、爱情,能永远珍惜就是好心情。­

记得有一个经典短信这样写着:­曾经拥有的不要忘记;­已经得到的更加珍惜;­属于自己的不要放弃;­已经失去的留作回忆;­想要得到的一定要努力;­累了把心靠岸;­选择了就不要后悔;­苦了才懂得满足;­痛了才享受生活;­伤了才明白坚强;­总有起风的清晨;­总有绚烂的黄昏;­总有流星的夜晚。­人生就像一张有去无回的单程车票,没有彩排,每一场都是现场直播。­把握好每次演出便是对人生最好的珍惜。­把握现在,畅享人生!­

­     20、关于友情:­有一天,友情和爱情碰见。­爱情问友情:世上有我了,为什么还要有你的存在?­友情笑着说:爱情会让人们流泪,而友情的存在就是帮人们擦干眼泪!­朋友就是:偶尔会为你担心、向你关心、替你�心、想你欢心、逗你开心、请你放心。­朋友之间,懂得关怀才是难得.....­伤心时不妨和我说;­痛苦时别忘了跟我讲;­有病时别忘了通知我;­困难时记得要请教我;­

失望时要想起还有我;开心时更不要忘记我。­朋友的定义,就在于此.....我们是朋友,这就够了.......­

­    21、关于微笑:­被人误解的时候能微微的一笑,这是一种素养;­受委屈的时候能坦然的一笑,这是一种大度;­吃亏的时候能开心的一笑,这是一种豁达;­处窘境的时候能自嘲的一笑,这是一种智慧;­无奈的时候能达观的一笑,这是一种境界;­危难的时候能泰然一笑,这是一种大气;­被轻蔑的时候能平静的一笑,这是一种自信;­失恋的时候能轻轻的一笑,这是一种洒脱。­不管是有什么事情,为了什么原因.....我们每天都要开心一笑...........­

      22、关于生活:­日出东海落西山,愁也一天,喜也一天;­

遇事不钻牛角尖,人也舒坦,心也舒坦;­每天领取谋生钱,多也喜欢,少也喜欢;­少荤多素日三餐,粗也香甜,细也香甜;­新旧衣服不挑捡,好也御寒,赖也御寒;­常与知己聊聊天,古也谈谈,今也谈谈;­全家老少互慰勉,贫也相安,富也相安。­

­     22、关于幸福:­相传幸福是个美丽的玻璃球,跌碎散落在世间的每个角落。­有的人捡到多些,有的人捡到少些。却没有人能拥有全部。­爱你所爱选你所选,珍惜现在所拥有的一切。­人活着就是一种心情,把握今天,设置明天,储存永远。­只要用心感受,幸福就会永远存在。­人总是对自己拥有的东西不珍惜,直到不再拥有时才会加倍怀念,而在得知自己快失去自己所拥有的东西而又无能为力时,就寻死觅活地不肯放手,歇斯底里往往发生在这个时候,而对于生命的执著确实是到死才放手!­

与有素质的人聊天,是一种完美的幸福



与有素质的人聊天,是一种完美的幸福

聊天是在寻找一种感觉,一种意境;一种心态;一种幸福。生活在茫然不知所错的世界里,我们的心情有时是失落的;有时是低落的;有时的寂寞孤独的;有时是失意无奈的。
       情绪随着心态而变化,心态随着情绪而起伏。当我们的心情处于低落沉默的时候,总想找一个心灵对话者来倾诉心里话。当心情舒畅兴奋之时,也想找一个好朋友畅谈心中的快乐。无论高兴或悲哀,寻找感觉是我们的灵魂在升华,寻找幸福是我们的人生在美妙。人生其实就是一种感觉伴随你左右。没有了感觉就什么也没有了、

       在现实生活中找感觉,网络世界也是找感觉,谈天说地是一种感觉,心灵对话灵魂相望也是一种感觉。现实生活中有我们厌恶的说不一块的同性和异性,网络中也是如此。心灵相通是一种意境,心心相印是一种牵挂,不只是美妙的甜言蜜语所能达到的,是一种无形的内力在缠绕,是一种相融的特殊的气味,意味,韵味在相互理解中的参透融合。
       感觉你在网上所有接触过的,就会发出一种人生的感叹,知心者真是难求啊,我们需要的不一定是红颜朋友,最需要的是心灵深处相互帮助共同分享的好朋友。能窃窃私语心灵对白的,能说真心话的,感觉幸福快乐的朋友,无论是同性还是异性,在一起感觉幸福美妙是最好的了。这种人多在有素质,有道德修养的人身上发生。

        聊天是在寻找一种感觉,一种意境;一种心态;或是一种爱;人世间就是这样说不清道不明的稀里糊涂的。能聊以感觉良好就可以了。有素质有道德修养的人一定能有一种美妙无即的思想,有一种启迪灵魂的感觉;有一种神采奕奕的感觉。它是一种意境,也是人生的无限延伸与享受,能与这样人经常聊一聊更是一种完美一种幸福。

Thursday, July 1, 2010

給堅強的Gi Gi





(2007-04-09 18:06)

這是我從其中一則留言裡看到的,very inspiring!!! 很想跟大家分享一下。

355.Silvia said,
April 9, 2007 @ · 編輯

給堅強的Gi Gi,

Somewhere else
by Jon Walker

"For I have learned to be content, whatever the circumstances." (Philippians 4:11 NIV)

Community — Have you ever been somewhere you didn't want to be? Maybe it was a job, a town, or a marriage. Maybe it was a stage in life, like singlehood, or a state in life, like a disability. It's very possible that as you read this, you're wishing you were somewhere else – anywhere else – living a different life, but you know it's not likely that anything is going to change any time soon.

God has a word for you. It's the same word he gave a group of people when they were stuck in another country, exiled from their homeland. They'd folded their arms and said, "We're going to wait this thing out, and when we get home, we'll start living our lives."

Through the prophet

Wednesday, June 16, 2010

HP Turns Fifteen



PHP Turns Fifteen

by Craig Buckler

PHP was released by Rasmus Lerdorf on June 8, 1995. Hisoriginal Usenet post is still available online if you want to examine a computing artefact from the dawn of the Web. Many of us owe our careers to the language, so here's a brief history of PHP …

PHP originally stood for "Personal Home Page" and Rasmus started the project in 1994. PHP was written in C and was intended to replace several Perl scripts he was using on his home page. Few people will be ancient enough to remember CGI programming in Perl, but it was no fun. You could not embed code within HTML and development was slow and clunky.

Rasmus added his own Form Interpreter and other C libraries including database connectivity engines. PHP 2.0 was born on this day 15 years ago, but had a modest following until the launch of version 3.0 in June, 1998. The parser was completely rewritten by Andi Gutmans and Zeev Suraski; they also changed the name to the recursive "PHP: Hypertext Preprocessor."

Critics argue that PHP 3.0 was insecure, had a messy syntax, and didn't offer standard coding conventions such as object oriented programming; some will quote the same arguments today. However, while PHP lacked elegance, it made web development significantly easier. Programming novices could add snippets of code to their HTML pages, and experts could develop full web applications using an open source technology, which became widely installed by web hosts.

PHP 4.0 was released on May 22, 2000. It provided rudimentary object orientation and addressed several security issues such as disabling register_globals. Scripts broke, but it was relatively easy to adapt applications to the new platform. PHP 4.0 was an instant success and you'll still find it's offered by web hosts today. Popular systems such as WordPress and Drupal still run on PHP 4.0, even though platform development has ceased.

Finally, we come to PHP 5.0, which was released on July 13, 2004. The language featured more robust object oriented programming plus security and performance enhancements. The uptake has been more sedate owing to the success of PHP 4.0 and the introduction of competing frameworks, such asASP.NET, Ruby, and Python.

PHP has its inconsistencies and syntactical messiness, but it's rare you'll encounter a language that can be installed on almost any OS, is provided by the majority of web hosts, and offers a similar level of productivity and community assistance. Whatever your opinion of the language, PHP has provided a solid foundation for server-side programming and web application development for the past 15 years. Long may it continue.

Do you want to learn PHP?

If you're new to PHP or need a refresher, why not sign up for SitePoint's PHP Live with Kevin Yank? It's a three-week interactive course that will help you learn PHP from the experts, as well as your fellow students.

Leave your birthday wishes on the blog entry:

Louis Simoneau PHP Turns Fifteen
by Craig Buckler

Tuesday, June 15, 2010

Basic Guide to DNS at google

http://www.google.com/support/a/bin/answer.py?hl=en&answer=48090



Basic Guide to DNS

Think you can write a better article? Click this link to visit Knol and try your hand at editing this entry. We're using Knol in the Help Center so you can update articles and share community-edited information with others.

This is a list of common terms that you'll encounter when managing a domain. Click a term below to jump to the description of the term, and its practical use with Google Apps.

Since registrars, hosts, and record configurations vary, this is a basic guide to DNS.

DNS 
Domain Name 
Domain Registrar 
Top Level Domain 
Second-level Domain 
Third-level Domain 
Domain Host 
A Record 
NS Record 
MX Record 
CNAME Record 
IP Address 
Custom URLs 
Domain Alias 
WHOIS directory

 

DNS

DNS stands for Domain Name System. This system is in place to organize and identify domains. Essentially, DNS provides a name for a domain's one or more IP addresses. For instance, the domain name wolf.example.com might translate to 198.102.434.8. This makes it much easier to remember URLs and email addresses.

DNS is also used to find out where to deliver email for a particular address. This is done with MX Records.

You need to have a registered domain name to use Google Apps for Your Domain.

↑ back to top

 

Domain Name

Domain names are easy-to-remember names (URLs and email addresses) that are associated with one or more IP addresses. Since a web page is defined by its URL, the page can move to a different IP address without affecting visitors.

Example: www.singlespeed.com

The whole domain name can not exceed a total length of 255 characters, but some registries have shorter limits.

↑ back to top

 

Domain Registrar

Domain registrars sell Internet domain names (ex. blueshirt.com or organicfood.org ). Most of these companies offer a hosting service in addition to registration.

If your domain registrar is separate from your domain host, you'll need to add the host's name servers to your registrar's account. For example, if you purchase a domain name from namecheap.com (which offers domain registration) and host your domain with DynDNS (which offers domain hosting), you'll add the name servers of DynDNS (ns1.mydyndns.org and ns2.mydyndns.org) to your account with namecheap.com.

Google Apps for Your Domain offers domain registration with a select group of domain registration partners. This allows you to purchase a domain name and sign up for Google Apps at the same time. If you purchase a domain name while signing up, Google will auto-configure services for your domain so that you won't need to manually configure MX and CNAME records.

If you purchased your domain name before signing up for Google Apps, visit our list of domain hosts (some of which are also domain registrars) that have instructions for modifying MX records in our Help Center.

↑ back to top

 

Top Level Domain

Top-level domains are the last part of a domain name - the letters after the last period. Some examples are: biz com org edu us ca fr de travel local es pl

↑ back to top

 

Second-level Domain

Second-level domains are directly below top-level domains. Some current examples are:

    Second-level Domain Domain Name
    Googlegoogle.com
    Wikipediawikipedia.org
    Ontariotravelontariotravel.com
    Craigslistcraigslist.com
    louvrelouvre.fr

↑ back to top

 

Third-level Domain

Third-level domains are also known as subdomains and CNAMEs. In a URL, the subdomain is written before the domain name. Here's some examples:

    SubdomainURL
    affiliateshttp://affiliates.art.com
    wwwhttp://www.rockfound.org
    menhttp://men.style.com
    mailhttp://mail.google.com
    bushttp://www.bus.umich.edu

To set up web publishing with Google Apps for Your Domain, you'll need to pick a subdomain as your web publishing address.

↑ back to top

 

Domain Host

Domain hosts run DNS servers for your domain. This includes A records, MX records, and CNAME records. Most domain hosts offer domain name registration as well.

Since Google Apps for Your Domain is not a domain host, you'll need to modify your DNS records with your domain host to set up email and web publishing. Click here if you don't know which company is hosting your domain.

↑ back to top

 

A Record

A records (also known as host records) are the central records of DNS. These records link a domain, or subdomain, to an IP address.

A records and IP addresses do not necessarily match on a one-to-one basis. Many A records correspond to a single IP address, where one machine can serve many web sites. Alternatively, a single A record may correspond to many IP addresses. This can facilitate fault tolerance and load distribution, and allows a site to move its physical location.

Google Apps for Your Domain does not support IP addresses alone. Instead of using A records, you can set up email and web publishing by modifying your MX and CNAME records with your domain host.

↑ back to top

 

NS Record

Name server records determine which servers will communicate DNS information for a domain. Two NS records must be defined for each domain. Generally, you will have a primary and a secondary name server record - NS records are updated with your domain registrar and will take 24-72 hours to take effect.

If your domain registrar is separate from your domain host, your host will provide two name servers that you can use to update your NS records with your registrar.

If you're not sure who is hosting your domain, you can perform a free NS Lookup. Here's how:

  1. Visit Google.com.
  2. Search for NS lookup.
  3. Select a search result.
  4. Type your domain name into the tool.
  5. Select NS records or Any records for your query.
  6. Click Look it up.

Example result (showing that name-services.com is the domain host for mightydinosaur.com):

mightydinosaur.com nameserver = dns1.name-services.com.

↑ back to top

 

MX Record

Mail Exchange records direct email to servers for a domain, and are listed in order of priority. If mail can't be delivered using the first priority record, the second priority record is used, and so on.

To set up email with Google Apps for Your Domain, you need to configure the MX records with your domain host using Google's server information.

If you'd like to check the status of your MX records, you can perform a free MX lookup. Here's how:

By DNSstuff.com

MX Record Lookup

 

 

Enter domain name

Example result (showing that email for mightydinosaur.com is directed to Google):

mightydinosaur.com mail exchanger = 10 aspmx.l.google.com.

↑ back to top

 

CNAME Record

Canonical name records are aliases for A records. For each CNAME record, you can choose an alias and a host.

To set up web publishing with Google Apps, you can pick an address for your web pages. The third-level domain of the address is the alias andghs.google.com is the host.

If you'd like to check the status of your CNAME record for web publishing, you can perform a free CNAME lookup. Here's how:

  1. Visit Google.com.
  2. Search for NS lookup.
  3. Select a search result from the list.
  4. Type your web publishing address in to the field.
  5. Select CNAME record if it's not the default search query.
  6. Click Submit, or Lookup.
Example result (showing that the subdomain of start.mightydinosaur.com is pointing to ghs.google.com):

DNS Lookup (CNAME) for start.mightydinosaur.com. Items Returned: 1

  • ghs.google.com
  • ↑ back to top

     

    IP Address

    Internet Protocol addresses are unique numbers that allow devices to locate information on a network.

    Since a domain name may have one or more associated IP addresses, Google Apps for Your Domain doesn't support email and web publishing configuration using IP addresses alone.

    ↑ back to top

     

    Custom URLs

    Custom URLs, or short URLs, make using the Internet easier. A custom URL allows you and your users to access the login page for services at your domain with a simple, easy-to-remember address. With Google Apps for Your Domain, your custom URLs will follow this format:

    http://[customize this section].your_domain.com

    Instead of asking your users to visit http://www.google.com/calendar/a/your_domain.com to log in to their calendars, you can create a short, custom URL. Learn more

    Calendar Examples
    http://calendar.your_domain.com
    http://c.your_domain.com
    http://9-5.your_domain.com
    http://myagenda.your_domain.com
    http://where2go.your_domain.com

    ↑ back to top

     

    Domain Alias

    Domain name aliases are additional domain names associated with your primary domain. With Google Apps for Your Domain, you can add a domain alias that receives mail and delivers it to mailboxes at your primary domain.

    Some common uses:

     

    WHOIS directory

    The WHOIS directory is a public listing of domain names, and people or organizations associated with each domain name.

    As a privacy measure, some domain name owners prefer to have their personal information hidden from the WHOIS directory. This is similar to the way someone may want his/her personal telephone number unlisted in a local telephone book.

    The WHOIS directory is used to determine the owner of domain names and IP addresses. There are many free web-based directories available on the Internet. The information provided in the WHOIS directory includes a mailing address and a telephone number.

    ↑ back to top

    updated 7/27/2009

    Was this information helpful?