I am trying to use the code nslookup -q=mx gmail.com
to find the mail server of gmail.com, but its not working on my Ubuntu. I have tried it in windows and it works fine. I can't find out what the issue on Ubuntu. The command nslookup gmail.com
works though. Here are the responses of both commands;
Response for: nslookup gmail.com
thisisppn@thisisppn-HP-15-Notebook-PC:~$ nslookup gmail.com
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
Name: gmail.com
Address: 216.58.196.5
Response for: nslookup -q=mx gmail.com
thisisppn@thisisppn-HP-15-Notebook-PC:~$ nslookup -q=mx gmail.com
;; connection timed out; no servers could be reached
nslookup
and enter, then typeset type=mx
and enter, now just trygmail.com
. let me know whether that works? – AzkerM Nov 28 '15 at 12:17;; connection timed out; no servers could be reached
`
– Parthapratim Neog Nov 28 '15 at 12:19cat /etc/resolv.conf
&route -n
. – AzkerM Nov 28 '15 at 12:221.1
where it should be127.0.0.1
. Well, I might be wrong too. However, for the sake of testing,, can you dosudo nano /etc/resolv.conf
and comment the linenameserver 127.0.1.1
starting with#
.. also the same time addnameserver 8.8.8.8
then save withCTRL+O
and hit enter. Now remember! this is a temporary edit to see whether changing DNS responds to your query. FQDN refers to Fully qualified domain name which is commonly any domain names that not IP addresses. – AzkerM Nov 28 '15 at 12:34