IPAM DNSsync not seem to be working #496
-
I have netbox NetBox Community v4.1.7 with Netbox DNS 1.1.6. I did rebuild_dnssync DNSsync I'm doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
You didn't mention the most important item: Did you create prefixes for your IP addresses and assign the prefixes you want records to be created for to the view(s) that your zones are assigned to? This is all in the documentation. |
Beta Was this translation helpful? Give feedback.
-
By the way, if you set up your prefixes and views correctly there is no need to run anything apart from |
Beta Was this translation helpful? Give feedback.
-
And - don't add the address records manually, having that done automatically is the whole point of DNSsync :-) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks, that explains the problem you're seeing. The issue with existing records exists both ways. If NetBox DNS doesn't permit creating duplicate records (which is the default) you can't enable DNSsync because the records it would create are already there, if it would (which you can allow by setting the config variable There is, however, a third way. You can set |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@Flabenelli All is not lost :-) If you're not that interested in automatically generating the records for IP addresses, the DNSsync feature might not be the right solution for your use case. That feature was created because many users wanted to have address record created for them when they added IP addresses, not vice versa. If you have a sensible way of mapping IP addresses to DNS records (which is surprisingly difficult to solve for the generic case), you might be better off with a custom script that does exactly that - look through all address records, find matching IP addresses in IPAM and then set "DNS name". There is an example script Actually, you could even extend it to convert your existing DNS records to managed DNSsync records with a couple of tweaks. But that's really a special use case and probably won't make it into a feature - I'll think about it when I have the time, but probably it's too far from the generic use case. |
Beta Was this translation helpful? Give feedback.
It works the other way around :-)
You don't add a record manually. You link the prefix to the DNS view and fill in the "DNS Name" field for the IP address, and then the DNS record(s) will be created automatically as managed records.