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

DNS record create-or-update fatal, works with create #1015

Open
2 tasks done
uded opened this issue Aug 4, 2022 · 3 comments
Open
2 tasks done

DNS record create-or-update fatal, works with create #1015

uded opened this issue Aug 4, 2022 · 3 comments

Comments

@uded
Copy link

uded commented Aug 4, 2022

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the library and it is still present.

cloudflare-go version

0.46.0

Go environment

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOVCS=
set GOVERSION=go1.18.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C....

Expected output

A summary of created or update record

Actual output

[signal 0xc0000005 code=0x0 addr=0x0 pc=0xcb2854]

goroutine 1 [running]:
main.dnsCreateOrUpdate(0xc000125d40?)
        /home/runner/work/cloudflare-go/cloudflare-go/cmd/flarectl/dns.go:137 +0x654
github.com/urfave/cli/v2.(*Command).Run(0xc000125d40, 0xc00002ab40)
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.11.1/command.go:169 +0x631
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc0001101c0, 0xc00002a940)
github.com/urfave/cli/v2.(*Command).startApp(0xc0001258c0, 0xc00002a940)
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.11.1/command.go:287 +0x79b
github.com/urfave/cli/v2.(*Command).Run(0xceebe0?, 0xc000056fb0?)
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.11.1/command.go:95 +0xba
github.com/urfave/cli/v2.(*App).RunContext(0xc000110000, {0xe04a08?, 0xc000012060}, {0xc00011a000, 0xd, 0x10})
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.11.1/app.go:378 +0xf15
github.com/urfave/cli/v2.(*App).Run(...)
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.11.1/app.go:251
main.main()
        /home/runner/work/cloudflare-go/cloudflare-go/cmd/flarectl/flarectl.go:715 +0x526d```

### Code demonstrating the issue

N/A

### Steps to reproduce

1. `flarectl.exe d o --zone domain --content="mx.domain.com" --type MX --ttl 3600 --priority 1 --name="domain"` doesn't work
2. Changing `d o` to `d c` works fine

### References

None as far as I was checking
@jacobbednarz
Copy link
Member

jacobbednarz commented Aug 9, 2022

have you tried --zone with a zone ID, not a zone name? disregard, this does a lookup for you internally.

@uded
Copy link
Author

uded commented Aug 9, 2022

Tried many options. Gave me the same fatal panic error

@Cyb3r-Jak3
Copy link
Contributor

@uded What happens if you do flarectl.exe d u --zone domain --content="mx.domain.com" --type MX --ttl 3600 --priority 1 --name="domain". I can't recreate on Windows or Linux, and I'm wondering if there is something wrong with updating DNS records or if to do with create and update specifically. For your MX record domain or content, is there anything that might be considered non-standard? Like it being an Internationalized Domain Names (IDNs)?

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

3 participants