This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# WTFPL http://www.wtfpl.net/txt/copying/ | |
import ipaddress | |
import sys | |
for range_ in sys.argv[1:]: | |
try: | |
print(*ipaddress.ip_network(range_, strict=False).hosts(), sep='\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
gather_facts: no | |
tasks: | |
- name: A & AAAA | |
debug: | |
msg: "{{ lookup('community.general.dig', 'sinquin.eu./A', 'sinquin.eu./AAAA') }}" | |
- name: A on multiple hosts | |
debug: | |
msg: "{{ lookup('community.general.dig', 'sinquin.eu.', 'aquaray.com') }}" | |
- name: AAAA with option |