No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade
FusionServer Tools 2.0 uREST User Guide 16
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Setting DNS Information

Setting DNS Information

Function

Set DNS information.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD setdns -M {Static,IPv4,IPv6} -H HOSTNAME -D DOMAIN -PRE PREFERREDSERVER -ALT ALTERNATESERVER

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

{Static,IPv4,IPv6}

DNS mode. It is an optional parameter.

  • Static: manual configuration
  • IPv4: automatically obtaining from the IPv4 protocol stack
  • IPv6: automatically obtaining from the IPv6 protocol stack
NOTE:

If the mode for obtaining the IP address of the server management network port is manual, the DNS information obtaining mode must also be manual.

HOSTNAME

iBMC host name. It is an optional parameter.

  • Range: a string of 1 to 64 characters
  • Setting rule: The value must consist of letters, digits, and hyphens (-), and the hyphen cannot be at the beginning or end.

DOMAIN

Server domain name. It is an optional parameter.

  • Range: a string of 0 to 67 characters
  • Setting rule: The value can contain letters, digits, and special characters including spaces.

PREFERREDSERVER

Preferred DNS server address. It is an optional parameter.

  • IPv4 address
  • IPv6 address

ALTERNATESERVER

Alternate DNS server address. It is an optional parameter.

  • IPv4 address
  • IPv6 address

Usage Guidelines

None

Example

Obtain help information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setdns -h 
usage: urest setdns [-h] [-M {Static,IPv4,IPv6}] [-H HOSTNAME] [-D DOMAIN]
                    [-PRE PREFERREDSERVER] [-ALT ALTERNATESERVER]
 
optional arguments:
  -h, --help            show this help message and exit
  -M {Static,IPv4,IPv6}
                        how DNS server information is obtained
  -H HOSTNAME           specifies a host name for iBMC. value: a string of 1
                        to 64 characters setting, rule: the value can contain
                        letters, digits, and hyphens (-), but cannot start or
                        end with a hyphen
  -D DOMAIN             specifies a domain name for the server. value: a
                        string of 0 to 67 characters setting rule: the value
                        can contain letters, digits, and special characters
                        including spaces
  -PRE PREFERREDSERVER  specifies the IP address of the preferred DNS server
  -ALT ALTERNATESERVER  specifies the IP address of the alternate DNS server

Set DNS information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setdns -PRE 172.100.20.55 -ALT 172.100.20.56 
Success: successfully completed request

Query DNS information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** getdns 

HostName            : HostNamesdfsdfsdf 
FQDN                : HostNamesdfsdfsdf. 
DNSAddressOrigin    : Static 
PreferredServer     :172.100.20.55 
AlternateServer     :172.100.20.56
Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 131880

Downloads: 601

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next