diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 9a611c3..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch Package", - "type": "go", - "request": "launch", - "mode": "auto", - "args": ["froth.zone", "+trace", "@1.1.1.1"], - "program": "${workspaceFolder}/main.go" - } - ] -} diff --git a/main.go b/main.go index 8f2359e..08c39db 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ func run(args []string) (opts *util.Options, code int, err error) { for i := 0; i <= opts.Request.Retries; i++ { resp, err = query.CreateQuery(opts) if err == nil { - keepTracing = opts.Trace && (!resp.DNS.Authoritative || opts.Request.Name == ".") + keepTracing = opts.Trace && (!resp.DNS.Authoritative || (opts.Request.Name == "." && tempDomain != ".")) break } else if i != opts.Request.Retries {