Skip to content

DNSServer does not work with dig unix tool #5534

Closed
@d-a-v

Description

@d-a-v

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: ESP8266
  • Core Version: latest git
  • Development Env: Arduino IDE
  • Operating System: Ubuntu

Settings in IDE

  • Module: Wemos D1 mini r2
  • Flash Mode: qio
  • Flash Size: 4MB
  • lwip Variant: v2 Lower Memory
  • Reset Method: nodemcu
  • Flash Frequency: 40Mhz
  • CPU Frequency: 80Mhz
  • Upload Using: SERIAL
  • Upload Speed: 921600

Problem Description

DNSServer library has issues.
Related to #5529, more details in this comment.
Also related with the much older #3357.

MCVE Sketch

DNSServer example (Files>Examples>DNSServer>DNSServer)

Debug Messages

On unix:

$ ping www.example.com
PING www.example.com (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=2.07 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=2.37 ms

Here, working (not always when following the #5529 comment above)
This warning + no answer must be solved:

$ dig @192.168.1.1 www.example.com
;; Warning: Message parser reports malformed message packet.

; <<>> DiG 9.11.3-1ubuntu1.3-Ubuntu <<>> @192.168.1.1 www.example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 59041
;; flags: qr rd ad; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; Query time: 4 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Fri Dec 21 13:15:26 CET 2018
;; MSG SIZE  rcvd: 12

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions