Nameservers and ZumIQ - FreeWaveTechnologies/ZumIQ GitHub Wiki

1. Nameservers

Nameserver addresses are actually recorded in two different places on the ZumLink: one is in the /etc/resolv.conf file in the IQ developer environment; and the other is in the underlying OS and cannot be directly accessed by the end user, except as noted below.

Directly editing /etc/resolv.conf using the command sudo nano /etc /resolv.conf is the correct way to point to a local or corporate nameserver from the IQ developer environment. Nameserver order matters, so list the nameserver closest to the ZumIQ first, and the most distant (or most general, or global) nameserver last. For example:

  • if your ZumIQ is at 192.168.137.3,
  • your PC is configured as a nameserver and is at 192.168.137.12,
  • your local or corporate nameserver is at 10.0.0.100,
  • and Google is at 8.8.8.8,

you may edit /etc/resolv.conf to look like this:

domain localdomain
search localdomain
nameserver 192.168.137.2
nameserver 10.0.0.100
nameserver 8.8.8.8

The /etc/resolv.conf file in the OS cannot be edited directly; however, the nameserver addresses stored in the file can be edited from either the web interface > Configuration > Network page, or from the FreeWave shell as network.nameserver_address1 and network.nameserver_address2. These nameserver addresses are primarily used to find NTP servers. Be sure to click Update or execute save after editing, to save the new addresses in nonvolatile memory.

2. Hostname

The hostname command on ZumIQ behaves differently from the normal Linux hostname command. Executing 'hostname' from the devuser command prompt always returns the same value.

$ hostname
freewave-ib

However, executing the commands

$ ssh freewave-ib
$ ping freewave-ib

do nothing.

Although the hostname can be changed using the command

$ sudo hostname something-else

... subsequent behavior is unpredictable, and the new hostname is not guaranteed to survive a reboot.

To access the ZumIQ by a name instead of its IP address, use one of these two workarounds:

  • store the name and IP address of the ZumIQ in your local /etc/hosts file. See the Linux manpage hosts for more info.
  • ask your sysadmin to enter the name and (static) IP address of the ZumIQ on the facility or corporate DNS server.