Ubuntu resov.conf

Discussion in 'Linux Networking' started by Robert Daniels, Mar 13, 2015.

  1. I have edited /etc/resolvconf/resolv.conf.d/base and added entries like:

    mylocalserver 10.2.6.33

    upon restart I can see it is in the resolv.conf file, however if I try to check if it works by opening up a terminal and entering

    ping mylocalserver

    I get "unknown host" messages.

    This is a closed network with local servers and no DNS, so I have to hand map the server to ip address.

    Is this the correct format for the entries? I have a TAB as whitespace separator.
     
    Robert Daniels, Mar 13, 2015
    #1
    1. Advertisements

  2. Robert Daniels

    JT Guest

    You might want to look at '/etc/hosts' instead

    Hints can be found in output of 'man hosts'
     
    JT, Mar 13, 2015
    #2
    1. Advertisements

  3. Robert Daniels

    Tauno Voipio Guest



    Many client programs add .localdomain to the hostname if it
    is a simple name.

    Add the line

    10.2.6.33 mylocalserver mylocalserver.localdomain

    to /etc/hosts and try again.
     
    Tauno Voipio, Mar 13, 2015
    #3
  4. yeah, that works. so much for our IT guy steering me in the wrong direction.
     
    Robert Daniels, Mar 13, 2015
    #4
  5. Robert Daniels

    JT Guest

    Never trust IT guys ........ Oh shoot, I'm 1 myself , forget I said
    that: never trust THAT IT guy again ;-)
     
    JT, Mar 16, 2015
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.