- netbox_dns - plugin https://github.com/peteeckel/netbox-plugin-dns
- ip_address - custom field | type multiselect object IP Address
- dnspython - python lib
Object: IP address Actions: Created
DNS Record
-
Get DNS fqdn[:1]
-
Make dns resolve of input
DNS Record -
Get All IP address that returned and creat
resolved_ip_list[] -
For every
IP Addressinresolved_ip_list[]
3.1 Chek is this IP Address already exist in Netbox
3.1.1 No: Create IP Address obejct
3.1.1.1 Return IP Address object id
3.1.2 Yes: Get IP Address object id
3.2 Create ids_list[] of IP Address
- Update inputed
DNS Recordattributecustom fields: [ { 'ip_address': ids_list[] }]