when dnsmasq is started, it does not provide ip addresses, but it was configured properly - i think (config is attached). dnsmasq is listening to requests, sheissi ~ # netstat --program --numeric --all --inet | grep dnsmasq tcp 0 0 192.168.0.1:53 0.0.0.0:* LISTEN 8853/dnsmasq tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 8853/dnsmasq udp 0 0 0.0.0.0:32771 0.0.0.0:* 8853/dnsmasq udp 0 0 192.168.0.1:53 0.0.0.0:* 8853/dnsmasq udp 0 0 127.0.0.1:53 0.0.0.0:* 8853/dnsmasq udp 0 0 0.0.0.0:67 0.0.0.0:* 8853/dnsmasq but both dhclient and dhcpcd get a timeout when trying to get an ip address. in the daemon.log there is no sign that a dhcp-client tries to get an address (but dhcpd does provide addresses, so the clients just work fine). Aug 7 13:35:11 sheissi dnsmasq[8853]: started, version 2.39 cachesize 150 Aug 7 13:35:11 sheissi dnsmasq[8853]: compile time options: IPv6 GNU-getopt no-ISC-leasefile no-DBus no-I18N no-TFTP Aug 7 13:35:11 sheissi dnsmasq[8853]: DHCP, IP range 192.168.0.50 -- 192.168.0.150, lease time 12h Aug 7 13:35:11 sheissi dnsmasq[8853]: reading /etc/resolv.conf Aug 7 13:35:11 sheissi dnsmasq[8853]: using nameserver 212.33.32.160#53 Aug 7 13:35:11 sheissi dnsmasq[8853]: using nameserver 212.33.55.5#53 Aug 7 13:35:11 sheissi dnsmasq[8853]: read /etc/hosts - 8 addresses emerge --info: Portage 2.1.3.3 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6-r0, 2.6.22-gentoo-r2 i686) ================================================================= System uname: 2.6.22-gentoo-r2 i686 VIA Nehemiah Gentoo Base System release 1.12.10 Timestamp of tree: Sat, 04 Aug 2007 08:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.3.6-r2, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /var/bind /var/run/dspam" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cli-php4/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bitmap-fonts cli cracklib crypt ctype cups dba dri fasttrack foomaticdb fortran gd gdbm gnutella gpm iconv isdnlog libg++ midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl png ppds pppd python readline reflection samba session slang spl ssl tcpd truetype-fonts type1-fonts unicode usb x86 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en_GB" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Created attachment 127166 [details] dnsmasq.conf
Do you have a firewall on the box? You need to allow DHCP packets through your firewall.
you're right! in fact my firewall was blocking the DHCPDISCOVER packets. i didn't realize that because dhcpd just worked fine! does dhcpd modify the iptables?
dhcpd bypasses the firewall, while dnsmasq does not