diff --git a/app/app.go b/app/app.go index 0e499bc..2c04470 100644 --- a/app/app.go +++ b/app/app.go @@ -1,6 +1,7 @@ package app import ( + "fmt" "net" "dnsupdater/provider/manager" @@ -29,6 +30,10 @@ func NewApp(config *Config) (*App, error) { l := resolver.Get(config.Services.IPLookup) + if l == nil { + return nil, fmt.Errorf("Failed to load lookup service: %s", config.Services.IPLookup) + } + return &App{ ProviderManager: providerMgr, IPLookupService: resolver.Get(config.Services.IPLookup),