# Path: openprovider/models.py
# class Nameserver(Model):
#     """
#     A nameserver with either an IPv4 or an IPv6 address.
# 
#     name (required)
#         URI or hostname of the nameserver
#     ip (required if no valid ip6)
#         IPv4 address of the nameserver
#     ip6 (required if no valid ip)
#         IPv6 address of the nameserver
#     """
# 
#     def __str__(self):
#         return str(self.name)


from openprovider.models import Nameserver

def nameservers():
    """Return the name servers for example.com."""
    return [
        Nameserver(name='a.iana-servers.net', ip='199.43.132.53', ip6='2001:500:8c::53'),

# Path: openprovider/models.py
# class Nameserver(Model):
#     """
#     A nameserver with either an IPv4 or an IPv6 address.
# 
#     name (required)
#         URI or hostname of the nameserver
#     ip (required if no valid ip6)
#         IPv4 address of the nameserver
#     ip6 (required if no valid ip)
#         IPv6 address of the nameserver
#     """
# 
#     def __str__(self):
#         return str(self.name)


# Path: tests/factories/nameserver.py
from openprovider.models import Nameserver


def nameservers():
    """Return the name servers for example.com."""
    return [
        Nameserver(name='a.iana-servers.net', ip='199.43.132.53', ip6='2001:500:8c::53'),

        Nameserver(name='b.iana-servers.net', ip='199.43.133.53', ip6='2001:500:8d::53'),