Results 1 to 6 of 6

Thread: Problem with wget

  1. #1
    Join Date
    Jul 2009
    Posts
    188

    Problem with wget

    Hello,
    I developed a script that runs on a small box (an HD movie player, like a NAS). In this script, I use the command "wget" to download files. Everything works fine when I enter a local IP on my network, but when I use a domain name that will tap the NET, then wget can not find the destination. I'm no computer novice, but in Linux, just. and there it is a distribution board (using Busybox) functionality rather limited. Does someone could tell me where to start looking to solve this problem? Thank in advance.
    Note- no worries config network, all my PCs arrive to access the net via my router.

  2. #2
    Join Date
    Jan 2006
    Posts
    3,792

    Re: Problem with wget

    Hello
    Everything works fine when I enter a local IP on my network, but when I use a domain name that will tap the NET, then wget can not find the destination.
    I think you should inform your dns? And then see if it works fluently.
    Is that if you type the ip site it works better?

  3. #3
    Join Date
    Jul 2009
    Posts
    188

    Re: Problem with wget

    Hello
    Is that if you type the ip site it works better?
    Yes, the site IP, it works better.
    I think you should inform your dns? And then see if it works fluently.
    How do I pass the information on the DNS? Sorry I have no idea about this.
    Thank you!

  4. #4
    Join Date
    Jul 2009
    Posts
    188

    Re: Problem with wget

    Hi
    Okay, I added the DNS IP mentioned in my Windows network configuration in the file / usr / local / etc / resolv.conf. And now it is working good. I have another question in mind, Is it possible to automatically obtain the DNS address?
    In the Windows config is checked "obtain IP automatically" and "obtain DNS address automatically", is there any Linux equivalent?
    Thank you!

  5. #5
    Join Date
    Jan 2006
    Posts
    3,792

    Re: Problem with wget

    Hi
    In the Windows config is checked "obtain IP automatically" and "obtain DNS address automatically", is there any Linux equivalent?
    I know I'm always like that with the addresses given by my ISP, but if you find the answer then please post back.

  6. #6
    Join Date
    Jan 2006
    Posts
    4,221

    Re: Problem with wget

    Hi
    Your Windows obtains the address automatically by dhcp from your router which in turn gets them automatically from your ISP. Linux can use dhclient to do likewise, configuring it to automatically start will depend on your distribution. The most user-friendly do this automatically by default, but if this is not your case it would be good to ask in the appropriate forum. A static configuration is still rather more appropriate if your computer is not supposed to move in the future.

Similar Threads

  1. How to quickly copy file between NAS storage via Wget
    By GuruT in forum Windows Software
    Replies: 5
    Last Post: 27-03-2012, 02:13 PM
  2. Replies: 6
    Last Post: 27-07-2010, 12:10 AM
  3. Replies: 4
    Last Post: 10-04-2010, 04:19 PM
  4. Need GNU Wget for Windows
    By CALANTHIA in forum Windows Software
    Replies: 3
    Last Post: 23-09-2009, 04:50 PM
  5. Need to know a wget command for php
    By Nihir in forum Software Development
    Replies: 3
    Last Post: 28-05-2009, 05:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,113,644.37758 seconds with 17 queries