Anyone to the rescue? dig and nslookup work fine and return ip when I query hostname, but ping, ssh and others are able to connect only through ip. When I try using hostname always get "Unknown host"
luciano@MacBook-Air-de-Luciano ~ % dig srv1.grch.home
; <<>> DiG 9.10.6 <<>> srv1.grch.home
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31298
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;srv1.grch.home. IN A
;; ANSWER SECTION:
srv1.grch.home. 0 IN A 192.168.31.254
;; Query time: 15 msec
;; SERVER: 192.168.31.233#53(192.168.31.233)
;; WHEN: Sun Jun 25 16:50:51 -03 2023
;; MSG SIZE rcvd: 59
luciano@MacBook-Air-de-Luciano ~ % nslookup srv1.grch.home
Server: 192.168.31.233
Address: 192.168.31.233#53
Name: srv1.grch.home
Address: 192.168.31.254
luciano@MacBook-Air-de-Luciano ~ % ping -c 4 srv.grch.home
ping: cannot resolve srv.grch.home: Unknown host
luciano@MacBook-Air-de-Luciano ~ % ping -c 4 192.168.31.254
PING 192.168.31.254 (192.168.31.254): 56 data bytes
64 bytes from 192.168.31.254: icmp_seq=0 ttl=64 time=14.095 ms
64 bytes from 192.168.31.254: icmp_seq=1 ttl=64 time=12.171 ms
64 bytes from 192.168.31.254: icmp_seq=2 ttl=64 time=13.771 ms
64 bytes from 192.168.31.254: icmp_seq=3 ttl=64 time=7.437 ms
--- 192.168.31.254 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 7.437/11.868/14.095/2.660 ms
luciano@MacBook-Air-de-Luciano ~ %