Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic in getSelfGlue #12

Open
omar-polo opened this issue Nov 5, 2022 · 0 comments
Open

panic in getSelfGlue #12

omar-polo opened this issue Nov 5, 2022 · 0 comments

Comments

@omar-polo
Copy link

Hello,

I'm probably doing something that dt doesn't expect, because with my domain it panics:

% dt omarpolo.com
using 8.8.8.8 as resolver
.
NS |IP |LOC |ASN |ISP |rtt |Serial

NS |IP |Version |DNSSEC |ValidFrom |ValidUntil
...panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/42wim/dt/check.(*Glue).getSelfGlue(0x1?, {0x7f7ffffd48e3?, 0x4a?})
        github.com/42wim/dt/check/glue.go:152 +0x18f
github.com/42wim/dt/check.(*Glue).CheckSelf(0x6d78d4?, {0x7f7ffffd48e3?, 0xc000129be8?})
        github.com/42wim/dt/check/glue.go:42 +0x25
github.com/42wim/dt/check.(*Glue).CreateReport(0xc0000a4140, {0x7f7ffffd48e3, 0xc})
        github.com/42wim/dt/check/glue.go:79 +0x445
main.execCheckers(0xc000050940, {0x7f7ffffd48e3, 0xc}, {0xc0000a0200, 0x2, 0x2}, 0xc0000b2000)
        github.com/42wim/dt/main.go:107 +0x4d4
main.doDomainReport(0xc000050940?, {0x7f7ffffd48e3, 0xc}, {0xc0000a0100?, 0x2?, 0x43eaa5?}, 0xc0000b2000)
        github.com/42wim/dt/main.go:125 +0x18f
main.main()
        github.com/42wim/dt/main.go:91 +0x218

With some printfs I think that's because it doesn't find the IP address for the nameservers:

g.Ns [{Name:ns1.omarpolo.com. Info:[] IP:[]} {Name:ns2.omarpolo.com. Info:[] IP:[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant