How to do DNS lookup of an IP range using shell script
when I do dig -x and provide an ip i get reverser DNS for the respective ip. However if I give range either CIDRs or ip range from & to thats a long manual process, which I want to get it working using shell script.
I tried
dig -x 1x.xx.xx.xx
;; ANSWER SECTION:
1x.xx.xx.xx.foo.addr. port IN PTR
I want to see reverse DNS of all ips falling in that range when I pass either 1x.xx.xx.xx/24 or 1x.xx.xx.xx - 1x.xx.xx.xxx