LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » LxCenter » Command-line Management » View/Edit dns zones using reflect?
View/Edit dns zones using reflect? [message #42151] Sat, 18 October 2008 22:53 Go to next message
dbmv is currently offline dbmv  Canada
Messages: 305
Registered: October 2008
Senior Member
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 #42164 is a reply to message #42151] Sun, 19 October 2008 04:48 Go to previous messageGo to next message
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 #50684 is a reply to message #42164] Wed, 17 December 2008 08:07 Go to previous messageGo to next message
drank is currently offline drank  Bulgaria
Messages: 1324
Registered: June 2007
Senior Master
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.

Dragomir Denev
DGM
www.dgm.bg
Re: View/Edit dns zones using reflect? [message #50697 is a reply to message #50684] Wed, 17 December 2008 09:55 Go to previous messageGo to next message
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.


Re: View/Edit dns zones using reflect? [message #50705 is a reply to message #50697] Wed, 17 December 2008 10:15 Go to previous message
drank is currently offline drank  Bulgaria
Messages: 1324
Registered: June 2007
Senior Master
Thanks a lot, it worked just great.

BTW, how can I get the list of all possible subactions for update? Thank you.


Dragomir Denev
DGM
www.dgm.bg
Previous Topic:Automatic Add/Parking Domains
Next Topic:Showing functions/features?
Goto Forum:
  


Current Time: Wed Jun 19 22:46:54 EDT 2013

Total time taken to generate the page: 0.01101 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software