SYSTem:COMMunicate:LAN:DNS

34980A

SYSTem:COMMunicate:LAN:DNS

Syntax

SYSTem:COMMunicate:LAN:DNS <address>

SYSTem:COMMunicate:LAN:DNS?

Description

This command assigns the IP address of the Domain Name System (DNS) server. Contact your network administrator to determine if DNS is being used and for the correct address.

If you change the DNS address, you must cycle power on the 34980A to activate the new setting.

Parameters

Name

Type

Range of Values

Default Value

<address>

Numeric

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.

0.0.0.0

Remarks

  • Dot-notation addresses ("nnn.nnn.nnn.nnn" where "nnn" is a byte value) must be expressed with care, as most web software on the PC will interpret byte values with leading zeros as octal numbers. For example, "255.255.020.011" is actually equivalent to decimal "255.255.16.9" not "255.255.20.11" because ".020" is interpreted as "16" expressed in octal, and ".011" as "9". To avoid confusion, use only decimal expressions of byte values (0 to 255), with no leading zeros.

    For example, the 34980A assumes that all dot-notation addresses are expressed as decimal byte values and strips all leading zeros from these byte values. Thus, attempting to set an IP address of "255.255.020.011" will become "255.255.20.11" (a purely decimal expression). Be sure to enter the exact expression, "255.255.20.11", in your PC web software to address the instrument. Do not use "255.255.020.011" – the PC will interpret this address differently due to the leading zeros.

  • 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 command returns the current DNS address in the form "nnn.nnn.nnn.nnn".

Examples

The following command sets the DNS address.

SYST:COMM:LAN:DNS 198.105.232.4

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

SYST:COMM:LAN:DNS?

Typical Response:  "198.105.232.4"

See Also

SYSTem:COMMunicate:LAN:HOSTname