DDNS menu not showing if error in the configuration

DDNS menu not showing if error in the configuration

Postby raidsm » Sat Mar 05, 2016 10:22 pm

Hi everybody!

I added a DDNS but made an error in the host and now the menu won't appear. Is there a way to disable and erase my entry via terminal?

Lan setup stays blank while is stays forever on the "execution command , please wait" without letting me the ability to change any value. :pound
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: DDNS menu not showing if error in the configuration

Postby Jocko » Sun Mar 06, 2016 9:58 am

Hi raidsm,

:disapprove

I assume that in your host value,you used some special characters like '&' which may have xml meaning. The firmware does not run checks on hostname value, maybe we go to add one

A sed command to restore your settings is not easy as it needs to cross several lines in the nas database. So you must to do manually.

In a putty window, backup the nas database file
Code: Select all
cp /etc/nas_conf_db.xml  /etc/nas_conf_db.xml.back

edit /etc/nas_conf_db.xml with nano
Code: Select all
nano /etc/nas_conf_db.xml

scroll down up to lines
Code: Select all
        <ddns>
                <enable>true</enable>
                <service>aaa</service>
                <username>xxxxxxxxx</username>
                <password>yyyyyyyyyyyyyyyyy</password>
                <hostname>zzzzzzzzzzzz</hostname>
                <period>ww</period>
                <success>false</success>
        </ddns>
remove all lines within the node <ddns> to get
Code: Select all
        <ddns>
        </ddns>

Save your change and reload the lan setup menu, you should be able to set new settings now.

Note: if you use no-ip provider, you need to install a new version of the binary ez-ipupdate
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: DDNS menu not showing if error in the configuration

Postby raidsm » Sun Mar 06, 2016 12:41 pm

Hi jocko thanks you very much.

no I just made a mistake in the dns hostname without special character. Typed a wrong letter and made all this menu inaccessible.
Thank you again!
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: DDNS menu not showing if error in the configuration

Postby Jocko » Sun Mar 06, 2016 1:03 pm

Ok

but make a typo error on the host name is not enough to get your behaviour :scratch
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 8 guests