Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -9,16 +9,18 @@ RUN mkdir -p /etc/dnsmasq.d
|
|
9 |
|
10 |
# Create dnsmasq.conf inline
|
11 |
RUN echo ' \
|
12 |
-
# Redirect
|
13 |
-
address
|
14 |
# Log DNS queries (optional) \n\
|
15 |
log-queries \n\
|
16 |
# Set DNSmasq to listen on all interfaces \n\
|
17 |
listen-address=0.0.0.0 \n\
|
|
|
|
|
18 |
' > /etc/dnsmasq.conf
|
19 |
|
20 |
# Expose port 7860 (the custom DNS port)
|
21 |
EXPOSE 7860/udp
|
22 |
|
23 |
-
# Command to start dnsmasq in the foreground
|
24 |
-
CMD ["dnsmasq", "-k"
|
|
|
9 |
|
10 |
# Create dnsmasq.conf inline
|
11 |
RUN echo ' \
|
12 |
+
# Redirect lehrastudio.com to the IP of 195.179.239.105 \n\
|
13 |
+
address=/lehrastudio.com/195.179.239.105 \n\
|
14 |
# Log DNS queries (optional) \n\
|
15 |
log-queries \n\
|
16 |
# Set DNSmasq to listen on all interfaces \n\
|
17 |
listen-address=0.0.0.0 \n\
|
18 |
+
# Specify the port for DNS queries \n\
|
19 |
+
port=7860 \n\
|
20 |
' > /etc/dnsmasq.conf
|
21 |
|
22 |
# Expose port 7860 (the custom DNS port)
|
23 |
EXPOSE 7860/udp
|
24 |
|
25 |
+
# Command to start dnsmasq in the foreground
|
26 |
+
CMD ["dnsmasq", "-k"]
|