Monday, May 15, 2006

dynamic dns

In addition to the usual work of making playlists, recording from MD etc, today C from WS rang up - configuring the playout server to use an ADSL line with dynamic IP.

Using a free domain from, wrote a one line script to do the dns updates:

wget "$USERNAME&p=$PASSWORD&cmd=update&set=1&offline=0"

Using http didn't work - it was being set to the ISP's proxy IP. Thankfully https worked. Put it in the cron to run hourly.

1 comment:

  1. Soon found that hourly updates were overkill. The ip was changing only once in a week or so. And at similar times - 2 pm Joberg or something like that. So, updates only at times important for me.