ArmSoM
← All stories

How to Separate DNS Delays from Link Failures on an Embedded Gateway

A dashboard can say offline while its Ethernet link stays up. A stalled hostname lookup, an unreachable service and an application timeout all look similar to an operator. On a Sige5 gateway, separate these steps before replacing the network cable.

ArmSoM Sige5 single-board computer product photo

ArmSoM Sige5 single-board computer · ArmSoM

Time the request in parts

Record the gateway's current addresses and the application's configured hostname. Use the system resolver to resolve that same name, then record DNS lookup time, connection time and the time to the first application response using a client that reports each stage. Run the same request when the fault is absent. Account for cached answers when comparing repeated tests.

If a public hostname has multiple addresses, record the address actually used on each run. A cached lookup and a different server endpoint can otherwise look like the same experiment.

If only lookups slow down, check which DNS servers the gateway received on each interface. If name resolution is quick but the service is slow, keep the timestamp and investigate the later stage.

Reference material

ArmSoM Sige5 hardware documentation

curl transfer timing variables

Related ArmSoM guide

Moving an MQTT IoT gateway from Raspberry Pi to ArmSoM

Explore ArmSoM Sige5