Hosts file w/ DNS, disabling "eth0" and SMB creds via DHCP
Posted: Mon Jan 09, 2012 12:04 pm
Hi,
There are a few things that I'd like to get sorted on my Amahi box, but haven't quite figured out how...
1) I'd like a central place to manage some DNS addresses for testing/development purposes, and it makes sense to do this on the Amahi box! Currently, the way I do this for both Mac and Windows machines is to use their own local "hosts" file. I thought that I'd be able to use the same mechanism on the Amahi box (by placing entries in /etc/hosts), but it doesn't seem to work. I thought that the default for BIND was to merge stuff in from this file? It doesn't seem to work for me though. Any pointers anyone? This should be possible, right (both for fixed IP machines and ones given a DHCP IP from Amahi)?
2) I want to permanently disable "eth0" because this is the network port on my motherboard, and it's broken. I'm therefore using a PCI card ("eth1") for my connectivity. It's generally worked OK in the past, and I've even managed to get VPN bridging (see http://wiki.amahi.org/index.php/VPN_Bridging ) to work for me. However, every now and then, "eth0" seems to get re-enabled. I spent HOURS trying to sort this out over the weekend when I was trying to work out why I'd lost internet connectivity. It turns out that either my ISP and/or OpenDNS had issues but when I rebooted my Amahi box to rule that out, it had enabled eth0 causing me a major headache in trying to work out what had happened. If I could just disable eth0 once and for all, then hopefully this won't happen again! I've tried doing this from within Webmin and through the Network Configuration tool, but every now and then, eth0 keeps coming back!
3) On any of our fixed IP Win 7 machines, if I save credentials for any Amahi shares (ie when asked to "Enter Network Password", I fill in both the user name and password, and check the "remember my credentials" box), they seem to be remembered OK from there on in. However, on any machine that gets its IP via DHCP (eg my laptop when connecting via WiFi), I often have to keep retyping these credentials in. Is there anyway I can get around this? Would having a static IP address for the WiFi be best way to do this?
Thanks in advance for any help...
There are a few things that I'd like to get sorted on my Amahi box, but haven't quite figured out how...
1) I'd like a central place to manage some DNS addresses for testing/development purposes, and it makes sense to do this on the Amahi box! Currently, the way I do this for both Mac and Windows machines is to use their own local "hosts" file. I thought that I'd be able to use the same mechanism on the Amahi box (by placing entries in /etc/hosts), but it doesn't seem to work. I thought that the default for BIND was to merge stuff in from this file? It doesn't seem to work for me though. Any pointers anyone? This should be possible, right (both for fixed IP machines and ones given a DHCP IP from Amahi)?
2) I want to permanently disable "eth0" because this is the network port on my motherboard, and it's broken. I'm therefore using a PCI card ("eth1") for my connectivity. It's generally worked OK in the past, and I've even managed to get VPN bridging (see http://wiki.amahi.org/index.php/VPN_Bridging ) to work for me. However, every now and then, "eth0" seems to get re-enabled. I spent HOURS trying to sort this out over the weekend when I was trying to work out why I'd lost internet connectivity. It turns out that either my ISP and/or OpenDNS had issues but when I rebooted my Amahi box to rule that out, it had enabled eth0 causing me a major headache in trying to work out what had happened. If I could just disable eth0 once and for all, then hopefully this won't happen again! I've tried doing this from within Webmin and through the Network Configuration tool, but every now and then, eth0 keeps coming back!
3) On any of our fixed IP Win 7 machines, if I save credentials for any Amahi shares (ie when asked to "Enter Network Password", I fill in both the user name and password, and check the "remember my credentials" box), they seem to be remembered OK from there on in. However, on any machine that gets its IP via DHCP (eg my laptop when connecting via WiFi), I often have to keep retyping these credentials in. Is there anyway I can get around this? Would having a static IP address for the WiFi be best way to do this?
Thanks in advance for any help...