< Home

dns-server(NQA view)

Function

The dns-server command sets the IP address of the DNS server in the NQA DNS test.

The undo dns-server command deletes the configured IP address of the DNS server.

Format

dns-server ipv4 ip-address

undo dns-server

Parameters

Parameter Description Value

ipv4 ip-address

Specifies the IP address of the DNS server.

It is in the decimal format.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The NQA DNS test instance is used to parse the specified DNS name into the IP address rate to show the performance of the DNS protocol.

Prerequisites

Before using the dns-server command, run the test-type command to specify the type of a test instance. The test instance can only be a DNS or HTTP test instance.

Precautions

The DNS server configuration of a running test instance cannot be changed.

DNS server addresses in the DNS test cases must be IP addresses configured using the dns server command. Otherwise, the test will fail.

Example

# Set the IP address of the DNS server to 1.1.1.1 in the test named admin dns.

<sysname> system-view
[sysname] nqa test-instance admin dns
[sysname-nqa-admin-dns] test-type dns
[sysname-nqa-admin-dns] dns-server ipv4 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >