<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just My Life &#187; google</title>
	<atom:link href="http://imrgill.com/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://imrgill.com</link>
	<description>I&#039;m mrGilL, I&#039;m Newbie Admin</description>
	<lastBuildDate>Mon, 19 Dec 2011 11:46:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>หาอะไรกันเนี่ย</title>
		<link>http://imrgill.com/2010/02/12/%e0%b8%a1%e0%b8%99%e0%b8%95%e0%b8%a3%e0%b8%b5-%e0%b8%9c%e0%b8%ad%e0%b8%a1%e0%b8%82%e0%b8%b3-%e0%b8%9a%e0%b8%99-google-co-th.html</link>
		<comments>http://imrgill.com/2010/02/12/%e0%b8%a1%e0%b8%99%e0%b8%95%e0%b8%a3%e0%b8%b5-%e0%b8%9c%e0%b8%ad%e0%b8%a1%e0%b8%82%e0%b8%b3-%e0%b8%9a%e0%b8%99-google-co-th.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 04:50:28 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[มนตรี ผอมขำ]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=553</guid>
		<description><![CDATA[หาอะไรกันเนี่ย]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">
<p style="text-align: left;">หาอะไรกันเนี่ย</p>
<p style="text-align: left;">
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4072/4349944263_7498c7d6f1_o.png" rel="lightbox[553]"><img class="aligncenter" style="border: 0pt none; margin: 0px;" src="http://farm5.static.flickr.com/4072/4349944263_7498c7d6f1_o.png" alt="" width="521" height="334" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2010/02/12/%e0%b8%a1%e0%b8%99%e0%b8%95%e0%b8%a3%e0%b8%b5-%e0%b8%9c%e0%b8%ad%e0%b8%a1%e0%b8%82%e0%b8%b3-%e0%b8%9a%e0%b8%99-google-co-th.html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google Buzz</title>
		<link>http://imrgill.com/2010/02/10/google-buzz.html</link>
		<comments>http://imrgill.com/2010/02/10/google-buzz.html#comments</comments>
		<pubDate>Tue, 09 Feb 2010 22:28:11 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[buzz]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=551</guid>
		<description><![CDATA[รีบตื่นมาเตรียมตัวออกไปทำงานต่างจังหวัด ก่อนไปก็เข้ามาเช็ค Gmail นิดหน่อย เจอหน้าต่างต้อนรับเป็น Gmail + Buzz เลยแปลกใจเล็กน้อย เลยเก็บภาพมาฝาก Google เพิ่มบริการใหม่ใน Gmail เพื่อให้ผู้ใช้งานสามารถแชร์ Media กันได้ รายละเอียดเพิ่มเติมดูจาก http://www.google.com/buzz เองจะดีกว่า หน้าตาเข้า Gmail buzz สามารถ follow ติดตาม status ของเพื่อนได้เหมือน twitter ด้วย]]></description>
			<content:encoded><![CDATA[<p>รีบตื่นมาเตรียมตัวออกไปทำงานต่างจังหวัด ก่อนไปก็เข้ามาเช็ค Gmail นิดหน่อย เจอหน้าต่างต้อนรับเป็น Gmail + Buzz เลยแปลกใจเล็กน้อย เลยเก็บภาพมาฝาก<br />
Google เพิ่มบริการใหม่ใน Gmail เพื่อให้ผู้ใช้งานสามารถแชร์ Media กันได้ รายละเอียดเพิ่มเติมดูจาก <a href="http://www.google.com/buzz">http://www.google.com/buzz</a> เองจะดีกว่า</p>
<p>หน้าตาเข้า Gmail buzz</p>
<div class="wp-caption aligncenter" style="width: 510px;">
<p style="text-align: center;"><a href="http://www.flickr.com/photos/imrgill/4344724094/"><img class="aligncenter" title="gmail_buzz1" src="http://farm3.static.flickr.com/2766/4344724094_f222c6863d.jpg" alt="gmail_buzz1" width="500" height="339" /></a></p>
</div>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 166px;"><a href="http://www.flickr.com/photos/imrgill/4344724098/"><img class="aligncenter" title="gmail_buzz2" src="http://farm5.static.flickr.com/4026/4344724098_12f1988bee_o.jpg" alt="gmail_buzz2" width="156" height="203" /></a></p>
</div>
<div class="wp-caption aligncenter" style="width: 510px;"><a href="http://www.flickr.com/photos/imrgill/4344724104/"><img class="aligncenter" title="gmail_buzz3" src="http://farm3.static.flickr.com/2763/4344724104_a907c968b9.jpg" alt="gmail_buzz3" width="500" height="313" /></a></p>
</div>
<div class="wp-caption aligncenter" style="width: 510px;"><a href="http://www.flickr.com/photos/imrgill/4344724126/"><img class="aligncenter" title="gmail_buzz4" src="http://farm5.static.flickr.com/4055/4344724126_52622d9e09.jpg" alt="gmail_buzz4" width="500" height="313" /></a></p>
</div>
<p>สามารถ follow ติดตาม status ของเพื่อนได้เหมือน twitter ด้วย</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2010/02/10/google-buzz.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Server Down รู้ได้ทันทีผ่าน SMS แถมฟรีด้วย</title>
		<link>http://imrgill.com/2009/12/11/monitor-server-with-sms-alert-shell-script.html</link>
		<comments>http://imrgill.com/2009/12/11/monitor-server-with-sms-alert-shell-script.html#comments</comments>
		<pubDate>Fri, 11 Dec 2009 01:19:20 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=438</guid>
		<description><![CDATA[ก่อนอื่นขอหาวยาวๆ ก่อนกล่าวสวัสดีท่านผู้อ่านทุกท่าน  เมื่อคืนบ้าพลังอะไรไม่รู้อยากเขียน script ส่ง sms เตือนเมื่อ server down ที่จริงชาวบ้านเค้าก็ทำขายกันเยอะแยะ แต่หลังจากที่ผมได้ใช้ Google Calendar แล้วให้มันส่ง sms เตือนแถมฟรีอีก ก็เลยคิดอยากใช้ประโยชน์จากมันเพิ่มเติมก็ค้นๆ  Google อีกเช่นเคยครับ ไปเจอบทความใน ThaiAdmin เรื่อง google calendar sms ที่ท่าน smartsoft เขียนไว้ก็เลยลองโหลด Libraries Google Calendar SMS มาเล่นดูบ้าง ซึ่งเมื่อลองดูแล้วก็ถือว่าใช้งานง่ายทีเดียวเลยเอามาโมต่อ โดยให้ Shell Script เป็นตัว Submit form แทน ความสามารถของ Script 1. ส่ง sms แจ้งเตือนเมื่อ ping ไม่เจอ server 2. เก็บ log ในตัว เพราะทุกครั้งที่มันส่ง [...]]]></description>
			<content:encoded><![CDATA[<p>ก่อนอื่นขอหาวยาวๆ ก่อนกล่าวสวัสดีท่านผู้อ่านทุกท่าน  เมื่อคืนบ้าพลังอะไรไม่รู้อยากเขียน script ส่ง sms เตือนเมื่อ server down ที่จริงชาวบ้านเค้าก็ทำขายกันเยอะแยะ แต่หลังจากที่ผมได้ใช้ Google Calendar แล้วให้มันส่ง sms เตือนแถมฟรีอีก ก็เลยคิดอยากใช้ประโยชน์จากมันเพิ่มเติมก็ค้นๆ  Google อีกเช่นเคยครับ ไปเจอบทความใน ThaiAdmin เรื่อง <a href="http://www.thaiadmin.org/board/index.php?topic=114285.0">google calendar sms</a> ที่ท่าน <a title="ดูรายละเอียดของ smartsoft" href="http://www.thaiadmin.org/board/index.php?action=profile;u=25720">smartsoft</a> เขียนไว้ก็เลยลองโหลด Libraries Google Calendar SMS มาเล่นดูบ้าง ซึ่งเมื่อลองดูแล้วก็ถือว่าใช้งานง่ายทีเดียวเลยเอามาโมต่อ โดยให้ Shell Script เป็นตัว Submit form แทน</p>
<p><strong>ความสามารถของ Script</strong></p>
<p>1. ส่ง sms แจ้งเตือนเมื่อ ping ไม่เจอ server<br />
2. เก็บ log ในตัว เพราะทุกครั้งที่มันส่ง sms มันจะไปเพิ่ม Event ใน Google Calendar ทำให้เราเข้าไปตรวจสอบย้อนหลังได้<br />
3. ไม่ต้องเสียเงินค่าส่ง SMS แม้แต่น้อย (พี่ Google เค้าใจดี)</p>
<p><strong>มาดูขั้นตอนการทำกัน</strong></p>
<p>ก่อนอื่นเราก็ต้องไป Verify เบอร์มือถือใน Google Calendar ก่อนครับ ขออนุญาตท่าน <a title="ดูรายละเอียดของ smartsoft" href="http://www.thaiadmin.org/board/index.php?action=profile;u=25720">smartsoft</a> ทำรูปใหม่นะครับ<br />
1. ขั้นแรก ล็อกอินเข้า Google Calendar <a href="http://www.google.com/calendar" target="_blank">http://www.google.com/calendar</a> ก็ใช้ User ของ Gmail นั้นแหละครับ<br />
ล็อกอินแล้วคลิกที่ Settings เพื่อไปปรับเมนูให้เป็นภาษาไทย (หากใครเป็นภาษาไทยอยู่แล้วข้ามไปขั้นตอนต่อไปได้เลย)</p>
<p><img class="aligncenter" src="http://farm3.static.flickr.com/2773/4175582724_515d2cfce5_o.png" alt="" width="519" height="148" /></p>
<p style="text-align: center;">คลิก Settings</p>
<p>2. เลือก Language ให้เป็น <strong>ภาษาไทย </strong>แล้วกด Save</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2774/4175582728_de23bb83d4_o.png" alt="" width="469" height="243" /></p>
<p style="text-align: center;">เลือก ภาษาไทย</p>
<p style="text-align: left;"><span id="more-438"></span>3. กลับมาหน้าปฏิทินคลิกที่ <strong>การตั้งค่า</strong></p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2785/4175582742_55962360a8_o.png" alt="" width="219" height="286" /></p>
<p style="text-align: left;">4. คลิกที่ <strong>ตั้งค่าอุปกรณ์เคลื่อนที่</strong></p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2516/4175582744_767056a6b0_o.png" alt="" width="317" height="177" /></p>
<p style="text-align: left;">
<p style="text-align: left;">5. กรอกเบอร์โทรศัพท์มือถือของคุณลงไป จากนั้นกดปุ่ม <strong>ส่งรหัสยืนยัน</strong></p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2745/4175582748_14b2eb8d46_o.png" alt="" width="527" height="223" /></p>
<p style="text-align: left;">6. รอสักครู่ Google จะส่ง SMS รหัสยืนยันมาให้ เมื่อได้รับรหัสยืนยันแล้วนำมากรอกในช่อง <strong>รหัสยืนยัน</strong> จากนั้นคลิก <strong>สิ้นสุดการตั้งค่า</strong></p>
<p style="text-align: center;"><strong><img class="aligncenter" src="http://farm3.static.flickr.com/2627/4175582752_3328f279a2_o.png" alt="" width="527" height="223" /></strong>กรอกรหัสยืนยันลงไป</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2699/4174864937_66e118528c_o.png" alt="" width="563" height="61" />สถานะจะเปลี่ยนเป็นสีเขียวหลังยืนยันหมายเลขโทรศัพท์สำเร็จแล้ว</p>
<p style="text-align: left;"><strong><br />
</strong></p>
<p style="text-align: left;">7. คลิกที่แท็บ <strong>ปฎิทิน</strong> แล้วคลิกที่ <strong>การแจ้ง</strong></p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2509/4175583670_089b0611af_o.png" alt="" width="490" height="241" /></p>
<p style="text-align: left;">8. เลือก <strong>การแจ้งเตือนกิจกรรม</strong> ให้เป็น SMS  แล้วกด <strong>บันทึก </strong>(** สำคัญมาก คุณต้องเลือกให้เป็น SMS เป็นอันดับแรก)<strong><br />
</strong></p>
<p style="text-align: center;"><a href="http://farm3.static.flickr.com/2802/4175583674_3a5c7533c3_o.png" rel="lightbox[438]"><img class="aligncenter" src="http://farm3.static.flickr.com/2802/4175583674_3a5c7533c3_o.png" alt="" width="470" height="150" /></a></p>
<p>ตั้งเวลาตามใจชอบเลยครับ(ตรงนี้ไม่เกี่ยวกับ SMS Alert ใน Script ครับ)</p>
<p style="text-align: left;">เสร็จสิ้นสำหรับส่วนของ Google Calendar ครับต่อไปมาถึงตัว Shell Script กันบ้าง</p>
<p style="text-align: left;">ผมได้เอา Script ของ <span>Vivek Gite แห่ง </span><a href="http://cyberciti.biz" target="_blank">cyberciti.biz</a> มาแก้ไขนิดหน่อยครับ ต้นฉบับอยู่ที่ <a href="http://bash.cyberciti.biz/monitoring/monitor-windows-linux-server-with-ping-script/" target="_blank">http://bash.cyberciti.biz/monitoring/monitor-windows-linux-server-with-ping-script/</a></p>
<p>ผมตั้งชื่อ Shell Script ตัวนี้ว่า <a href="http://imrgill.com//wp-content/uploads/2009/observman.tar.bz2">observman.sh</a> &lt;&lt;กดดาวน์โหลด</p>
<pre>
<div class="codesnip-container" >#!/bin/bash
# Simple SHELL script for Linux and UNIX system monitoring with
# ping command
# -------------------------------------------------------------------------
# Copyright (c) 2006 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# Modify by mrGilL
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# Setup SMS User below
# See URL for more info:
# http://www.cyberciti.biz/tips/simple-linux-and-unix-system-monitoring-with-ping-command-and-scripts.html
# http://imrgill.com/2009/12/11/monitor-server-with-sms-alert-shell-script/
# -------------------------------------------------------------------------

# add ip / hostname separated by blank space
HOSTS="192.168.1.2 eng.ru.ac.th imrgill.com www.pca.co.th"

# no ping request
COUNT=5

# Set SMS Username (Google Calendar)
GCUSER="user@gmail.com"
GCPASSWD="gmail-passwd" 

for myHost in $HOSTS
do
  count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
  if [ $count -eq 0 ]; then
    # 100% failed
    wget --force-html --recursive --no-check-certificate -nd --delete-after "https://imrgill.com/google_sms/gsms.php?username=$GCUSER&amp;password=$GCPASSWD&amp;title=Server $myHost Down"
  fi
done</div>
</pre>
<p>ใส่ IP หรือชื่อ Host ของ Server ที่ต้องการ Monitor ลงไป หากมีหลายเครื่องให้คั่นด้วยเว้นวรรค</p>
<p>ต่อมาแก้ไข GCUSER และ GCPASSWD เป็นของท่าน(Gmail ของท่าน)</p>
<p>อย่าลืมกำหนดสิทธิ์ให้มันรันได้ด้วยนะครับ</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:/root# chmod +x observman.sh</div>
</pre>
<p>สุดท้ายจับ Shell Script ของเราใส่ใน Crontab โดย</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# crontab -e</div>
</pre>
<p>ผมตั้งให้มันเช็คทุก 15 นาทีครับ</p>
<pre>
<div class="codesnip-container" ># m h  dom mon dow   command
0-59/15 * * * * /root/observman.sh &gt; /dev/null</div>
</pre>
<p>ลองทดสอบง่ายๆ ดูครับ ใช้ไอพีเครื่องในวงแลนคุณก็ได้ จากนั้นไป disable การ์ดแลนหรือจะถอดสายแลนของเครื่องที่คุณต้องการ Monitor ก็ได้ รอประมาณ 2 นาทีจะมี SMS ส่งจาก Google มาหาคุณ</p>
<p style="text-align: left;"><strong>ภาพตัวอย่างหากแก้ไขถูกต้องครับ</strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm5.static.flickr.com/4025/4210341646_7a76249947_o.png" alt="" width="486" height="300" /><br />
จะมี event add เข้าไปใน google calendar</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2554/4210341648_3b51cc4c89_o.jpg" alt="" width="640" height="480" /><br />
ภาพข้อความจาก google sms</p>
<p>*หมายเหตุ  : มีคนถามมาว่าทำไมต้องส่งข้อมูลผ่าน blog ผมด้วย ส่งเข้า Google เลยไม่ได้เหรอ คำตอบก็คือมันต้องมี API ติดต่อไปยัง Google Calendar ครับ ซึ่งผมได้ฝังไว้บน blog ของผมเอง และหากใครกังวลเรื่องความปลอดภัยผมเองก็มีไฟล์ API ให้โหลดเอาไว้ติดตั้งบน Server ตัวเองได้ครับซึ่งสามารถดาวน์โหลดได้จากที่นี่ <a href="http://imrgill.com/wp-content/uploads/2009/google_sms.tar.bz2">google_sms.tar.bz2</a> โหลดเสร็จแล้วก็เอาไปแตกไว้ใน wwwroot และอย่าลืมไปแก้ URL  ใน Shell Script ด้วยนะครับ</p>
<p>หวังว่าบทความนี้คงเป็นประโยชน์กับผู้อ่าน<br />
แหล่งข้อมูล : <a href="http://www.thaiadmin.org/board/index.php?topic=114285.0">http://www.thaiadmin.org/board/index.php?topic=114285.0</a><br />
<a href="http://bash.cyberciti.biz/monitoring/monitor-windows-linux-server-with-ping-script/">http://bash.cyberciti.biz/monitoring/monitor-windows-linux-server-with-ping-script/</a></p>
  
<div class="wp_license">
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/th/"><img src="http://i.creativecommons.org/l/by-nc-sa/3.0/th/88x31.png" alt="Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Thailand" class="alignleft" style="margin-top:4px;" />
</a>This work  is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/th/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Thailand</a>.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/12/11/monitor-server-with-sms-alert-shell-script.html/feed/</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
		<item>
		<title>Google Public DNS บน Ubuntu</title>
		<link>http://imrgill.com/2009/12/08/google-public-dns-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/12/08/google-public-dns-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 08 Dec 2009 07:19:39 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google public dns]]></category>
		<category><![CDATA[nameserver]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=415</guid>
		<description><![CDATA[ไม่นานมานี้ Google เปิดให้บริการใหม่นั้นคือ Google Public DNS ซึ่งเป็นบริการสอบถามชื่อและไอพีฟรีของ Google ซึ่งสิ่งที่คุณจะได้จากบริการนี้คือ 1. ความเร็วในการใช้งานบราวเซอร์ 2. ความปลอดภัยที่ดีกว่า 3. ได้ผลลัพธิ์ทันทีโดยไม่ต้อง Redirect มาดูกันว่าเราจะใช้ Google Public DNS บน Ubuntu ได้ยังไง สำหรับใครที่ใช้ Ubuntu Desktop หรือ Linux Server ที่ Fix IP ก็สามารถเข้าไปแก้ไขไฟล์ /etc/resolv.conf ได้โดยตรง ตัวอย่าง root@mrgill-laptop:~# nano /etc/resolv.conf จากนั้นแก้ไขข้อมูลในไฟล์ /etc/resolv.conf ให้เป็น nameserver 8.8.8.8 nameserver 8.8.4.4 และสำหรับใครที่ใช้ Ubuntu Desktop แล้วรับ DHCP มาทุกครั้งที่ renew ip เราจะได้ [...]]]></description>
			<content:encoded><![CDATA[<p>ไม่นานมานี้ Google เปิดให้บริการใหม่นั้นคือ Google Public DNS ซึ่งเป็นบริการสอบถามชื่อและไอพีฟรีของ Google ซึ่งสิ่งที่คุณจะได้จากบริการนี้คือ</p>
<p>1. ความเร็วในการใช้งานบราวเซอร์<br />
2. ความปลอดภัยที่ดีกว่า<br />
3. ได้ผลลัพธิ์ทันทีโดยไม่ต้อง Redirect</p>
<p>มาดูกันว่าเราจะใช้ Google Public DNS บน Ubuntu ได้ยังไง</p>
<p>สำหรับใครที่ใช้ Ubuntu Desktop หรือ Linux Server ที่ Fix IP ก็สามารถเข้าไปแก้ไขไฟล์ /etc/resolv.conf ได้โดยตรง</p>
<p><strong>ตัวอย่าง</strong></p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# nano /etc/resolv.conf</div>
</pre>
<p>จากนั้นแก้ไขข้อมูลในไฟล์ /etc/resolv.conf ให้เป็น</p>
<pre>
<div class="codesnip-container" >nameserver 8.8.8.8
nameserver 8.8.4.4</div>
</pre>
<p>และสำหรับใครที่ใช้ Ubuntu Desktop แล้วรับ DHCP มาทุกครั้งที่ renew ip เราจะได้ dns ที่ dhcp แจกมาให้ซึ่งวิธีแก้ไขนี้ทำได้โดย<br />
<span id="more-415"></span><br />
1. คลิกขวาที่ Applet Network Manager บริเวร Notification Area จากนั้นเลือก Edit Connections</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2536/4168637292_dd04bd71fc_o.jpg" alt="" width="421" height="177" />Edit Connections</p>
<p style="text-align: left;">2. จะปรากฎหน้าจอ Network Connections ขึ้นมา แล้วเลือก Connection ที่คุณใช้ ตัวอย่างของผมใช้ Wireless ที่มี SSID ที่ชื่อ mrgill_wifi จากนั้นคลิกที่ปุ่ม Edit</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2550/4168637294_ef0ba7574c_o.jpg" alt="" width="442" height="322" />Network Connections</p>
<p style="text-align: left;">3. จะเห็นหน้าจอ Editing</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2564/4168637304_e799e738e8_o.jpg" alt="" width="385" height="499" />Editing</p>
<p style="text-align: left;">ให้เปลี่ยน Method จาก Automatic (DHCP) เป็น Automatic (DHCP) address only</p>
<p style="text-align: left;">จากนั้นในช่อง DNS servers ให้กรอก 8.8.8.8, 8.8.4.4 ลงไป ดังรูป</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2547/4168637308_96aef2664b_o.jpg" alt="" width="385" height="500" />Editing (2)</p>
<p style="text-align: left;">จากนั้นคลิกปุ่ม Apply</p>
<p style="text-align: left;">4. สั่งให้ Ubuntu ใช้ DNS ที่เพิ่งเปลี่ยนไปโดยคลิกที่ Applet Network Manager จากนั้นเลือกเน็ตเวิร์คที่คุณใช้</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2682/4168637310_9b7be0f868_o.jpg" alt="" width="344" height="302" />เลือก Network ที่คุณใช้งาน</p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2648/4168637314_66061f8a93_o.jpg" alt="" width="346" height="174" /><img class="aligncenter" src="http://farm3.static.flickr.com/2554/4167876119_bf5ec40a5c_o.jpg" alt="" width="344" height="174" /></p>
<p style="text-align: left;">5. ดูผลที่ได้ว่า DNS เปลี่ยนเป็นที่เรากำหนดหรือยังโดยคลิกขวาที่ Applet Network Manager แล้วคลิก Connection Information</p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2564/4167949259_da69a2c0b2_o.jpg" alt="" width="341" height="171" /></p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2761/4168707880_caa87bdebc_o.jpg" alt="" width="368" height="433" />Connection Information</p>
<p style="text-align: left;">สังเกตตรง Primary DNS กับ Secondary DNS จะเป็น IP ของ Google Public DNS แล้ว</p>
<p style="text-align: left;">หรือใครจะใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4</div>
</pre>
<p>ก็จะได้ผลเหมือนกัน</p>
<p>6. สุดท้ายก็ทดลองเปิด Browser แล้วเข้าเว็บกันเลยครับผม</p>
<p>รายละเอียดเพิ่มเติม : <a href="http://code.google.com/speed/public-dns/" target="_blank">http://code.google.com/speed/public-dns/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/12/08/google-public-dns-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

