diff --git a/netbox/dns/forms.py b/netbox/dns/forms.py index 2b2ded7c9..6ac1f3c2a 100644 --- a/netbox/dns/forms.py +++ b/netbox/dns/forms.py @@ -29,6 +29,16 @@ class ZoneForm(forms.ModelForm, BootstrapMixin): 'soa_expire': 'SOA Expire', 'soa_minimum': 'SOA Minimum', } + help_texts = { + 'ttl': "Time to live, in seconds", + 'soa_name': "The primary name server for the domain, @ for origin", + 'soa_contact': "The responsible party for the domain (e.g. ns.foo.net. noc.foo.net.)", + 'soa_serial': "Serial string in SOA record (e.g. 2016071401)", + 'soa_refresh': "Refresh time, in seconds", + 'soa_retry': "Retry time, in seconds", + 'soa_expire': "Expire time, in seconds", + 'soa_minimum': "Negative result TTL, in seconds" + } class ZoneFromCSVForm(forms.ModelForm): @@ -69,6 +79,14 @@ class RecordForm(forms.ModelForm, BootstrapMixin): labels = { 'record_type': 'Type', } + help_texts = { + 'name': 'Host name, @ for origin (e.g. www)', + 'record_type': 'Record type (e.g. MX or AAAA)', + 'priority': 'Priority level (e.g. 10)', + 'zone': 'Zone the record belongs to', + 'address': 'IP address if value is an IP address, in AAAA records for instance', + 'value': 'Text value else, in CNAME records for instance' + } class RecordFromCSVForm(forms.ModelForm): diff --git a/netbox/templates/dns/record_import.html b/netbox/templates/dns/record_import.html index bb39e3e4f..013ac4a37 100644 --- a/netbox/templates/dns/record_import.html +++ b/netbox/templates/dns/record_import.html @@ -30,32 +30,32 @@ Zone name - Name of zone + Name of the zone the record belongs to foo.net Name - Name of record, @ for origin + Host name, @ for origin www Type - Type of record + Record type AAAA Priority - Priority level of record (optional) + Priority level (optional) 30 Address - IP address value + IP address if value is an IP address, in AAAA records for instance 192.168.1.110/16 Value - Text value, for CNAME records for instance + Text value else, in CNAME records for instance foo.net diff --git a/netbox/templates/dns/zone_import.html b/netbox/templates/dns/zone_import.html index 5457144cb..7900743e5 100644 --- a/netbox/templates/dns/zone_import.html +++ b/netbox/templates/dns/zone_import.html @@ -40,37 +40,37 @@ SOA Name - SOA name field, @ for origin + The primary name server for the domain, @ for origin @ SOA Contact - SOA contact field + The responsible party for the domain ns.foo.net. noc.foo.net. SOA Serial - Serial code of zone (string) + Serial string in SOA record 2016070401 SOA Refresh - SOA refresh time field, in seconds + Refresh time, in seconds 3600 SOA Retry - SOA retry time field, in seconds + Retry time, in seconds 3600 SOA Expire - SOA expire time field, in seconds + Expire time, in seconds 604800 SOA Minimum - SOA minimum time field, in seconds + Negative result TTL, in seconds 1800