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 …

Member Avatar
Member Avatar
+0 forum 2

Hello, I need to seperate multiple domains by having and not having A records. I have created a shell script like below, but it is not working, as the $? is same (0) for both the dig commands that have and not have A records. ************************* #!/bin/bash for dom in `cat /home/xxxx/domainslist.txt` do result= dig +noall +answer $dom if [ "$result" != '') ];then echo $dom >> /home/xxxx/havingA.txt else echo $dom >> /home/xxxx/havingNoA.txt fi done ************************** Please help me if there is any other way we can do this. Thank you.

Member Avatar
Member Avatar
+0 forum 2

The End.