Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_EditDDNSCfg

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    8
    BOOL NET_SDK_EditDDNSCfg(
        LONG lUserID,
        BOOL bSwitch,
        const char* serverType,
        const char* serverAddr,
        const char* domainName,
        const char* userName,
        const char* password);

    1
    2
    3
    4
    5
    6
    7
    8
    public static extern Boolean NET_SDK_EditDDNSCfg(
        Int32 lUserID,
        Boolean bSwitch,
        string serverType,
        string serverAddr,
        string domainName,
        string userName,
        string password);

### Function Description

DDNS configuration interface, test and edit DDNS parameters.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, return value of `NET_SDK_Login`.
bSwitchin | BOOL | DDNS switch (TRUE: on, FALSE: off).
serverTypein | char* | DDNS service provider type (such as "www.no-ip.com", which can be empty).
serverAddrin | char* | DDNS server address (can be empty).
domainNamein | char* | Domain name (such as "maisy.vip", can be empty).
userNamein | char* | DDNS username (can be empty).
passwordin | char* | DDNS password (clear text, internal MD5 encryption, can be empty).

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code