[Dnsmasq-discuss] dnsmasq problems under Ubuntu server 16.04
paul.marwick at gmail.com
Mon May 22 17:14:14 BST 2017
I've used dnsmasq as a local network DHCP/DNS server for several years,
running in a small Slackware based server. After a few initial set up
problems, it worked flawlessly for years.
Recently I decided that I had to rebuild the server. It was running out
of storage space and I was getting bored keeping Slackware updated. I
decided on Ubuntu server as an easier option to keep up to date. To
test, I installed Ubuntu server on a test box and set that up. Hit a
problem initially due to the use of resolvconf, but eventually got it
I've just finished rebuilding the original server. When I installed
dnsmasq, I used essentially the same setup files that I'd used on the
test server. Unplugged the network connection to the test box, found
that the local network was getting DHCP and DNS. However, when I
attempted to SSH into the machine, I could not do so using the server
name. I've got SSH access controlled by key pairs and that failed. On
the other hand. if I SSH to the IP, the connection goes straight through.
Running an nmap scan from the new server suggests that the mahcine
doesn't know its own name, which would explain the failure for SSH
connect under the name.
I'm probably missing something simple, but I'd be grateful for any
suggestions as to what is needed to correct the problem. I suspect its
still down to the use of resolvconf, but I don't want to change too much
in the basic Ubuntu setup, so I'd love to know what I've missed.
/etc/dnsmasq is as follows:
# Configuration file for dnsmasq.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface enp2s0 inet static
dns-nameservers 220.127.116.11 18.104.22.168 192.168.1.254
I also configured the following nameservers to the /etc/resolv.conf.d/base:
I used essentially the same setup for the test server, and don't have
the same problem with it, so I'd be grateful for any suggestions....
More information about the Dnsmasq-discuss