Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: /etc/resolv.conf, why does this change on a remaster?< Next Oldest | Next Newest >
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Oct. 02 2005,15:16 QUOTE

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


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Oct. 02 2005,17:50 QUOTE

Try adding these extra two lines to /opt/bootlocal.sh

nameserver 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
Back to top
Profile PM 
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Oct. 04 2005,13:26 QUOTE

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


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 04 2005,14:51 QUOTE

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).

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Oct. 09 2005,14:32 QUOTE

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!

--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
4 replies since Oct. 02 2005,15:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: /etc/resolv.conf

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code