FROM alpine:latest
MAINTAINER "ben kristinsson <ben@sudo.is>"
EXPOSE 53/udp
RUN apk add --update --no-cache socat
ENV BIND="0.0.0.0"
ENV PORT="5353"
USER nobody
ENTRYPOINT ["socat"]
CMD ["UDP4-RECVFROM:${PORT},fork,bind=${BIND}", "UDP4-SENDTO:127.0.0.11:53"]