I have this problem too. Adding a domain didn't address it!
I'm running 384.12 on RT-AC86U:
As you can see, the local DNS query works:
admin@RT-AC86U:/tmp/home/root# dig
@localhost megs-phone
; <<>> DiG 9.14.4 <<>>
@localhost megs-phone
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11510
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;megs-phone. IN A
;; ANSWER SECTION:
megs-phone. 0 IN A 192.168.50.161
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Dec 31 14:53:52 AEDT 2019
;; MSG SIZE rcvd: 55
but a ping doesn't resolve.
admin@RT-AC86U:/tmp/home/root# ping megs-phone
ping: bad address 'megs-phone'
admin@RT-AC86U:/tmp/home/root#
other hosts on the LAN have no problems with hostnames, just the router. I have no DNS servers specified, no WINS server... all very standard.
Interestingly, my arp cache only has a hostname for my ISP, and nothing local!
Any ideas?
Thanks,
Jon