Join the community today
Register Now

Install Name or service not known

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Naytrix, Nov 26, 2021.

  1. Naytrix

    Naytrix New Member

    14
    0
    1
    Apr 1, 2021
    Ratings:
    +3
    Local Time:
    5:14 PM
    Hi,

    I have just installed centminmod 123.09beta01 and I am struggling here


    Whenever I do wget, yum or anything that requires internet I get this:

    Resolving github.com... failed: Name or service not known.
    wget: unable to resolve host address 'github.com'

    It seems to not be able to ping any website either, so I dont know what Ive done wrong.

    Regards
     
  2. duderuud

    duderuud Premium Member Premium Member

    252
    83
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +179
    Local Time:
    6:14 PM
    1.27 x
    10.6
    Seems like you don't have a working internet connection. Chekc your network (nic) settings...
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    3:14 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Server's local dns resolver might not be working

    What output do you get from ssh commands while logged into your server
    Code (Text):
    ping -c4 google.com

    Code (Text):
    ping -c4 github.com

    Code (Text):
    cat /etc/resolv.conf

    For posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  4. Naytrix

    Naytrix New Member

    14
    0
    1
    Apr 1, 2021
    Ratings:
    +3
    Local Time:
    5:14 PM
    google.com command:

    Code:
    ping: google.com: name or service not known
    github.com command:

    Code:
    ping: github.com: name or service not known
    resolv.conf command:

    Code:
    search domainhere.com
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    3:14 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    your local dns resolver file is missing any nameservers for DNS lookup! Who's your web host and what plan you using as that would be problematic for any kind of usage!

    The fact you managed to installed Centmin Mod means they did work before and had working /etc/resolv.conf. Maybe you accidentally removed them?

    If you did not accidentally remove them and you only just installed Centmin Mod with no personal data, then I would do fresh CentOS 7 install and check /etc/resolv.conf has nameservers defined first and redo a fresh Centmin Mod install and check if /etc/resolv.conf has nameservers defined after Centmin Mod install to compare before and after Centmin Mod install.

    If you have personal data already installed and don't want to redo CentOS7 + Centmin Mod fresh installs, you can edit /etc/resolv.conf and add your own DNS resolvers like using Google's 8.8.4.4 and 8.8.8.8

    in /etc/resolv.conf add
    Code (Text):
    options rotate
    options timeout:1
    nameserver 8.8.4.4
    nameserver 8.8.8.8
    

    and re-run ping commands above to test to see if local DNS resolver now works