Find the answer to your Linux question:
Results 1 to 3 of 3
I am not exactly sure how to describe the problem, but this is whats happening: I have set up a machine on debian and after a while it loses the ...
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    2

    computer loses dns settings

    I am not exactly sure how to describe the problem, but this is whats happening:

    I have set up a machine on debian and after a while it loses the dns, so when I type:

    ping: somesite.com

    it times out but when I type:

    ping: xxx.xxx.xxx.xxx <-some existing ip
    I get an immediate response.

    Anything I can do?

  2. #2
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    what kind of ip are you using? static or dhcp

    if static you need define the dns servers for the system
    make a file in /etc on name resolv.conf and add the nameserver
    syntax:
    nameserver xxx.xxx.xxx.xxx

    each line each dns server

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    2
    Quote Originally Posted by iwanabeguru
    what kind of ip are you using? static or dhcp

    if static you need define the dns servers for the system
    make a file in /etc on name resolv.conf and add the nameserver
    syntax:
    nameserver xxx.xxx.xxx.xxx

    each line each dns server
    I am using dhcp, but I would much rather switch to static.
    I will give your suggestion a try.
    It only seems to happen if I call curl from a php script. Don't know why.
    Andre

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •