Hi,

I use Angstrom on my own board and I have set static IP in
/etc/network/interfaces:

auto lo
iface lo inet loopback
 
auto eth0
iface eth0 inet static
address 10.34.1.240
netmask 255.255.255.0
network 10.34.1.1
broadcast 10.34.1.255
gateway 10.34.1.1

I also added to /etc/resolv.conf:

nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 10.34.1.1

After reboot resolv.conf was empty, so I added a line to
/etc/network/interfaces:

dns-nameservers 8.8.8.8 8.8.4.4 10.34.1.1

and installed resolvconf package. After next reboot, resolv.conf was
empty again.
On that system I have a website, which lets user choose dynamic IP (DHCP
and no problems with DNS) or static IP. I need a way to set persistent
DNS addresses when using static IP. Adding a /etc/resolv.conf-filling
script to /etc/rcx.d is a bit unclean solution. What's more,
/etc/resolv.conf is only a link to /var/run/resolv.conf and I have no
idea, what is erasing it when booting.

Any ideas? Thank you in advance.

Matthew Miszczak

_______________________________________________
Angstrom-distro-users mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users

Reply via email to