# NSD issue when ipv6 is disabled

**URL:** <https://discourse.mailinabox.email/t/nsd-issue-when-ipv6-is-disabled/10873>\
**Category:** Improvements\
**Created:** [September 21, 2023, 11:53am UTC](https://discourse.mailinabox.email/t/nsd-issue-when-ipv6-is-disabled/10873 "2023-09-21T11:53:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmonts](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@fmonts](https://discourse.mailinabox.email/u/fmonts)\
**Post date:** [September 21, 2023, 11:53am UTC](https://discourse.mailinabox.email/t/nsd-issue-when-ipv6-is-disabled/10873/1 "2023-09-21T11:53:28Z")

</div>

There’s an issue after disabling IPv6, NSD won’t start because it tries to bind on `::1`:

> Sep 21 11:39:36 mail…com nsd[3091432]: [2023-09-21 11:39:36.979] nsd[3091432]: notice: nsd starting (NSD 4.3.9)  
> Sep 21 11:39:36 mail…com nsd[3091432]: [2023-09-21 11:39:36.983] nsd[3091432]: error: can’t bind tcp socket: Cannot assign requested address  
> Sep 21 11:39:36 mail…com nsd[3091432]: [2023-09-21 11:39:36.984] nsd[3091432]: error: cannot open control interface ::1 8952  
> Sep 21 11:39:36 mail…com nsd[3091432]: [2023-09-21 11:39:36.984] nsd[3091432]: error: could not open remote control port  
> Sep 21 11:39:36 mail…com nsd[3091432]: [2023-09-21 11:39:36.984] nsd[3091432]: error: could not perform remote control setup  
> Sep 21 11:39:36 mail…com systemd[1]: nsd.service: Main process exited, code=exited, status=1/FAILURE

This will also cause “Internal server error” when adding/removing mailboxes from the admin panel.

To solve this, It’s needed to add in nsd.conf the instruction to bind on ipv4 instead:

```auto
remote-control:
    control-enable: yes
    control-interface: 127.0.0.1
    control-port: 8952

```

Unfortunately this file is overridden by the MIAB setup, so it would be useful to have this done automatically when ipv4-only. (Or disable this remote-control if it’s not a needed feature)

---

<div class="post-metadata">

**Author:** ![alento](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/alento/32/1371_2.png) [@alento](https://discourse.mailinabox.email/u/alento)\
**Post date:** [September 22, 2023, 3:53pm UTC](https://discourse.mailinabox.email/t/nsd-issue-when-ipv6-is-disabled/10873/2 "2023-09-22T15:53:55Z")

</div>

> [@fmonts](#):
>
> Unfortunately this file is overridden by the MIAB setup, so it would be useful to have this done automatically when ipv4-only. (Or disable this remote-control if it’s not a needed feature)

Or perhaps have IPv6 for your VPS? In 2023, any reasonable provider will provide IPv6.

If you send/receive email from Google, they will thank you as they prefer using IPv6.

---

<div class="post-metadata">

**Author:** ![fmonts](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@fmonts](https://discourse.mailinabox.email/u/fmonts)\
**Post date:** [October 30, 2023, 2:45pm UTC](https://discourse.mailinabox.email/t/nsd-issue-when-ipv6-is-disabled/10873/3 "2023-10-30T14:45:58Z")

</div>

in my case this was the issue I had with ipv6: [Setup guide suggests disabling ipv6, setup abends at dovecot - #7 by fmonts](https://discourse.mailinabox.email/t/setup-guide-suggests-disabling-ipv6-setup-abends-at-dovecot/10857/7)

but unfortunately there are more issues when disabling it, NSD is not the only one, also nginx has many `listen` directives on [::]…

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [November 21, 2023, 11:54am UTC](https://discourse.mailinabox.email/t/nsd-issue-when-ipv6-is-disabled/10873/4 "2023-11-21T11:54:19Z")

</div>

This topic was automatically closed after 61 days. New replies are no longer allowed.
