Click to See Complete Forum and Search --> : DHCP Server Question(Ubuntu v7.10 & ISC dhcpd)


kj6eo
11-10-2008, 08:08 PM
Hello and thanks for reading my post :D

I'm running dhcpd3 for Debian with Ubuntu 7.10. My DHCP server runs well but it doesn't report any DNS server information when polled by my Windoze machines. Here is a copy of my "dhcpd.conf" file:

# Sensitive Information Omitted

#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-domainname "kj6eo.com";
ddns-update-style interim;
ddns-updates on;

# option definitions common to all supported networks...
option domain-name "private.com";
option domain-name-servers 192.168.1.1;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option netbios-dd-server 192.168.1.1;
option netbios-node-type 8;
default-lease-time 86400;
max-lease-time 604800;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

#subnet 192.168.1.0 netmask 255.255.255.0 {
#}

# This is a very basic subnet declaration.

#subnet 192.168.1.0 netmask 255.255.255.0 {
#range 192.168.1.10 192.168.1.50;
#option routers 192.168.1.3;
#}

# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.

#subnet 10.254.239.32 netmask 255.255.255.224 {
# range dynamic-bootp 10.254.239.40 10.254.239.60;
# option broadcast-address 10.254.239.31;
# option routers rtr-239-32-1.example.org;
#}

# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.50;
option domain-name-servers ns1.private.com;
option domain-name "private.com";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}

# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.

#host Office {
# hardware ethernet 00:04:5A:74:C2:49;
# filename "vmunix.passacaglia";
# server-name "toccata.fugue.com";
#}

# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.

# HOSTS OMITTED

# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.

#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}

#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}


Your expert advice and guidance are always appreciated :D

Regards,

Bill - KJ6EO

bwkaz
11-11-2008, 12:00 AM
BTW: It makes it much easier to quote your configuration if you use code tags instead of quote tags. Quoting a post with a quote in it removes the inner quote. That makes it a problem if I want to highlight part of your configuration. So here's the version of the post after I've copied and pasted the relevant bits manually:

# option definitions common to all supported networks...
# ...
option domain-name-servers 192.168.1.1;
# ...

# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.50;
option domain-name-servers ns1.private.com;
# ...
} Note that you have the same option specified twice -- once globally, and once inside the subnet. This is only a good idea if you really do need to override it inside the subnet.

Beyond that, though, the contents of the domain-name-servers option MUST be an IP address, or set of IP addresses. Without a DNS server, there is no way for the client to resolve ns1.private.com. :)

Either comment out all the per-subnet options (if they really are duplicates), or comment out the global options and fix the per-subnet domain-name-servers one. (Edit: Unless you need both the global and per-subnet options; e.g. if you have more than one subnet, and the others all use the global option. Then you'd only need to fix the per-subnet option to be an IP address. Also, note that this will fail with any OS on the client computers on this subnet, not just Windows.)

kj6eo
11-16-2008, 01:15 PM
Hello Kaz -

I wanted to come back to thank you for your expert advice regarding my post :D As always "You are the MAN". I commented out the global directives and fixed the local ones. Everything is working fine now!

Sorry it took me so long to get back to you. I'm on call 24/7 here in the LA
area. I repair "Linear Accelerators" used to give radiation treatments to cancer patients. I can really get busy sometimes ... what is left over is taken up by our two foster children (girl 3 and her brother 1).

I have another issue I need help with. I'm having an intermittent FSCK error when my Ubuntu v7.10 server boots up sometimes.

Should I just go ahead and post it as a new thread? Or would you like to take a shot at it?

Regards,

Bill - KJ6EO

bwkaz
11-16-2008, 11:34 PM
New thread. I'll still read it, and it makes more sense for others if each different issue is in its own thread. :)