|
| Re: View/Edit dns zones using reflect? [message #42164 is a reply to message #42151] |
Sun, 19 October 2008 04:48   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Yes. You can use commandline to completely add/modify DNS, just like any other object in lxadmin.
What exactly do you want to achieve? For instance, create a new a-record.
/script/add --parent-class=dns --parent-name=domain.com --class=dns_record_a -v-ttype=a --v-hostname=subdomain --v-param=192.168.1.1
/script/add --parent-class=dns --parent-name=domain.com --class=dns_record_a -v-ttype=cname --v-hostname=subdomain --v-param=cnamesub
/script/add --parent-class=dns --parent-name=domain.com --class=dns_record_a -v-ttype=ns --v-param=ns.lxlabs.net
thanks.
On Sun, Oct 19, 2008 at 02:53:29AM -0000, Alex wrote:
>
>
> Is it possible to use reflect to view and edit DNS zones? I can't seem to figure out how to do this. Is it possible to make it appear as I want?
>
|
|
|
|
| Re: View/Edit dns zones using reflect? [message #50697 is a reply to message #50684] |
Wed, 17 December 2008 09:55   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
/script/update --class=dns --name=domain.com --subaction=general --v-ttl=newttl
So loop over all domains:
for s in `/script/simplelist --resource=all_domain` ; do
/script/update --class=dns --name=$s --subaction=general --v-ttl=newttl
done
thanks.
On Wed, Dec 17, 2008 at 01:07:05PM -0000, Dragomir Denev wrote:
>
>
> I need to update the TTL for all DNS zones on a lxadmin server. The domains belong to different clients and that's why I cannot use the Update all feature. How can I do this via commandline? Thank you.
|
|
|
|