You can still use DHCP for your IP settings, but override DNS settings. Look at /etc/dhcp3/dhclient.conf and the supercede statement. From the manpage:<br><br> The supersede statement<br><br> supersede [ option declaration ] ;
<br><br> If for some option the client should always use a locally-configured<br> value or values rather than whatever is supplied by the server, these<br> values can be defined in the supersede statement.
<br><br>Werd,<br>dpk<br><br><br><div><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Clay Dowling</b> <<a href="mailto:clay@lazarusid.com">clay@lazarusid.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Scott,<br><br>What's probably assigning those values is dhcp. If your machine is<br>supposed to be getting its information from DHCP then you should stop<br>fighting it. If your machine is not supposed to be using DHCP then you
<br>should disable DHCP configuration on eth0.<br><br>Clay Dowling<br><br>Scott Harrison said:<br>> Hi,<br>><br>><br>> Here is my current situation. I am booting from<br>> ubuntu live cd desktop version 6.06.1
.<br>> Please see my silly perl scripts below, and<br>> help me find a better way!<br>><br>><br>> If I don't do this,<br>> perl -e 'while(1) {sleep(1);`echo "nameserver <a href="http://35.8.2.41">35.8.2.41
</a>" ><br>> /etc/resolv.conf`;}' &<br>><br>><br>> I then, after a few minutes, wind up with this:<br>> root@ubuntu:~# more /etc/resolv.conf<br>> search domain_not_set.invalid<br>> nameserver
<a href="http://192.168.0.1">192.168.0.1</a><br>><br>><br>> Also, I am doing this:<br>> perl -e while(1) {sleep(1);`ifconfig eth0 <a href="http://192.168.2.1">192.168.2.1</a> netmask<br>> 255.255.255.0`;}?<br>
><br>><br>> because something in the system is auto-assigning<br>> <a href="http://192.168.1.64">192.168.1.64</a> to eth0.<br>><br>><br>> I tried adjusting<br>> auto eth0<br>> iface eth0 inet dhcp
<br>><br>><br>> to be<br>> auto eth0<br>> iface eth0 inet <a href="http://192.168.2.1">192.168.2.1</a><br>><br>><br>> Also, for my LAN, I adapted various iptables commands<br>> from <a href="http://www.tldp.org/HOWTO/Masquerading-Simple-HOWTO/summary.html">
http://www.tldp.org/HOWTO/Masquerading-Simple-HOWTO/summary.html</a><br>> to help allow other LAN computers to access the internet.<br>> I am wanting to use ubuntu live cd as a failsafe internet connection<br>> tool for my LAN, but it seems cumbersome to
<br>> store/transcribe/thumbdrive/remixlivecd all those<br>> iptable commands. Is there a simple GUI or countably few<br>> set of commands to do something similar?<br>><br>><br>> I'm still in a happy place, but I must face Darth Vader
<br>> (aka these bugs and issues) again, and this mailing list<br>> is my only hope.<br>><br>><br>> Scott<br>><br>> -----<br>><br>><br>> *******************<br>> ** DISCLAIMER :P **<br>> *******************
<br>><br>> This E-mail message and any attachments may contain information.<br>><br>><br>> _______________________________________________<br>> linux-user mailing list<br>> <a href="mailto:linux-user@egr.msu.edu">
linux-user@egr.msu.edu</a><br>> <a href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user">http://mailman.egr.msu.edu/mailman/listinfo/linux-user</a><br>><br><br><br>--<br>Simple Content Management<br><a href="http://www.ceamus.com">
http://www.ceamus.com</a><br><br>_______________________________________________<br>linux-user mailing list<br><a href="mailto:linux-user@egr.msu.edu">linux-user@egr.msu.edu</a><br><a href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user">
http://mailman.egr.msu.edu/mailman/listinfo/linux-user</a><br></blockquote></div><br>