Server init explodes with weird DNS error #180

Closed
opened 2021-10-05 11:18:07 +00:00 by decentral1se · 3 comments
Owner

Describe the current behavior

FATA[0000] lookup sub.domain.tld on 10.0.0.1:53: server misbehaving  caller="/drone/src/cli/server/init.go:53 glob..func2" stack="/drone/src/cli/server/init.go:53                           glob..func2\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434     (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 (*Command).startApp\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94  (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313     (*App).RunContext\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224     RunApp\n/drone/src/cli/cli.go:96                                   RunApp\n/drone/src/cmd/abra/main.go:23                             main\n/usr/local/go/src/runtime/proc.go:255                      main\n/usr/local/go/src/runtime/asm_amd64.s:1581                 goexit"

Steps to reproduce

abra server init

Describe the expected behavior

It works.

Additional information

  • version: latest alpha
## Describe the current behavior ``` FATA[0000] lookup sub.domain.tld on 10.0.0.1:53: server misbehaving caller="/drone/src/cli/server/init.go:53 glob..func2" stack="/drone/src/cli/server/init.go:53 glob..func2\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 (*Command).startApp\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 (*App).RunContext\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224 RunApp\n/drone/src/cli/cli.go:96 RunApp\n/drone/src/cmd/abra/main.go:23 main\n/usr/local/go/src/runtime/proc.go:255 main\n/usr/local/go/src/runtime/asm_amd64.s:1581 goexit" ``` ## Steps to reproduce `abra server init` ## Describe the expected behavior It works. ## Additional information <!-- run "abra version" on the command-line --> - version: latest alpha
decentral1se added this to the Command-line tool sustainability milestone 2021-10-05 11:18:07 +00:00
decentral1se added the
bug
abra
labels 2021-10-05 11:18:07 +00:00
decentral1se self-assigned this 2021-10-05 11:18:07 +00:00
decentral1se added this to the Beta release (software) project 2021-10-05 11:18:08 +00:00
decentral1se changed title from server init explodes with weird DNS error to Server init explodes with weird DNS error 2021-10-05 12:47:31 +00:00
decentral1se removed their assignment 2021-10-05 12:51:32 +00:00
Author
Owner

Can reproduce 🤔

➜  abra (main) ✔ ./abra server init swarm-demo.autonomic.zone
FATA[0000] lookup swarm-demo.autonomic.zone on 192.168.43.2:53: server misbehaving
Can reproduce 🤔 ``` ➜ abra (main) ✔ ./abra server init swarm-demo.autonomic.zone FATA[0000] lookup swarm-demo.autonomic.zone on 192.168.43.2:53: server misbehaving ```
decentral1se self-assigned this 2021-10-05 19:00:29 +00:00
Author
Owner

This works 😬

diff --git a/cli/server/init.go b/cli/server/init.go
index 99c43da..9b8af76 100644
--- a/cli/server/init.go
+++ b/cli/server/init.go
@@ -42,7 +42,7 @@ later for more advanced use cases.
                                        Timeout: time.Millisecond * time.Duration(10000),
                                }
                                // comrade librehosters DNS resolver https://snopyta.org/service/dns/
-                               return d.DialContext(ctx, "udp", "95.216.24.230:53")
+                               return d.DialContext(ctx, "udp", "8.8.8.8:53")
                        },
                }
                logrus.Debugf("created DNS resolver via 95.216.24.230")

Seems that the response headers that come back are not what Go expects...

Maybe need to try another librehoster for DNS...

This works 😬 ```diff diff --git a/cli/server/init.go b/cli/server/init.go index 99c43da..9b8af76 100644 --- a/cli/server/init.go +++ b/cli/server/init.go @@ -42,7 +42,7 @@ later for more advanced use cases. Timeout: time.Millisecond * time.Duration(10000), } // comrade librehosters DNS resolver https://snopyta.org/service/dns/ - return d.DialContext(ctx, "udp", "95.216.24.230:53") + return d.DialContext(ctx, "udp", "8.8.8.8:53") }, } logrus.Debugf("created DNS resolver via 95.216.24.230") ``` Seems that the response headers that come back are not what Go expects... Maybe need to try another librehoster for DNS...
Author
Owner
> https://www.privacy-handbuch.de/handbuch_93d.htm
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#180
No description provided.