[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #7017] Implement DNS client

From: Jonathan Larmour
Subject: [lwip-devel] [task #7017] Implement DNS client
Date: Tue, 04 Dec 2007 12:09:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070530 Fedora/ Firefox/

Follow-up Comment #86, task #7017 (project lwip):

Re LWIP_MAKE_ADDRWORD - a helper macro would be useful and easy to provide.
>From David's comment, it looks like it would want to be:

#define LWIP_MAKE_ADDRWORD(a,b,c,d)

Frederic wrote:
> To be honest, except "localhost", I don't see any real cases
> where a hardcoded name could be useful. Can you tell me some
> samples for such uses? 

It's analogous to /etc/hosts on Unix (or the 'hosts' file on windows,
although I can never remember where it lives). 

It can be used for fixed addresses that won't change and are important (some
sort of main server). This can be a) to save delay and network traffic by
having to look them up repeatedly; but more importantly, b) to reduce the
chance of problems when there are temporary DNS lookup failures, at least for
contacting these important servers.

The other use is to allow use of friendly names for something that won't ever
be (or won't be guaranteed to be) in the DNS server being used. For example a
private name, but in general you want to use a normal DNS server which only
resolves public addresses.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]