Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[Solved] Name or service not known

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
chromatic6
n00b
n00b
Posts: 3
Joined: Tue Jan 08, 2008 11:29 am

[Solved] Name or service not known

  • Quote

Post by chromatic6 » Tue Jan 08, 2008 11:46 am

Hi,
I have the message "Name or service not known" when I try to fetch the overlays list with layman, and a lot of internet apps doesn't work anymore like svn, liferea, pidgin, wget... I can't resolve any hostname in this apps. But I browse in firefox without any problem.
I've tried to search the forums and spent a lot of time on this but I don't find any solution.
Last edited by chromatic6 on Tue Jan 08, 2008 2:01 pm, edited 1 time in total.
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Tue Jan 08, 2008 11:57 am

sounds like a dns issue... what are the contents of your /etc/resolv.conf file?
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
chromatic6
n00b
n00b
Posts: 3
Joined: Tue Jan 08, 2008 11:29 am

  • Quote

Post by chromatic6 » Tue Jan 08, 2008 12:32 pm

My resolv.conf seems good as it is generated by dhcpcd

Code: Select all

# Generated by dhcpcd for interface wlan0
nameserver 192.168.1.1
nameserver 0.0.0.0
/etc/hosts

Code: Select all

127.0.0.1       localhost
/etc/conf.d/hostname

Code: Select all

HOSTNAME="localhost"
/etc/conf.d/wireless

Code: Select all

modules=( "ifconfig" )

config_wlan0=( "dhcp" )
essid_wlan0=( "MyEssid" )
key_MyEssid="MyKey"
some lines in /etc/conf.d/rc

Code: Select all

RC_PLUG_SERVICES=""
RC_NET_STRICT_CHECKING="lo"
RC_DOWN_INTERFACE="yes"
/etc/hosts.conf

Code: Select all

# The  file /etc/host.conf contains configuration information specific to
# the resolver library.  It should contain one configuration keyword  per
# line,  followed by appropriate configuration information.  The keywords
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.



# This keyword specifies how host lookups are to be performed. It
# should be followed by one or more lookup methods, separated by
# commas.  Valid methods are bind, hosts, and nis.
#
order hosts, bind


# Valid  values are on and off.  If set to on, the resolv+ library
# will return all valid addresses for a host that appears  in  the
# /etc/hosts  file,  instead  of  only  the first.  This is off by
# default, as it may cause a substantial performance loss at sites
# with large hosts files.
#
multi off
Top
chromatic6
n00b
n00b
Posts: 3
Joined: Tue Jan 08, 2008 11:29 am

  • Quote

Post by chromatic6 » Tue Jan 08, 2008 2:00 pm

I finally found the problem !!
There was a line in /etc/nsswitch.conf with strange entries like mdns4, [ERROR ...]. I don't really remember.

I replaced it by:

Code: Select all

hosts:		files dns
And now everything works :)
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic