13 Ağustos 2011 Cumartesi

Opendns ip güncellemesi

opendns kullanırken adsl baglantısının kopmasıyla zaman zaman ıp guncellemesı yapmak gerekıyor.
bunun ıcın /etc/cron.d altına opendns ısımlı bır dosya acılır ve ıcıne ;

01 * * * * nobody curl -u USERNAME:PASSWORD -s https://updates.opendns.com/nic/update
10 * * * * nobody curl -u USERNAME:PASSWORD -s https://updates.opendns.com/nic/update
20 * * * * nobody curl -u USERNAME:PASSWORD -s https://updates.opendns.com/nic/update
30 * * * * nobody curl -u USERNAME:PASSWORD -s https://updates.opendns.com/nic/update
40 * * * * nobody curl -u USERNAME:PASSWORD -s https://updates.opendns.com/nic/update
50 * * * * nobody curl -u  -s https://updates.opendns.com/nic/update

yazılır .
username ve password yerıne opendns kullanıcı adı ve sıfresı yazılmalıdır.
boylece 10 dakıkada bır opendns ıp guncellemesı yapılmıs olur.
eger curl sıstemınızde yoksa
sudo apt-get install curl

yazarak kurulur.
ıp guncellemesı ;

curl -u USERNAME:PASSWORD -s https://updates.opendns.com/nic/update

komutuyla deneme yapılabılır...