Skip to content

Conversation

@dmckeone
Copy link

Add is_ipv6_address validation to pfesnsible.core.pfsense_dns_resolver for hosts and domainoverrides

Even though the documentation indicates that ['hosts']['ip'] ['domainoverrides']['ip'] allows for IPv6, the code validation does not. Simply permit both IPv4 and IPv6, as per the documentation:

Documentation (commit as of today) stating IPv6 is allowed:

Add is_ipv6_address validation to dns_resolver hosts and domainoverrides

Even though the documentation indicates that `['hosts']['ip']` `['domainoverrides']['ip']` allows for IPv6, the code validation does not.   Simply permit both IPv4 and IPv6, as per the documentation:

https://github.com/pfsensible/core/blob/master/plugins/modules/pfsense_dns_resolver.py#L123

https://github.com/pfsensible/core/blob/master/plugins/modules/pfsense_dns_resolver.py#L161
@dmckeone dmckeone changed the title Update pfsense_dns_resolver.py Add is_ipv6_address validation to pfesnsible.core.pfsense_dns_resolver for hosts and domainoverrides Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant