I have DNSMASQ configured to run on a CentOS 4 server. It is acting as both the DNS and DHCP server. All is working fine, except that when I connect another linux machine to the network, the host name on the client machine doesn't show up in the dnsmasq.leases file. Instead I get:

   1166770800 00:14:22:9b:10:47 172.16.41.40 * *

Because of the above, I cannot ping the linux machine by machine name. When I plug a Windows XP machine into the network I get correct hostname resolution

   1166770990 00:16:17:a8:c4:23 172.16.189.188 pommel 01:00:16:17:a8:c4:23

In this case, I can ping the machine named "pommel". The linux machines host file is:

   127.0.0.1 MYLINUXBOX    localhost       localhost.localdomain

Any advice would be greatly appreciated. Below is the settings in my dnsmasq.conf file.

   dnsmasq.conf
   domain-needed
   bogus-priv
   interface=eth0
   expand-hosts
   domain=mydomain.com
   dhcp-range=172.16.0.0,172.16.255.255,168h
   dhcp-option=1,255.255.0.0
   dhcp-option=3,172.16.0.1
   dhcp-option=6,172.16.0.1
   dhcp-option=28,172.16.255.255
   dhcp-lease-max=500
   dhcp-leasefile=/var/lib/misc/dnsmasq.leases
   dhcp-authoritative
   log-queries

--

*Jason Baker
*/IT Coordinator/


*Glastender Inc.*
5400 North Michigan Road
Saginaw, Michigan 48604 USA
800.748.0423
Phone: 989.752.4275 ext. 228
Fax: 989.752.4444
www.glastender.com <http://www.glastender.com>

Reply via email to