Learn about Centmin Mod LEMP Stack today
Become a Member

Install Name or service not known

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Naytrix, Nov 26, 2021 at 9:22 AM.

  1. Naytrix

    Naytrix New Member

    9
    0
    1
    Apr 1, 2021
    Ratings:
    +3
    Local Time:
    3:15 AM
    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 Member

    39
    10
    8
    Dec 5, 2020
    The Netherlands
    Ratings:
    +23
    Local Time:
    4:15 AM
    Nginx 1.21.4
    MariaDB 10.4
    Seems like you don't have a working internet connection. Chekc your network (nic) settings...
     
  3. eva2000

    eva2000 Administrator Staff Member

    47,498
    10,769
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,742
    Local Time:
    1:15 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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

    9
    0
    1
    Apr 1, 2021
    Ratings:
    +3
    Local Time:
    3:15 AM
    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

    47,498
    10,769
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,742
    Local Time:
    1:15 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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