<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 1, 2021 at 10:29 AM Christian Link <<a href="mailto:chris.link3000@gmail.com">chris.link3000@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello everyone,<br><br>I am using the BIND Docker image in a Docker Compose setup. In this setup I would like to disable ipv4 and start the named daemon with the option "-4".<br></div></blockquote><div><br></div><div>"-4" means "use IPv4 only"</div><div>Perhaps you want "-6" to use IPv6 only ?</div><div><br></div><div>-- </div><div>Bob Harold</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>Normally you can do this via the file /etc/default/named (In the options variable). Unfortunately, this file is ignored. I also tried it with the "Environment" parameter in docker-compose.yml, but this does not work either.<br><br>What possibility do I have to give options to the named daemon without redefining the start command completely (e.g. via "command")?<br><br>This is my docker-compose.yml<br><br><br>version: '3.8'<br>services:<br>  bind:<br>    image: internetsystemsconsortium/bind9:9.16<br>    container_name: bind<br>    volumes:<br>      - ./etc/bind:/etc/bind<br>      - ./etc/default/named:/etc/default/named<br>      - ./var/cache/bind:/var/cache/bind<br>      - ./var/lib/bind:/var/lib/bind<br>      - ./var/log:/var/log<br>    ports:<br>      - 53:53/udp<br>      - 53:53/tcp<br>      - 127.0.0.1:953:953/tcp<br>    restart: always<br></div>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div></div>