From 66a8c01d0eccf0faec98042b4ff9d853d04d0894 Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Thu, 31 Jul 2025 14:39:46 -0700 Subject: [PATCH] Add a warning about missing DNS functionality on Linux It took me quite some searching before I found out that this simply is not implemented. A warning would have been very useful. refs: https://github.com/zerotier/ZeroTierOne/issues/2492 --- osdep/LinuxEthernetTap.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/osdep/LinuxEthernetTap.hpp b/osdep/LinuxEthernetTap.hpp index fe8079360..88122f4bf 100644 --- a/osdep/LinuxEthernetTap.hpp +++ b/osdep/LinuxEthernetTap.hpp @@ -59,6 +59,7 @@ class LinuxEthernetTap : public EthernetTap { virtual void setMtu(unsigned int mtu); virtual void setDns(const char* domain, const std::vector& servers) { + fprintf(stderr, "WARNING: ignoring call to LinuxEthernetTap::setDns on Linux. This is not implemented yet. See https://github.com/zerotier/ZeroTierOne/issues/2492 for details" ZT_EOL_S); } private: