Skip to content

Add dnsmasq as an optional container#8

Open
chregu wants to merge 1 commit into
legacyfrom
add-dnsmasq
Open

Add dnsmasq as an optional container#8
chregu wants to merge 1 commit into
legacyfrom
add-dnsmasq

Conversation

@chregu

@chregu chregu commented Aug 21, 2019

Copy link
Copy Markdown
Member

Up for discussion on the details

Not sure, if the add-host.sh is too much for this project, or if this should go to pontsun-cli.

@chregu chregu changed the title add dnsmasq as an optional container Add dnsmasq as an optional container Aug 21, 2019

@Aerzas Aerzas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the proposition that's a good idea. I've added a few comment if you mind having a look.

Comment thread build/dnsmasq/Dockerfile

ADD dnsmasq.conf /etc/

EXPOSE 53 53/udp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably avoid creating an image with a root user just in case.

#log all dns queries
log-queries
#dont use hosts nameservers
no-resolv

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider no-hosts also ?

Comment thread scripts/add-host.sh
@@ -0,0 +1,51 @@
#!/usr/bin/env bash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this part should added to pontsun-cli rather than here ?

Comment thread build/dnsmasq/Dockerfile
@@ -0,0 +1,8 @@
FROM alpine:edge

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this should not be part of this repo but available as a global image on the Liip docker registry.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where would you put the Dockerfile then?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in a dedicated repo so it can be managed in parallel of Pontsun. But this can be later of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants