---
title: "Stub Member Name Server Group"
canonical: "https://docs.infoblox.com/space/niosmodulesansible/916095026/Stub%20Member%20Name%20Server%20Group"
format: markdown
---
Use the `nios_nsgroup_stubmember` module to create, update, or remove a name server group object of type ‘Stub Member’ from NIOS. A stub member name server group is a collection of one or more Grid members for stub zones. For more information about stub member name server groups, see the *Using Name Server Groups* topic in the *[Infoblox NIOS Documentation](https://docs.infoblox.com/)*.

The following table describes the parameters you can define in the `nios_nsgroup_stubmember` module:

| **Parameter** | **Required/Optional** | **Description** |
| --- | --- | --- |
| `name` | Required | Specifies the name of the NIOS name server group consisting of stub members that needs to be managed. |
| `stub_members` | Required | Specifies the list of stub members to be used.  
Configure the following subparameter for each member in the list:<br>`name` (required): Specifies the name of the stub member. |
| `extattrs` | Optional | Specifies extensible attributes for the DNS name server member object. |
| `state` | Optional | Specifies the state of the DNS name server member instance on the NIOS server.  
Set one of the following values:<br>- `present` (default): Creates or updates the group.
- `absent`: Removes the group. |
| `comment` | Optional | Describes the DNS name server member object. |
| `provider` | Required | Defines the details of the connection:<br>- `host`: The DNS host name or IP address to connect to the remote instance of NIOS.
- `username`: The user name to use for authenticating the connection to the remote instance.
- `password`: The password to use for authenticating the connection to the remote instance.<br>For information on additional fields you can define, see the list of subparameters in the *[NIOS Modules for Ansible Collections](https://infoblox-docs.atlassian.net/wiki/spaces/niosmodulesansible/pages/44525470)* topic. |
| `connection` | Required | The `nios_nsgroup_stubmember` module must be run locally. |

## Examples

`name: create infoblox nameserver stub member group`  
`infoblox.nios_modules.nios_nsgroup_stubmember:`  
`  name: my-stubmember-group`  
`  comment: "this is a stub member nameserver group"`  
`  stub_members:`  
`    - name: member.localdomain`  
`  state: present`  
`  provider:`  
`    host: <nios_hostname_or_hostip>`  
`    username: <nios_username>`  
`    password: <nios_password>`  
`connection: local`