ลองมาติดตั้งกัน
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]
#
# /etc/ddclient.conf
use=web, web=myip.dnsomatic.com
ssl=yes
server=updates.opendns.com
protocol=dyndns2
login=[USERID]
password=’[PASSWORD]‘
[OPENDNS_NETWORK_LABEL]
hostname : thailand.dyndns.org
username : thailanduser
password: thailandpass
ก็ทำการเปลี่ยนโดยแทนค่า แล้วทำการ รีสตาร์ service ด้วยคำสั่ง
$ sudo service ddclient restart && sudo ddclient
แค่นี้เราก็สามารถใช้งาน DNS ได้อย่างสบายใจขึ้น แต่อาจจะมีปัญหาอื่นๆอีก
ความคิดเห็น
แสดงความคิดเห็น