Page 1 of 1

DDNS menu not showing if error in the configuration

PostPosted: Sat Mar 05, 2016 10:22 pm
by raidsm
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

Re: DDNS menu not showing if error in the configuration

PostPosted: Sun Mar 06, 2016 9:58 am
by Jocko
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

Re: DDNS menu not showing if error in the configuration

PostPosted: Sun Mar 06, 2016 12:41 pm
by raidsm
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!

Re: DDNS menu not showing if error in the configuration

PostPosted: Sun Mar 06, 2016 1:03 pm
by Jocko
Ok

but make a typo error on the host name is not enough to get your behaviour :scratch