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

name does not resolve, but receives reqest and forwards to avahi #4

Open
mattwood-microchip opened this issue Dec 17, 2023 · 1 comment

Comments

@mattwood-microchip
Copy link

Hi,

I have an embedded target (musl) that I need to mdns resolution. I built avahi2mdns and deployed it successfully. I added a nameserver 127.0.0.1 entry to resolve.conf but when I attempt to ping a .local address from the embedded target ping fails. Interestingly, avahi2dns seems to do its job correctly however. Any idea what could be causing this? Log below.

Thanks!

avahi2dns -v
DEBU[0000]github.com/LouisBrunner/avahi2dns/config.go:32 main.parseArgs() config parsed config="&{[home internal intr
anet lan local private test] localhost 53 true}"
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:14 main.runServer() connection to dbus...
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:21 main.runServer() connection to avahi through dbus...
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:37 main.runServer() adding dns handler domain=home
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:37 main.runServer() adding dns handler domain=internal
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:37 main.runServer() adding dns handler domain=intranet
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:37 main.runServer() adding dns handler domain=lan
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:37 main.runServer() adding dns handler domain=local
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:37 main.runServer() adding dns handler domain=private
DEBU[0000]github.com/LouisBrunner/avahi2dns/server.go:37 main.runServer() adding dns handler domain=test
INFO[0000]github.com/LouisBrunner/avahi2dns/server.go:46 main.runServer() starting DNS server addr="localhost:53"
DEBU[0002]github.com/LouisBrunner/avahi2dns/server.go:30 main.runServer.func1() received request component=main request=";; opcode: QUERY, status: NOERROR, id: 5070\n;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0\n\n;; QUESTION SECTION:\n;hostname.local.\tIN\t A\n"
INFO[0002]github.com/LouisBrunner/avahi2dns/query.go:52 main.avahiToRecord() forwarding query to avahi component=main name=hostname.local. protocol=0 type=A
DEBU[0002]github.com/LouisBrunner/avahi2dns/server.go:30 main.runServer.func1() received request component=main request=";; opcode: QUERY, status: NOERROR, id: 10670\n;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0\n\n;; QUESTION SECTION:\n;hostname.local.\tIN\t AAAA\n"
INFO[0002]github.com/LouisBrunner/avahi2dns/query.go:52 main.avahiToRecord() forwarding query to avahi component=main name=hostname.local. protocol=1 type=AAAA
DEBU[0002]github.com/LouisBrunner/avahi2dns/server.go:32 main.runServer.func1() sending reply component=main reply=";; opcode: QUERY, status: NOERROR, id: 0\n;; flags:; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\n\n;; ANSWER SECTION:\nhostname.local.\t3600\tIN\tA\t192.168.1.188\n"
DEBU[0002]github.com/LouisBrunner/avahi2dns/server.go:32 main.runServer.func1() sending reply component=main reply=";; opcode: QUERY, status: NOERROR, id: 0\n;; flags:; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\n\n;; ANSWER SECTION:\nhostname.local.\t3600\tIN\tAAAA\tfe80::28b4:32ff:fe0f:38d0\n"

@LouisBrunner
Copy link
Owner

Hi @mattwood-microchip,

Weird, everything seems to be working...

What's the output of dig in that scenario?

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

2 participants