Closed mikeb93 closed 4 years ago
Hi @forkd I just added an argument for the prefix addition. It's working in my environment but please check if the implementation is ok like this.
Let me know if you still want some changes. Thanks! :)
Hi, must i then use -p 24 for the right prefix or only -p and then the prefix is used by the network above?
Thanks
Hi, -p will be enough as it will search for the parent prefix and add the correct length
as mentioned in #8
netbox@ipam:/opt/netbox-scanner/netbox-scanner/netbox-scanner-master/netbox-scanner$ sudo python3 nbscanner
Traceback (most recent call last):
File "nbscanner", line 75, in
Hi,
Question: How can I get the DNS_Name field be filled? Made all the changes, IP Prefix worked, but not the DNS_Name Resolution
Hi sorry for the late reply. I think that’s being handled by nmap. It’s been some time since I’ve fiddled around with this script but as far as I can remember nmap should actually do a reverse lookup and this data should be used as dns_name.
I could be totally wrong though. I don’t remember that my PR has anything to do with dns_name though? Again, long time, am on mobile so I can’t check the code now.
Just updated the whole repository for v2. This pull-request is not compatible anymore.
This will add the prefix when adding a IP to netbox which will put the IP addresses into the correct prefix. Before, IP addresses would not get added into the correct prefix due to the /32 subnet mask.