• Problem resolution DNS

    From Steve M@110:300/11 to All on Fri Dec 27 11:52:42 2013
    Hi,

    I have a weird problem...

    My CentOS v 6.5 has an access to the LAN. I can access any resource via
    the LAN

    But No webpage can be seen at all.


    [root@localhost ~]# host download.fedoraproject.org
    download.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 209.132.181.16 wildcard.fedoraproject.org has address 66.35.62.166
    wildcard.fedoraproject.org has address 66.135.62.201
    wildcard.fedoraproject.org has address 67.203.2.67
    wildcard.fedoraproject.org has address 140.211.169.197 wildcard.fedoraproject.org has address 152.19.134.146


    But If I do :

    [root@localhost ~]# wget http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedo ra-Live-Desktop-x86_64-20-1.iso
    --2013-12-27 12:50:10-- http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedo ra-Live-Desktop-x86_64-20-1.iso
    Resolving download.fedoraproject.org... failed: Name or service not known. wget: unable to resolve host address “download.fedoraproject.org” [root@localhost ~]#


    How could it be ?

    Is there 2 different ways to get DNS info ?
    I cannot see anything wrong with the Ethernet config file ..
    Any idea ?
    I even don't know what to look for , which direction to go....
    Thanks

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: Guest of ProXad - France (110:300/11@linuxnet)
  • From Steve M@110:300/11 to All on Fri Dec 27 16:18:25 2013
    Don't ask me what I have changed, but I found the problem..
    Via Webmin -> Networking -< Hostname and DNS Client
    Resolution order : was hosts file and hosts file, instead of Host files
    and DNS

    Thanks for your help


    On 27/12/2013 12:52, Steve M wrote:
    Hi,

    I have a weird problem...

    My CentOS v 6.5 has an access to the LAN. I can access any resource via
    the LAN

    But No webpage can be seen at all.


    [root@localhost ~]# host download.fedoraproject.org download.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 209.132.181.16 wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 66.135.62.201 wildcard.fedoraproject.org has address 67.203.2.67
    wildcard.fedoraproject.org has address 140.211.169.197 wildcard.fedoraproject.org has address 152.19.134.146


    But If I do :

    [root@localhost ~]# wget

    http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedo ra-Live-Desktop-x86_64-20-1.iso
    --2013-12-27 12:50:10--

    http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedo ra-Live-Desktop-x86_64-20-1.iso
    Resolving download.fedoraproject.org... failed: Name or service not known. wget: unable to resolve host address “download.fedoraproject.org” [root@localhost ~]#


    How could it be ?

    Is there 2 different ways to get DNS info ?
    I cannot see anything wrong with the Ethernet config file ..
    Any idea ?
    I even don't know what to look for , which direction to go....
    Thanks



    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: Guest of ProXad - France (110:300/11@linuxnet)
  • From Moe Trin@110:300/11 to All on Sat Dec 28 04:12:19 2013
    On Fri, 27 Dec 2013, in the Usenet newsgroup linux.redhat, in article <52bda852$0$2199$426a74cc@news.free.fr>, Steve M wrote:

    host download.fedoraproject.org
    download.fedoraproject.org is an alias for wildcard.fedoraproject.
    org.wildcard.fedoraproject.org has address

    But If I do :

    wget http://download.fedoraproject.org/pub/

    [herschel ~]$whatis dig dnsquery host nslookup
    dig (1) - send domain name query packets to name servers
    dnsquery (1) - query domain name servers using resolver
    host (1) - look up host names using domain server
    nslookup (8) - query Internet name servers interactively
    [herschel ~]$

    Yup - well known "got-cha" strikes again!

    Don't ask me what I have changed, but I found the problem..
    Via Webmin -> Networking -< Hostname and DNS Client
    Resolution order : was hosts file and hosts file, instead of Host
    files and DNS

    Ah, the wonders of a "Let me help you - this is too complicated" type
    of ``helper'' tool. There are two files in /etc/ that control how the "gethostbyname(3)" call works, (in addition to the man-page for the
    "host" command):

    [herschel ~]$ whatis host nsswitch.conf
    host (1) - look up host names using domain server
    host.conf (5) - resolver configuration file
    nsswitch.conf (5) - System Databases and Name Service Switch
    configuration file
    [herschel ~]$ grep hosts /etc/host.conf /etc/nsswitch.conf /etc/host.conf:order hosts,bind
    /etc/nsswitch.conf:hosts: files dns
    [herschel ~]$

    /etc/host.conf is the old-fashion file for earlier versions of the
    C library, and /etc/nsswitch.conf is for the current library. Briefly,
    the two files are configured here to look in the /etc/hosts file
    first, and then use DNS. Applications like wget (and just about
    everything else) uses those files to see how to translates names to
    IP numbers. The DNS testing tools (dig dnsquery host nslookup)
    mentioned above ignore the two files, because their purpose is to
    get data from DNS servers (not /etc/hosts files, NIS, or any other
    scheme). The two files (and /etc/hosts) could be entirely missing
    and those DNS testing tools would still work (by querying the name
    servers listed in /etc/resolv.conf).

    Now, what you (or more likely the so-called "helper" tool) had
    changed to mess things up - I can't say. But now you know the
    reason it worked/failed as it did.

    Old guy

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: Retired Old Pharts of Northern Arizona (110:300/11@linuxnet)
  • From Alexander Wiedergold WIEDERGOLD.NET@110:300/11 to All on Fri Jan 10 23:03:32 2014
    Am 27.12.2013 12:52, schrieb Steve M:
    Hi,

    I have a weird problem...

    My CentOS v 6.5 has an access to the LAN. I can access any resource via
    the LAN

    But No webpage can be seen at all.


    [root@localhost ~]# host download.fedoraproject.org download.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 209.132.181.16 wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 66.135.62.201 wildcard.fedoraproject.org has address 67.203.2.67
    wildcard.fedoraproject.org has address 140.211.169.197 wildcard.fedoraproject.org has address 152.19.134.146


    But If I do :

    [root@localhost ~]# wget

    http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedo ra-Live-Desktop-x86_64-20-1.iso
    --2013-12-27 12:50:10--

    http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedo ra-Live-Desktop-x86_64-20-1.iso
    Resolving download.fedoraproject.org... failed: Name or service not known. wget: unable to resolve host address “download.fedoraproject.org” [root@localhost ~]#


    How could it be ?

    Is there 2 different ways to get DNS info ?
    I cannot see anything wrong with the Ethernet config file ..
    Any idea ?
    I even don't know what to look for , which direction to go....
    Thanks

    pleas cat /etc/named.conf

    --
    ...
    http://wiedergold.net/

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: 1&1 Internet AG (110:300/11@linuxnet)
  • From Panic@1:0/0 to All on Mon Jan 13 21:12:45 2014
    I've seen this behaviour before. What nameserver entries do you have in your /etc/resolv.conf file?

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobbs.
  • From Steve M@110:300/11 to All on Wed Jan 22 08:33:13 2014
    On 13/01/2014 22:12, Panic wrote:
    I've seen this behaviour before. What nameserver entries do you have in
    your /etc/resolv.conf file?

    I found te problem , thanks...

    I don't know which file has been changed, but into Webmin, you can give
    the order of checking DNS.
    By default, the first is 'Host file' the second is "DNS"
    I've selected twice Host files.... . Came back with Host file & DNS, everything is ok now.

    Thanks

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: Guest of ProXad - France (110:300/11@linuxnet)