DNS issue

dig baidu.com @192.168.31.1
; <<>> DiG 9.10.6 <<>> baidu.com @192.168.31.1
;; global options: +cmd
;; connection timed out; no servers could be reached

Some posts:

Fix the issue1

scutil --dns