dig google.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6346
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 54 IN A 172.217.31.46
;; Query time: 21 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Sat May 19 15:13:20 +0630 2018
;; MSG SIZE rcvd: 55
------------------------------------------------------------------------------
ping google.com
PING google.com (172.217.31.46) 56(84) bytes of data.
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C
--- google.com ping statistics ---
765 packets transmitted, 0 received, 100% packet loss, time 782337ms
------------------------------------------------------------------------------
resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
search myanmarnet.com
--------------------------------------------------------------------------
I also tried the way you mentioned the above. It does not work for me. Thanks Bro.