/etc/resolv.confForum: Other Help Topics Topic: /etc/resolv.conf started by: casio Posted by casio on Oct. 02 2005,15:16
I have now cracked the major part of this remastering that I have done thanks to Clacker. However I am now finding that even if I change my etc/resolv.conf file in my source area it changes back to the default resolv.conf file. Why?!?.I have even set the isolinux.cfg file to boot with nodhcp as default which has worked as I noticed that the route table had also been blanked!. So currently in my opt/bootlocal.sh I have 2 lines, one that sets up the eth0 device and the other to set up the gatewat routing and these work. However as mentioned the resolv.conf is being changed back. Any help would be appreciated Posted by ke4nt1 on Oct. 02 2005,17:50
Try adding these extra two lines to /opt/bootlocal.shnameserver xxx.xxx.xxx.xxx > /etc/resolv.conf nameserver xxx.xxx.xxx.xxx >> /etc/resolv.conf Replace the xxx's with your nameserver IP addresses. 73 ke4nt Posted by casio on Oct. 04 2005,13:26
ke4nt cheers for that. A further question on this, would it be possible to put an if condition in to load an IP address set up depending on choice?So it would prompt do you want to load this IP address or leave as standard? I am familiar with the if condition if thats any help Posted by mikshaw on Oct. 04 2005,14:51
Yes, you can do that. bootlocal.sh is just a shell script and works with any bash commands, as long as your commands do not require X (for example, xmessage wouldn't work).
Posted by casio on Oct. 09 2005,14:32
Thanks for everyones input on this as I having this working. Strange part is that when the X session opens and I click on firefox it doesnt open the default site. However if I then close firefox and open it again it works!
|