diff --git a/dns/transport_manager.go b/dns/transport_manager.go index dff886df..f41c9f9e 100644 --- a/dns/transport_manager.go +++ b/dns/transport_manager.go @@ -59,6 +59,9 @@ func (m *TransportManager) Start(stage adapter.StartStage) error { transports := m.transports m.access.Unlock() if stage == adapter.StartStateStart { + if m.defaultTag != "" && m.defaultTransport == nil { + return E.New("default DNS server not found: ", m.defaultTag) + } return m.startTransports(m.transports) } else { for _, outbound := range transports {