1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

DNS Records CLI

Discussion in 'Plesk for Linux - 8.x and Older' started by davividal, Dec 10, 2008.

  1. davividal

    davividal Guest

    0
     
    Hi all.

    I've 2 doubts:

    1 - is there any way to add DNS records through CLI? I've looked at /usr/local/psa/admin/bin but can't find anything helpful;

    2 - I need (in fact, my boss wants) that every sub-domain has the 'www' prefix. Is there an "easy" ('lazyful') way to get it?

    thanks
     
  2. bk4linux

    bk4linux Guest

    0
     
    You can use DNS cli from following location /usr/local/psa/bin/dns or /usr/local/psa/bin/dns.sha

    dns <command> [<domain_name>|<domain_alias>] [ <option_1> [<param>] [<option_2> [<param>]] … [<option_N> [<param>]] ]

    ./dns --set example.com -list "MX,mail3,mail.example.com,15;NS,ns2,ns.example.com"


    --add or -a Adds a resource record to a domain's DNS zone.
    --set or -s Adds specified resource records to and removes all pre-existing resource records from a domain's DNS zone. Requires the -list option.
    --del or -d Deletes a resource record from a domain's DNS zone.
    --del-all or -da Deletes all resource records from a domain's DNS zone.
    --reset or -res Restores the default resource records for a domain's zone based on the Plesk server DNS zone template.
    --on Enables DNS service on a domain or domain alias.
    --off Disables DNS service on a domain or domain alias.
    --set-master Sets the Plesk name server as the master server for domain's or domain alias' DNS zone.
    --set-slave Sets the Plesk name server as the slave server for domain's or domain alias' DNS zone.
    --help or -h Displays help on the use of the utility.
     
  3. kevork

    kevork Guest

    0
     
    How to setup master's IP using CLI

    Hi !,

    Do you know how to setup IP address of master DNS after setting plesk as slave ?
    I mean, using CLI, not GUI.
    I dig forums but none ... and can't realize how to do this reading docs.

    Thank you !
    Jorge.
     
Loading...