만약 공유기가 DDNS를 지원하지 않는다면 직접 해당 리눅스 서버에 ddclient 프로그램을 설치하면 자동으로 dyndns.org와 같은 사이트(여러사이트 지원)에 접속하여 현재 아이피로 갱신해준다.

http://sourceforge.net/apps/trac/ddclient

다운받는곳
http://sourceforge.net/projects/ddclient/files/ddclient/



만약 apt-get 이 가능하다면
#apt-get install ddclient로 설치가능하고
안된다면 tar 파일을 받아 원하는 위치에 놓고 압축을푼다.
압축을 풀고나면 README 파일이 있으니 읽어보자 설치법과 문제해결법등이 있다.

REQUIREMENTS:

- one or more accounts from one of the dynamic DNS services

- Perl 5.004 or later
  (you need the IO::Socket::SSL perl library for ssl-support 만약 설정에서 ssl=no 한다면 필요없다.)

- Linux or probably any common Unix system

-------------------------------------------------------------------------------
INSTALLATION:

  cp ddclient /usr/sbin/
  mkdir /etc/ddclient
  mkdir /var/cache/ddclient
  cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
  vi /etc/ddclient/ddclient.conf
  -- and change hostnames, logins, and passwords appropriately

  ## 샘플설정파일을 옮기자..
  cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
  ## 부팅시 자동실행시키자
  ## check your distribution
  /sbin/chkconfig --add ddclient
  ## start the first time by hand
  /etc/rc.d/init.d/ddclient start

  ## If you are not using daemon-mode, configure cron and dhcp or ppp
  ## as described below.

Installation

Most distributions have a recent version of ddclient. Use it unless you really need the latest version. On debian-based systems you can run apt-get install ddclient and it will install ddclient Unless there is a good reason, you should't use the download link.

Configuration

If you installed ddclient by using the installer of your distribution, it probably already asked you some questions and prepared a useful config file.

There are a few configuration examples provided which you can copy to /etc/ddclient/ddclient.conf and modify. More info about the configuration can be found on the usage page. There's also a sample configuration delivered with ddclient.

A typical configuration like:

# /etc/ddclient/ddclient.conf
#
protocol=dyndns2
use=web
login=mylogin
password=mypassword
myhost.dyndns.org

You can run ddclient as "/usr/sbin/ddclient -daemon 300 -syslog" and put it in your startup scripts. There are samples of startup scripts provided with ddclient.

'시스템 > linux' 카테고리의 다른 글

[펌]ubuntu 12.04 jdk6~7 수동및 자동설치  (0) 2012.09.28
ubuntu 10.04 sun-java6-jdk 설치  (0) 2012.09.28
Webalizer 설치법  (0) 2011.09.19
WOL 리눅스에서 활성화 시키기  (0) 2011.09.18
vsftpd 설치 이용 가이드  (0) 2011.09.16

+ Recent posts