Created
December 1, 2014 01:57
-
-
Save lookingcloudy/313357b9749e92b57308 to your computer and use it in GitHub Desktop.
Setup internal DNS server using DNSMasq on OMV server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is for a home network | |
# My OMV server is: 10.0.0.99 | |
# I kept DHCP running on my router for simplicity | |
# Install dnsmasq | |
apt-get install dnsmasq | |
# Edit the configuration file | |
nano /etc/dnsmasq.conf | |
# append the following to the end - change the "home.mydyndns.org" to the name you want to provide internally | |
# add additional hosts as additional "address" lines in this configuration | |
address=/home.mydyndns.org/10.0.0.99 | |
resolv-file=/etc/resolv.dnsmasq | |
listen-address=10.0.0.99 | |
listen-address=127.0.0.1 | |
bind-interfaces | |
# create the following file | |
nano /etc/resolv.dnsmasq | |
# add the following lines | |
# note these are the DNS servers for OPenDNS. If you are not using openDNS | |
# add the DNS address of your ISP | |
208.67.222.222 | |
208.67.220.220 | |
# Configurate the DNS setting on your router to 10.0.0.99 in this case | |
# This will tell the clients on your network to use your newly creaet DNS server for resolving | |
# names first. This allows you to use the same name both inside and outside your network. | |
# When inside your network, your DNS server will serve up your private IP address. When outside | |
# your network, the public DNS servers will continue to work as expected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!!