[LUGOS] Hostanje neke domene z dynamic ipjem

lugos at s-je.sik.si lugos at s-je.sik.si
Fri Dec 6 18:14:00 CET 2002


On 06.12.02 at 17:18:21 +0100, Kostko wrote:
  Torej, imam postavljen Bind DNS server, ki lepo slu~i svojemu namenu. 
  Sedaj pa bi rad hostal DNS zapise za domeno nekemu prijatelju (ki ima 
  dinamic(en IP naslov) in me zanima kako bi izvedel update DNS zapisov na 
  stre~niku ob spremembi IP naslova. Program, ki bo tekel na 
  stre~niku/klijentu lahko napiaem sam, zanima me le, kako posodobiti 
  zapis v Bind stre~niku.

Js sm zadevo realiziral z TSIGom.
dnssec-keygen -a hmac-md5 -b 512 -n host hostname.domena.com.
pa se ti kreira .key pa .private
le-to posljes prijatelju.
ter spremenis zono v named .conf tako da dodas 
tole v named.conf
---
key "hostname.domena.com." {
        algorithm hmac-md5;
        secret "aaaaaaaaaaaaaaaaabbbbbbbbbbbbccccccccccccc=";
};

zone "domena.com" in {
	...
	grant "hostname.domena.com."  self    hostname.domena.com.  A;
};
---

tole pa poleg kljuca posljes prijatelju:
---dyndns.sh---
#!/bin/sh
nsupdate -k Khostname.domena.com.+123+123456.private << EOF
server <ip serverja>
update delete hostname.domena.com.
update add hostname.domena.com. 60 A `ifconfig ppp0 | grep inet | cut -d : -f 2 | cut -d " " -f 1`
send
EOF
---dyndns.sh---

ampak.. pazi.. ce bos hotu rocno spreminjat zono z editorjem delaj tak:
rndc stop
zbrisi .jnl datoteko (domena.com.jnl)
editiras zono
zazenes bind.

lp, rok.



More information about the lugos-list mailing list