ข้ามไปที่เนื้อหาหลัก

ติดตั้ง Dynamic IP สำหรับอัฟเดต DNS บน ubuntu ทุกเวอร์ชั่น

การใช้งาน Dynamic IP หรือ Dynamic DNS สำหรับ OpenDNS เป็นก การให้บริการ Domain Name System ฟรี สำหรับการทำอะไรหลายอย่างโดยไม่ต้องมี domain Name System แต่มีปัญหาตรงที่ว่า เมื่อ มีการปรับเปลี่ยน ไอพีของผู้ให้บริการ จึงต้องมีการอัฟเดต เพื่อส่งไปยังDNS ให้ทราบเพื่อเปลี่ยนตัวชี้ตามหมายเลขใหม่ ซึ่งจะทำให้มีค่าไม่ตรงกัน คือใช้งานไม่ได้นั้นเอง เช่นเราใช้ DNS เพื่อทำเว็บไซต์ส่วนตัว
 ก็ไม่สามารถที่จะเข้าเว็บไซต์ได้ จึงมีวิธีการอัฟเดตหมายเลขไอพีให้ตรงกัน โดยใช้ แพ็กเก็ตที่ชื่อว่า ddclient มาติดตั้งและปรับค่านิดหน่อย ก็สามารถที่จะทำให้เครื่องไปบอกอัฟเดตไอพีให้ตรงกันได้ ก็สามารถเข้ามาใช้เว็บไซต์ส่วนตัวได้
ลองมาติดตั้งกัน
1.เข้าไปสมัคร DNS โดยมีหลายที่ที่ให้บริการ เช่น Opendns, dyndns, EasyDNS, ZoneEdit,DNSPark ก็จะได้ username และ password

2.ทำการ Setup router โดยใส่ hostname ,username password

3.ติดตั้ง ddclient โดยใช้คำสั่ง :

$ sudo apt-get update
 $ sudo apt-get install ddclient 

แล้วทำการ config ค่าต่างๆ ในไฟล์ชื่อ ddclient.conf ในพาส /etc/ddclient.conf โดยแก้ไขดังนี้

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
use=web, web=myip.dnsomatic.com
ssl=yes
server=updates.opendns.com
protocol=dyndns2
login=[USERID]
password=’[PASSWORD]‘
[OPENDNS_NETWORK_LABEL]

***เปลี่ยนค่าใน แท๊ป [ค่าต่างๆ] เช่น DNS ของเราที่สมัคร คือ

hostname : thailand.dyndns.org
username : thailanduser
password: thailandpass

ก็ทำการเปลี่ยนโดยแทนค่า แล้วทำการ รีสตาร์ service ด้วยคำสั่ง
 $ sudo service ddclient restart && sudo ddclient
แค่นี้เราก็สามารถใช้งาน DNS ได้อย่างสบายใจขึ้น แต่อาจจะมีปัญหาอื่นๆอีก

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

Anvil แฟลต์ฟอร์ม สำหรับ Python Full Stack มีครบ จบในเครื่องมือเดียว

Anvil แฟลต์ฟอร์ม สำหรับ Python Full Stack มีครบ จบในเครื่องมือเดียว Avil เป็นแฟลต์ฟอร์มสำหรับสร้างเว็บแอพลิเคชั่น ด้วยภาษา python สามารถใช้งานทั้ง HTML CSS JavaScript SQL ทั้งหมดนี้รวมในเครื่องมือที่ชื่อว่า Anvil Python ใช้สำหรับรันบนบราวเซอร์ เซอร์เวิรส์ และสร้าง UI ด้วยวิธีการ Drag-and-Drop เพียงลากวาง UK และยังสามารถเชื่อมต่อและใช้งาน Database  และยังสามารถ Integration กับแฟลต์ฟอร์มอื่นๆ ได้อีกด้วย โครงสร้างของ Anvil  การออกแบบง่ายๆ ด้วย drag-and-drop ใช้ python เป็น client-side และรันบน บราวเซอร์ Server-side รันบน Anvil Server สามารถใช้ Database ต่างๆ เพื่อเก็บข้อมูล สามารถรัน python บนเครื่องและตอบโต้กับแอปพลิเคขั่นไดด้

SaaS API-Base Definition, Benefits, Challenges, Problems and Goal for Innovation

What is an Application Programming Interface? API is a set of protocols, standards, and tools that allow two or more software applications to connect and share specific data. API  What is API-Base Saas? API-based SaaS is a software application hosted in the cloud. Users and other programs can access the software’s features, data, and functions via an API instead of a user interface. API refers to the software delivery model as a SaaS Application's functionalist and features are exposed and made to customers through APIs. This combination of the business model of technology on a cloud-base.   This is an integration Service on the cloud provider The Benefits of API-Base SaaS User Experience  Simplifies Development  Increases Accessibility Flexible and Scalable  The Challenges of API-Base SaaS Startup Performance  Integration  Security Pricing What’s The Difference Between SaaS And An API? RPC APIs.  WebSocket APIs. SOAP APIs. REST APIs. The Too...