View Single Post
Old 06-21-2008, 02:12 PM   #61
bobj
Enthusiast
bobj is on a distinguished road
 
Posts: 25
Karma: 67
Join Date: May 2008
Device: iRex iLiad
How to fix DNS

For me, the problem was not with wget. The problem was with DNS resolution. (I could wget from IP addresses, but not domain names.)

There are separate DNS configurations for both inside and outside of scratchbox.

I fixed DNS inside scratchbox by doing the following: First, make sure you're not in scratchbox. (The prompt should be "developer@debian:~$" not "[sbox-iliad-dev: ~]".)

Then
Code:
developer@debian:~$ sudo nano /scratchbox/etc/resolv.conf
Erase the stuff that's there, and replace it with
Code:
nameserver IP.ADDRESS.OF.YOUR.DNS
For some configurations, "nameserver 192.168.0.1" will work properly.

If you need to figure out your DNS IP in Windows, open up a command prompt and type "ipconfig /all". Then look for a line like:
Code:
     DNS Servers . . . . . . . . . . . : 192.168.0.1
Now to fix DNS outside of scratchbox, do "sudo nano /etc/resolv.conf". (I personally got lucky on this part because it's set by default to 192.168.0.1.)
bobj is offline   Reply With Quote