public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* PROBLEMS WITH DNS
@ 2007-06-08 17:23 Eduardo Franceschini
  2007-06-08 17:33 ` Nishanth Menon
  2007-06-08 17:39 ` Vadim Lebedev
  0 siblings, 2 replies; 10+ messages in thread
From: Eduardo Franceschini @ 2007-06-08 17:23 UTC (permalink / raw)
  To: linux-omap-open-source, linux-arm-kernel

bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/mtdblock4
mem=30M

and when I boot the omap, I have

Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.107
IP-Config: Complete:
      device=eth0, addr=192.168.1.107, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.107, domain=, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

I can get an IP, but when I go to /etc/resolv.conf , I don't have an IP for
DNS server... somebody know what to do?

thanks!

Eduardo

-- 
Eduardo Montenegro Franceschini
Engenharia de Computação - UNICAMP
fone: +55-19-9778-8998
e-mail: edumontenegro@gmail.com
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 17:23 PROBLEMS WITH DNS Eduardo Franceschini
@ 2007-06-08 17:33 ` Nishanth Menon
  2007-06-08 17:39 ` Vadim Lebedev
  1 sibling, 0 replies; 10+ messages in thread
From: Nishanth Menon @ 2007-06-08 17:33 UTC (permalink / raw)
  To: Eduardo Franceschini; +Cc: linux-omap-open-source

Eduardo Franceschini stated on 6/8/2007 12:23 PM:
> I can get an IP, but when I go to /etc/resolv.conf , I don't have an
> IP for
> DNS server... somebody know what to do?
To my knowledge, the host resolution order can be configured in
nssswitch.conf.. If you have NIS/NIS+ you could use the same to update
the /etc/hosts from a file... or i think there is someway to configure
using LDAP also..
check any of your linux desktops on the network, see how it is
configured.. it will help u configure ur board too.. I dont know if the
dhcpd daemon would grab the dns server info and update etc files.. u
could check associated documentation too.. personally i hack up my
/etc/hosts and resolv.conf with values i know of..but that'd be quick
and dirty ;)
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 17:23 PROBLEMS WITH DNS Eduardo Franceschini
  2007-06-08 17:33 ` Nishanth Menon
@ 2007-06-08 17:39 ` Vadim Lebedev
  2007-06-08 17:54   ` Paulo Marques
  2007-06-08 19:38   ` Russell King - ARM Linux
  1 sibling, 2 replies; 10+ messages in thread
From: Vadim Lebedev @ 2007-06-08 17:39 UTC (permalink / raw)
  To: Eduardo Franceschini; +Cc: linux-omap-open-source, linux-arm-kernel

Eduardo Franceschini wrote:

> bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/mtdblock4
> mem=30M
>
> and when I boot the omap, I have
>
> Sending DHCP requests ., OK
> IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.107
> IP-Config: Complete:
>      device=eth0, addr=192.168.1.107, mask=255.255.255.0, gw=192.168.1.1,
>     host=192.168.1.107, domain=, nis-domain=(none),
>     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
>
> I can get an IP, but when I go to /etc/resolv.conf , I don't have an 
> IP for
> DNS server... somebody know what to do?
>
> thanks!
>
> Eduardo
>
Eduardo,

this DHCP request are sent by kernel mode dhcp client,  which has no access
to resolv.conf to store retrived information

I'dont now if somebody have developped a possibility to retriev this 
info using
user-mode app and store it into resolv.conf...

Maybe one why to do it is to modify kernale mode dhcp client to create a 
procfs entry containig info for resolv.conf
and have /etc/resolv.com  to be symlink to procfs entry
 

Thanks
Vadim

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 17:39 ` Vadim Lebedev
@ 2007-06-08 17:54   ` Paulo Marques
  2007-06-08 18:36     ` Vadim Lebedev
  2007-06-08 19:38   ` Russell King - ARM Linux
  1 sibling, 1 reply; 10+ messages in thread
From: Paulo Marques @ 2007-06-08 17:54 UTC (permalink / raw)
  To: Vadim Lebedev; +Cc: linux-omap-open-source, linux-arm-kernel

Vadim Lebedev wrote:
> Eduardo Franceschini wrote:
> [...]
>> I can get an IP, but when I go to /etc/resolv.conf , I don't have an 
>> IP for
>> DNS server... somebody know what to do?
> [...]
> Maybe one why to do it is to modify kernale mode dhcp client to create a 
> procfs entry containig info for resolv.conf
> and have /etc/resolv.com  to be symlink to procfs entry

I'd say this is just the opposite direction of where things seem to be 
going nowadays.

AFAICS, the current solution to this problem is to use initrd / 
initramfs with a user-space dhcp client and nice script to get the DNS 
information into /etc/resolv.conf.

With this in place you can even drop the DHCP / NFS-root support from 
the kernel and have it all done in user-space.

This seems to be the current trend, and I wouldn't be surprised if the 
options for IP auto config and NFS root were dropped from mainline in 
the future.

-- 
Paulo Marques - www.grupopie.com

"The Computer made me do it."

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 17:54   ` Paulo Marques
@ 2007-06-08 18:36     ` Vadim Lebedev
  2007-06-08 19:05       ` Paulo Marques
  2007-06-08 19:39       ` Russell King - ARM Linux
  0 siblings, 2 replies; 10+ messages in thread
From: Vadim Lebedev @ 2007-06-08 18:36 UTC (permalink / raw)
  To: Paulo Marques; +Cc: linux-omap-open-source, linux-arm-kernel

Paulo Marques wrote:

> Vadim Lebedev wrote:
>
>> Eduardo Franceschini wrote:
>> [...]
>>
>>> I can get an IP, but when I go to /etc/resolv.conf , I don't have an 
>>> IP for
>>> DNS server... somebody know what to do?
>>
>> [...]
>> Maybe one why to do it is to modify kernale mode dhcp client to 
>> create a procfs entry containig info for resolv.conf
>> and have /etc/resolv.com  to be symlink to procfs entry
>
>
> I'd say this is just the opposite direction of where things seem to be 
> going nowadays.
>
> AFAICS, the current solution to this problem is to use initrd / 
> initramfs with a user-space dhcp client and nice script to get the DNS 
> information into /etc/resolv.conf.
>
> With this in place you can even drop the DHCP / NFS-root support from 
> the kernel and have it all done in user-space.
>
> This seems to be the current trend, and I wouldn't be surprised if the 
> options for IP auto config and NFS root were dropped from mainline in 
> the future.
>
Kernel mode dhcp client solutions allows muuch faster boot sequences...
for embedded stuff 15-20 secs boot speed advantage is important....

Vadim

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 18:36     ` Vadim Lebedev
@ 2007-06-08 19:05       ` Paulo Marques
  2007-06-08 19:32         ` Hans-Jürgen Koch
  2007-06-08 19:39       ` Russell King - ARM Linux
  1 sibling, 1 reply; 10+ messages in thread
From: Paulo Marques @ 2007-06-08 19:05 UTC (permalink / raw)
  To: Vadim Lebedev; +Cc: linux-omap-open-source, linux-arm-kernel

Vadim Lebedev wrote:
> Paulo Marques wrote:
> 
>> Vadim Lebedev wrote:
>>
>>> Eduardo Franceschini wrote:
>>> [...]
>>>
>>>> I can get an IP, but when I go to /etc/resolv.conf , I don't have an 
>>>> IP for
>>>> DNS server... somebody know what to do?
>>>
>>> [...]
>>> Maybe one why to do it is to modify kernale mode dhcp client to 
>>> create a procfs entry containig info for resolv.conf
>>> and have /etc/resolv.com  to be symlink to procfs entry
>>
>>
>> I'd say this is just the opposite direction of where things seem to be 
>> going nowadays.
>>
>> AFAICS, the current solution to this problem is to use initrd / 
>> initramfs with a user-space dhcp client and nice script to get the DNS 
>> information into /etc/resolv.conf.
>>
>> With this in place you can even drop the DHCP / NFS-root support from 
>> the kernel and have it all done in user-space.
>>
>> This seems to be the current trend, and I wouldn't be surprised if the 
>> options for IP auto config and NFS root were dropped from mainline in 
>> the future.
>>
> Kernel mode dhcp client solutions allows muuch faster boot sequences...
> for embedded stuff 15-20 secs boot speed advantage is important....

I can't see why a user space client running from initramfs with 
basically the same code as the in-kernel dhcp client would be much 
slower. I'd be surprised if the difference is more than a few milliseconds.

So the real problem is to find a dhcp client that is actually as simple 
as the in-kernel one. "udhcpc"[1] might just do what you want.

The only other argument I can see for in-kernel dhcp is that it is 
easier to configure than it is to setup an initramfs filesystem. As soon 
as that problem is somehow solved, I don't see the advantage in keeping 
the in-kernel version.

-- 
Paulo Marques - www.grupopie.com

"Very funny Scotty. Now beam up my clothes."

[1] http://udhcp.busybox.net/

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 19:05       ` Paulo Marques
@ 2007-06-08 19:32         ` Hans-Jürgen Koch
  2007-06-11 11:35           ` Paulo Marques
  0 siblings, 1 reply; 10+ messages in thread
From: Hans-Jürgen Koch @ 2007-06-08 19:32 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: linux-omap-open-source

Am Freitag 08 Juni 2007 21:05 schrieb Paulo Marques:

> 
> The only other argument I can see for in-kernel dhcp is that it is 
> easier to configure than it is to setup an initramfs filesystem. As soon 
> as that problem is somehow solved, I don't see the advantage in keeping 
> the in-kernel version.

Please don't forget the people who mount their root file system via NFS.
I'd say this is the main reason for having DHCP in the kernel.

Hans


-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 17:39 ` Vadim Lebedev
  2007-06-08 17:54   ` Paulo Marques
@ 2007-06-08 19:38   ` Russell King - ARM Linux
  1 sibling, 0 replies; 10+ messages in thread
From: Russell King - ARM Linux @ 2007-06-08 19:38 UTC (permalink / raw)
  To: Vadim Lebedev
  Cc: linux-omap-open-source, linux-arm-kernel, Eduardo Franceschini

On Fri, Jun 08, 2007 at 07:39:43PM +0200, Vadim Lebedev wrote:
> this DHCP request are sent by kernel mode dhcp client,  which has no access
> to resolv.conf to store retrived information

The kernel mode dhcp client is for supporting root-NFS, where you
need to bring up a network interface in order to access your root
filesystem.

It's not supposed to be a subsitute for having a dhcp client in your
local rootfs if you have a local rootfs.

> I'dont now if somebody have developped a possibility to retriev this 
> info using user-mode app and store it into resolv.conf...

The kernel doesn't even ask for DNS information when querying the DHCP
server, so the DHCP server doesn't supply that information.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 18:36     ` Vadim Lebedev
  2007-06-08 19:05       ` Paulo Marques
@ 2007-06-08 19:39       ` Russell King - ARM Linux
  1 sibling, 0 replies; 10+ messages in thread
From: Russell King - ARM Linux @ 2007-06-08 19:39 UTC (permalink / raw)
  To: Vadim Lebedev; +Cc: linux-omap-open-source, Paulo Marques, linux-arm-kernel

On Fri, Jun 08, 2007 at 08:36:04PM +0200, Vadim Lebedev wrote:
> Kernel mode dhcp client solutions allows muuch faster boot sequences...
> for embedded stuff 15-20 secs boot speed advantage is important....

Then complain to the user space dhcp client solutions; they can make
their implementation as fast as the kernel solution if they so wished.
There's nothing magic about the kernel dhcp client.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: PROBLEMS WITH DNS
  2007-06-08 19:32         ` Hans-Jürgen Koch
@ 2007-06-11 11:35           ` Paulo Marques
  0 siblings, 0 replies; 10+ messages in thread
From: Paulo Marques @ 2007-06-11 11:35 UTC (permalink / raw)
  To: Hans-Jürgen Koch; +Cc: linux-omap-open-source, linux-arm-kernel

Hans-Jürgen Koch wrote:
> Am Freitag 08 Juni 2007 21:05 schrieb Paulo Marques:
> 
>> The only other argument I can see for in-kernel dhcp is that it is 
>> easier to configure than it is to setup an initramfs filesystem. As soon 
>> as that problem is somehow solved, I don't see the advantage in keeping 
>> the in-kernel version.
> 
> Please don't forget the people who mount their root file system via NFS.
> I'd say this is the main reason for having DHCP in the kernel.

I can't forget about them, since I'm one of them ;)

initramfs is built _into_ the kernel image, so it is as available as the 
kernel image itself.

The great thing about having initramfs mounting your root filesystem is 
that it is much more flexible than the kernel can ever be. You can, for 
instance, setup an ssh tunnel into the nfs server and mount your root 
file system through there.

There is no ending to the options you have with user space. The problem 
is that the really simple setups that are today handled internally by 
the kernel would require more work to setup :(

-- 
Paulo Marques - www.grupopie.com

"As far as we know, our computer has never had an undetected error."
Weisert

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-11 11:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-08 17:23 PROBLEMS WITH DNS Eduardo Franceschini
2007-06-08 17:33 ` Nishanth Menon
2007-06-08 17:39 ` Vadim Lebedev
2007-06-08 17:54   ` Paulo Marques
2007-06-08 18:36     ` Vadim Lebedev
2007-06-08 19:05       ` Paulo Marques
2007-06-08 19:32         ` Hans-Jürgen Koch
2007-06-11 11:35           ` Paulo Marques
2007-06-08 19:39       ` Russell King - ARM Linux
2007-06-08 19:38   ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox