Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101498 - dnsmasq doesn't provide ip addresses when dhcp is turned on
Summary: dnsmasq doesn't provide ip addresses when dhcp is turned on
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jon Portnoy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-05 17:57 UTC by Gabriel Devenyi
Modified: 2005-08-23 15:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Config File (dnsmasq.conf,13.68 KB, application/octet-stream)
2005-08-12 07:58 UTC, Gabriel Devenyi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Devenyi 2005-08-05 17:57:51 UTC
I set the following in dnsmasq.conf which according to the documentation, 
enables the dhcp server in dnsmasq, however it does not provide dhcp 
addresses, I have confirmed that the system is otherwise setup correctly as if 
I run dhcp instead, addresses are provided.. 
 
INFO 
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.5-r0, 2.6.12-ck4 i686) 
================================================================= 
System uname: 2.6.12-ck4 i686 AMD Athlon(tm) processor 
Gentoo Base System version 1.6.13 
ccache version 2.3 [disabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.11 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ 
ftp://gentoo.mirrored.ca/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" 
USE="x86 3dnow 3dnowext 4kstacks acpi bash-completion berkdb bzlib ccache cdr 
ck-server crypt curl dhcp eds emboss ftp gdbm gstreamer idea imap libg++ 
libwww mime mmap mmx mmxext ncurses nls nomac nptl nptlonly ogg pam perl 
python readline sasl sdl sftplogging shaper smime softquota spell ssl tcpd 
threads unicode userlocales vorbis xml xml2 zlib userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-06 01:55:33 UTC
(In reply to comment #0)
> I set the following in dnsmasq.conf 

You set the following - hmm, I cannot see anything following here.
Comment 2 Gabriel Devenyi 2005-08-06 08:19:06 UTC
I set *this* in dnsmasq.conf... I always had trouble with fridays.... 
 
dhcp-range=192.168.1.50,192.168.1.150,12h   
Comment 3 Gabriel Devenyi 2005-08-10 07:11:57 UTC
So whats going on here... Is this a configuration issue or a broken dnsmasq
Comment 4 Jon Portnoy (RETIRED) gentoo-dev 2005-08-10 16:06:09 UTC
What version of dnsmasq? Also, can you please attach your dnsmasq.conf?
Comment 5 Gabriel Devenyi 2005-08-12 07:58:13 UTC
Created attachment 65761 [details]
Config File

Version 2.22 configuration file, only slightly modified
Comment 6 Gabriel Devenyi 2005-08-22 10:06:38 UTC
Is this a gentoo bug or should I be going upstream?
Comment 7 Jon Portnoy (RETIRED) gentoo-dev 2005-08-22 14:52:18 UTC
I don't see any uncommented dhcp-range entries in the attached dnsmasq.conf.
Comment 8 Gabriel Devenyi 2005-08-22 15:11:59 UTC
Line above is the command I used, as I currently am running dnsmasq and dhcpd 
so the line is commented until I can nail down the issue. Line 110 is where I 
uncommented the above. 
Comment 9 Jon Portnoy (RETIRED) gentoo-dev 2005-08-22 15:56:45 UTC
One last question.. with the dhcp server enabled in dnsmasq what's the output of
`netstat -pan --inet | grep dnsmasq` ?

(I don't use the dnsmasq dhcp server personally and can only do limited testing
here. CC'ing tigger, I seem to recall he was using dnsmasq's dhcp at some point)
Comment 10 Gabriel Devenyi 2005-08-22 16:24:58 UTC
tcp 0   0   0.0.0.0:53     0.0.0.0:* LISTEN 24449/dnsmasq 
udp 0   0   0.0.0.0:33452  0.0.0.0:*        24449/dnsmasq 
udp 0   0   0.0.0.0:53     0.0.0.0:*        24449/dnsmasq 
udp 0   0   0.0.0.0:67     0.0.0.0:*        24449/dnsmasq 
raw 0   0   0.0.0.0:1      0.0.0.0:*   7    24449/dnsmasq 
 
(Slightly edited to make it smaller) 
Comment 11 Jon Portnoy (RETIRED) gentoo-dev 2005-08-22 16:59:42 UTC
That looks correct. Is this the only DHCP server on the network? Tried it
without dhcp-authoritative?
Comment 12 Gabriel Devenyi 2005-08-22 17:16:41 UTC
Removed dhcp-authoratative, no change, as far as other servers, definitely 
not, as this is my network and I know all equipment connected to it. 
Comment 13 Jon Portnoy (RETIRED) gentoo-dev 2005-08-23 02:55:21 UTC
Config looks OK, netstat looks OK, no other similar reported issues with 2.22...
I'm afraid I'm going to have to send this one upstream and see what Simon has to
say about it.

http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Comment 14 Gabriel Devenyi 2005-08-23 04:37:06 UTC
Am you sending it upstream, or am I?
Comment 15 Jon Portnoy (RETIRED) gentoo-dev 2005-08-23 15:19:03 UTC
Probably be easier for both you and upstream if you did. I suggest mailing the
dnsmasq mailing list and referencing this bug. Simon tends to be quite helpful
and responsive.