0

Hi All,

I want to get all the IPs of the A RECORDS for mail.google.com.
The aim is to deny access to these IPs.
I learnt that mail.google.com has several IPs.

I did the following steps:
1. whois google.com
2. I got the following as its DOMAIN SERVERS:

ns3.google.com
ns2.google.com
ns1.google.com
ns4.google.com 

3.# dig @ns1.google.com a mail.google.com

;; ANSWER SECTION:
mail.google.com.    0    IN    CNAME    googlemail.l.google.com.
googlemail.l.google.com. 300    IN    A    74.125.233.86
googlemail.l.google.com. 300    IN    A    74.125.233.85

I thought this would give me all the IPs.

Currently, in an attempt to get the other IPs I am digging 4.2.2.2 & other free public dns servers..

someone please explain to me why

dig @ns1.google.com  a mail.google.com

does not give the full list & how other FreeDNS servers are getting different IPs?

3
Contributors
2
Replies
24
Views
4 Years
Discussion Span
Last Post by CimmerianX
1

Usually we use nslookup for this. The output of "nslookup google.com" returns this:

Server:     68.94.156.1
Address:    68.94.156.1#53

Non-authoritative answer:
Name:   google.com
Address: 173.194.46.64
Name:   google.com
Address: 173.194.46.71
Name:   google.com
Address: 173.194.46.68
Name:   google.com
Address: 173.194.46.73
Name:   google.com
Address: 173.194.46.65
Name:   google.com
Address: 173.194.46.70
Name:   google.com
Address: 173.194.46.69
Name:   google.com
Address: 173.194.46.72
Name:   google.com
Address: 173.194.46.67
Name:   google.com
Address: 173.194.46.78
Name:   google.com
Address: 173.194.46.66

Whereas, "nslookup mail.google.com" returns this:

Server:     68.94.156.1
Address:    68.94.156.1#53

Non-authoritative answer:
mail.google.com canonical name = googlemail.l.google.com.
Name:   googlemail.l.google.com
Address: 173.194.46.86
Name:   googlemail.l.google.com
Address: 173.194.46.85

The "Server:" and subsequent "Address:" block are specific to your ISP. These will vary. The stuff you need is after "Non-authoritative answer:".

FWIW, nslookup is the normally preferred way to look up DNS names and addresses. You can also use it for reverse name lookups by substituting an IP address, such as 173.194.46.85 for "mail.google.com", though often the name bears no resemblance to the original name, especially for google who swaps IP addresses on a second-by-second basis in order to defeat spammers and DDOS (distributed denial-of-service) attacks.

Edited by rubberman

Votes + Comments
Ok.Thanks.So its Specific to the ISP
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.