dns requests to Mikrotik fail if udp on linux
Posted: Sat Sep 29, 2018 3:53 am
I'm running into a weird issue. My whole home network is based around mikrotik. The main edge router is a rb3011 its acts as the edge of the network and runs dhcp-server, dhcp-client and dns among other things. There's no hotspot on it, but it is the capsman server for the house.
The weirdness I'm seeing is under linux:
This is the result 9 times out of 10, the other time it works reliably.
However, this command works under OSX without issue.
If I do a TCP only query in linux it always works:
I should also note that while I'm using cnn.com in my examples, any lookup exhibits this same behavior under linux. I have multiple linux boxes and they're all exhibiting the issue, so its not a config issue with a single machine.
The weirdness I'm seeing is under linux:
Code: Select all
dig cnn.com @192.168.1.254
; <<>> DiG 9.9.9-P1 <<>> cnn.com @192.168.1.254
;; global options: +cmd
;; connection timed out; no servers could be reached
However, this command works under OSX without issue.
If I do a TCP only query in linux it always works:
Code: Select all
dig +tcp cnn.com @192.168.1.254
; <<>> DiG 9.9.9-P1 <<>> +tcp cnn.com @192.168.1.254
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11046
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;cnn.com. IN A
;; ANSWER SECTION:
cnn.com. 26 IN A 151.101.193.67
cnn.com. 26 IN A 151.101.1.67
cnn.com. 26 IN A 151.101.129.67
cnn.com. 26 IN A 151.101.65.67
;; Query time: 0 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Fri Sep 28 19:51:23 CDT 2018
;; MSG SIZE rcvd: 89