Dear Busybox users and Developers,

I am happily using busybox 1.13.3 on MIPS embedded system.

I came currently to the point to use busybox dhcpd and dnsd.

I start first dhcpd:

MIPS# udhcpd /var/udhcpd.conf

where /var/udhcpd.conf contains:

interface eth0
start 192.168.2.100
end 192.168.2.200
opt subnet 255.255.255.0
opt router 192.168.2.1
opt dns 192.168.2.1
option lease 946080000

#---------

Next I start the dnsd

MIPS# /usr/sbin/dnsd -c /var/dnsd.conf -i 192.168.2.1

where /var/dnsd.conf contains:
thebox 192.168.2.1

Next I connect the node which is configured to get the IP address from 
the DHCP server.
 
Just after I type:
MIPS# dumpleases -a
MIPS# Mac Address       IP-Address      Expires at
MIPS# 00:03:75:7a:24:de 192.168.2.100   Sat Dec 25 01:00:00 1999
MIPS# date
MIPS# Tue Jul  7 13:54:50 CEST 2009

I get the IP address as expected.

The Expiration time is however wrong but it probably does not matter so much.

When I refer to my node (192.168.2.100) by name
I get:
MIPS# ping MY-TEST-BOX
MIPS# ping: bad address 'MY-TEST-BOX'
MIPS# ping 192.168.2.100
MIPS# 192.168.2.100 is alive!

The name is sent by the node connected with DHCP option 12.
The config file /etc/resolv.conf contains:

nameserver 192.168.2.1

Does anybody have an idea how to configure properly the DNS together with DHCP 
servers.

Thank you in advance for any hint

Mirek





_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to