Jason 'XenoPhage' Frisvold wrote:
Hi all,

Just a quick question... Is there any way with VegaDNS and djbdns to put in a huge number of entries at once? We just received out first ARIN block and we're looking to IP about 4 /24's worth of IP's as dialups. The thought of entering over 1000 entries by hand is not a pretty one... I believe I heard something about bind being able to use a shorthand method for this and I'm wondering if djb has something similar..

Thanks!

Hi Jason,

if you need it just once and don't care about the beauty of the script, do something like this:
(btw i don't really understand what you want to do, my script creates new domains, if you need reverse lookups, you will have to change some arguments, but they should be easy to identify)
ok, to create 100 new domains with default settings:
go to your vegadns and add default values fitting to you environment. Note the value for VDNS_Sessid in the address bar.
this script is for linux, but it would be easy to port it to windows ;)
______________
#!/bin/bash
for ((a=0; a<=100; a++))
do
echo wget -q \ 'http://vegadnsurl/index.php?state=logged_in&mode=domains&VDNS_Sessid=XXXX&domain_mode=add_now&domain=domain'$a
done
______________
you just have to change XXXX to the value of VDNS_Sessid from your browser, and domain'$a in the end creates the domains: domain1, domain2, domain3, so you will probably want to change that too.
This is really ugly, but you get the idea.


hth
Georg

Reply via email to