SYSTem:COMMunicate:LAN:DNS

From Keysight 34970A/34972A

SYSTem:COMMunicate:LAN:DNS

This functionality is available on the 34972A only.

Syntax

SYSTem:COMMunicate:LAN:DNS "<address>"

SYSTem:COMMunicate:LAN:DNS? [{CURRent|STATic}]

Description

This command assign the IP address of the Domain Name System server (DNS).

Contact your network administrator to determine whether DNS is being used and for the correct address. If DHCP is available and enabled, DHCP will auto-assign the DNS address. This auto-assigned DNS address takes precedence over the static DNS address assigned with this command.

If you change the DNS address, you must execute a SYSTem:COMMunicate:LAN:UPDate command to activate the setting.

Parameters

Name Type Range of Values Default Value
<address> Quoted String Specified in four-byte dot notation ("nnn.nnn.nnn.nnn"), where "nnn" in each case is a byte value in the range 0 through 255. This is a required parameter.

Remarks

  • The assigned DNS address is used for the DNS server if DHCP is disabled. Otherwise, the DNS server address is auto-assigned by DHCP.
  • The DNS address is stored in non-volatile memory, and does not change when power has been off, after a Factory Reset (*RST command), or after an Instrument Preset (SYSTem:PRESet command).

Return Format

The query form returns the address of the DNS server in the form "nnn.nnn.nnn.nnn".

Note that the query version of the command has two optional parameters. Specify "CURRent" (default) to read the DNS address currently in use. Specify "STATic" to read the DNS address, static gateway, or IP address currently stored in non-volatile memory within the instrument. The DNS address stored in memory is used if DHCP is disabled. If DHCP is enabled, it will auto-assign the DNS address, and that DHCP assigned address can be read by specifying "CURRent".

Examples

The following command sets the static DNS address.

SYST:COMM:LAN:DNS "198.105.232.4" SYST:COMM:LAN:UPDate

The following query returns the DNS address currently being used by the instrument (the quotes are also returned).

SYST:COMM:LAN:DNS? CURR

Typical Response: "198.105.232.4"

See Also

LAN Configuration Introduction

SYSTem:COMMunicate:LAN:HOSTname

SYSTem:COMMunicate:LAN:UPDate