[En-Nut-Discussion] TCPIP and DNS configuration
Hugo Simon
hugo.simon at gmx.de
Thu Sep 30 22:27:18 CEST 2004
Hi,
I just tried to understand how Ethernut initializes it's IP Stack. I need
this for creating a configuration tool for the user interface via serial or
telnet.
I think TCPIP configuration is clear. It tries DHCP if there is no static IP
defined. I can read the current adress, subnet and so on from the confnet
structure. So if I want to change some parameters and store them with
NutSaveSettings. If there is neither a fixed nor a DHCP IP adress it waits
for an ICMP packet. Is there some timeout for that?
But as I understand this mechanism only includes MAC Adress, IP-Adr,
Subnetmask and Default gateway. It does not include DNS parameters like
hostname, domain and DNS server IP. I can set this with NutDNSConfig2. But
is not stored to the EEPROM. Do I have to save it to EEPROM on my own or is
there a function for that.
Another problem is how to obtain the DNS Server adress from DHCP. Is there
any possibility to do that or has someone written such thing? The same for
domain and hostname. BTW, does anybody know which is the right thing: should
a client (workstation) register it's hostname to the DHCP server or should
it obtain it from the DHCP server?
A bit offtopic question: it seems that my router (www.fli4l.de) does not
expand a local hostname.
"nslookup hostname" from a workstation and from the ethernut fails
"nslookup hostname.mydomain.de" works
Ethernut and workstation both have mydomain.de as their domain name. So has
the router (hopefully, don't know how to check, I am not a Unix Guru).
Thanks for help
bye
Thorsten
More information about the En-Nut-Discussion
mailing list