balena-io-modules / device-diagnostics

on-device diagnostics tool
9 stars 8 forks source link

Check for IPv6 DNS's without matching dates #287

Closed zwhitchcox closed 3 years ago

zwhitchcox commented 3 years ago

skip first line and first 3 columns to avoid matching date instead of IPv6 addresses

In order to avoid matching dates when matching IPv6 addresses, I only matched the last field.

Unfortunately, dnsmasq doesn't always print the DNS as the last field per https://github.com/balena-io-modules/device-diagnostics/pull/286#issuecomment-918132277

Instead, simply skip the first line and the first 3 columns which contain the log date.

Change-type: patch

20k-ultra commented 3 years ago

@balena-ci rebase