Skip to content
New issue

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

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

Already on GitHub? # to your account

Having a URL record in DNSimple account causes crash #324

Closed
onlyhavecans opened this issue Feb 27, 2018 · 4 comments
Closed

Having a URL record in DNSimple account causes crash #324

onlyhavecans opened this issue Feb 27, 2018 · 4 comments

Comments

@onlyhavecans
Copy link
Contributor

In master when I run a preview on a domain that has a URL record in it dnscontrol crashes now. This behavior is new after the refactor.

~/go/bin/dnscontrol preview
******************** Domain: blueoxtavern.com
----- Getting nameservers from: xxx
----- DNS Provider: xxx...panic: unparsable record received from dnsimple: Unknown rtype (URL) when parsing (https://apps.vdomobile.com/m/blueoxtavernlv/?appcode=blueoxtavernlv) domain=(blueoxtavern.com)

goroutine 1 [running]:
github.com/StackExchange/dnscontrol/providers/dnsimple.(*DnsimpleApi).GetDomainCorrections(0xc420502cc0, 0xc420483b80, 0x14, 0xc420483b00, 0x1, 0x0, 0x1)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/providers/dnsimple/dnsimpleProvider.go:96 +0x106b
github.com/StackExchange/dnscontrol/commands.run(0x1939935, 0xc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1937fde, 0xa, 0x0, ...)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/commands/previewPush.go:129 +0x3ce
github.com/StackExchange/dnscontrol/commands.Preview(0x1939935, 0xc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1937fde, 0xa, 0x0, ...)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/commands/previewPush.go:81 +0x74
github.com/StackExchange/dnscontrol/commands.glob..func3.1(0xc42028c160, 0x0, 0xc42028c160)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/commands/previewPush.go:25 +0x4e
github.com/StackExchange/dnscontrol/vendor/github.com/urfave/cli.HandleAction(0x179a760, 0xc420190010, 0xc42028c160, 0xc4201ba900, 0x0)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/vendor/github.com/urfave/cli/app.go:490 +0xc8
github.com/StackExchange/dnscontrol/vendor/github.com/urfave/cli.Command.Run(0x1935929, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x195a389, 0x4e, 0x0, ...)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/vendor/github.com/urfave/cli/command.go:210 +0xa36
github.com/StackExchange/dnscontrol/vendor/github.com/urfave/cli.(*App).Run(0xc42025a340, 0xc4200be000, 0x2, 0x2, 0x0, 0x0)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/vendor/github.com/urfave/cli/app.go:255 +0x6a0
github.com/StackExchange/dnscontrol/commands.Run(0xc4201e8a20, 0x14, 0xc420098058)
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/commands/commands.go:50 +0x18a
main.main()
	/Users/dos/go/src/github.com/StackExchange/dnscontrol/main.go:18 +0x34
make: *** [build] Error 2

Here is the appropiate record in my config

D('blueoxtavern.com', REG_NONE, DnsProvider(DNSIMPLE),
  IGNORE('@'),
  IGNORE('*')
)
@tlimoncelli
Copy link
Contributor

@onlyhavecans
Copy link
Contributor Author

👍
Yep! Checking out and building that branch fixed this error

2018/02/27 12:44:35 diff.go:79: Ignoring record blueoxtavern.com URL due to IGNORE
2018/02/27 12:44:35 diff.go:79: Ignoring record *.blueoxtavern.com URL due to IGNORE
0 corrections

@tlimoncelli
Copy link
Contributor

awesome!

@tlimoncelli
Copy link
Contributor

Merged #325

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants