Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
host name lookup failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fharni
n00b
n00b


Joined: 12 Oct 2002
Posts: 28

PostPosted: Wed Aug 17, 2005 10:16 am    Post subject: host name lookup failure Reply with quote

Hi,
something with my network is going wrong. I can ping IP's but I can't ping domainnames like www.genoo.org. I don't know why it is.
Here are some config files:
Code:

# /etc/resolv.conf
nameserver 192.168.1.254
nameserver 145.253.2.11

Code:

#/etc/conf.d/net
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"

# For setting the default gateway
#
#gateway="eth0/192.168.0.1"


What can I do to fix the problem?
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Wed Aug 17, 2005 10:21 am    Post subject: Reply with quote

I cannot ping your first nameserver. Maybe when you tried, both were offline.

Can you ping your nameservers (ip)?

EDIT: Err... no wonder I could not ping your first name server ... :oops:
It is in your (or my) local network. I would take that out unless you are sure it really is a nameserver.
Back to top
View user's profile Send private message
fharni
n00b
n00b


Joined: 12 Oct 2002
Posts: 28

PostPosted: Wed Aug 17, 2005 10:32 am    Post subject: Reply with quote

Quote:
I cannot ping your first nameserver. Maybe when you tried, both were offline.

Can you ping your nameservers (ip)?

Yes I can. The first IP is my dsl-router and the second is the nameserver of my provider. All my other computers connected to this router can use the i-net w/o any problems.
Back to top
View user's profile Send private message
mpagano
Developer
Developer


Joined: 27 Apr 2004
Posts: 197
Location: USA

PostPosted: Wed Aug 17, 2005 12:05 pm    Post subject: Reply with quote

Should the IP of your router be indicated as a nameserver ?

Have you tried just using the ISP DNS's in resolv.conf?

This is how I have it.

Mike
Back to top
View user's profile Send private message
fharni
n00b
n00b


Joined: 12 Oct 2002
Posts: 28

PostPosted: Wed Aug 17, 2005 12:28 pm    Post subject: Reply with quote

I modified the resolv.conf so that only the nameserver of my ISP is in it but it won't work.
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Wed Aug 17, 2005 12:46 pm    Post subject: Reply with quote

I'd check your /etc/host.conf and /etc/nsswitch.conf files and make sure there correct.
then emerge net-dns/bind-tools if you still having problems and test with (dig)
Back to top
View user's profile Send private message
fharni
n00b
n00b


Joined: 12 Oct 2002
Posts: 28

PostPosted: Wed Aug 17, 2005 1:00 pm    Post subject: Reply with quote

Here are my host.conf and nsswitch.conf. I don't know if they are correct. Currently I emerge bind-tools and test it when it is complete.
Code:

# /etc/host.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/2.3.4/host.conf,v 1.2 20

# 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 treats
# the .local top level domain as link-local domain and sends multicast
# DNS requests to the multicast address 224.0.0.251 port 5353 instead
# of normal DNS requests. If you already use the .local domain in your
# nameserver configuration you will have to switch this option off.
#
mdns off

# 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

Code:

# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nsswitch.conf,v 1.1 2005

passwd:      compat
shadow:      compat
group:       compat

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

hosts:       files dns
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files
Back to top
View user's profile Send private message
fharni
n00b
n00b


Joined: 12 Oct 2002
Posts: 28

PostPosted: Wed Aug 17, 2005 1:11 pm    Post subject: Reply with quote

dig told me that no servers could be reached. Why?

Code:
idon ~ # dig

; <<>> DiG 9.2.5 <<>>
;; global options:  printcmd
;; connection timed out; no servers could be reached
idon ~ # dig @145.253.2.11

; <<>> DiG 9.2.5 <<>> @145.253.2.11
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached
idon ~ #
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Wed Aug 17, 2005 2:03 pm    Post subject: Reply with quote

ok 2 more things to check
whats in you /etc/conf.d/net file
and can you ping the nameserver by ip.
Back to top
View user's profile Send private message
fharni
n00b
n00b


Joined: 12 Oct 2002
Posts: 28

PostPosted: Wed Aug 17, 2005 2:24 pm    Post subject: Reply with quote

I had postet my /etc/conf.d/net file at the top of this posting.
I can ping every working IP including the one of my nameserver(145.253.2.11).
Back to top
View user's profile Send private message
(l)user
Guru
Guru


Joined: 31 Jan 2004
Posts: 334
Location: Poland

PostPosted: Wed Aug 17, 2005 2:40 pm    Post subject: Reply with quote

fharni wrote:
I had postet my /etc/conf.d/net file at the top of this posting.
I can ping every working IP including the one of my nameserver(145.253.2.11).

hmm...
Code:

ls -l /lib/libresolv*

?
_________________
Registered Linux user #302020
Gadu Gadu #490092
Back to top
View user's profile Send private message
fharni
n00b
n00b


Joined: 12 Oct 2002
Posts: 28

PostPosted: Wed Aug 17, 2005 2:43 pm    Post subject: Reply with quote

Code:
idon ~ # ls -l /lib/libresolv*
-rwxr-xr-x  1 root root 69292 Jul 20 06:08 /lib/libresolv-2.3.5.so
lrwxrwxrwx  1 root root    18 Jul 20 06:08 /lib/libresolv.so.2 -> libresolv-2.3.5.so
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Wed Aug 17, 2005 4:10 pm    Post subject: Reply with quote

ok sorry I gess I should have re-read the OP
so it sounds like some thing is block port 53 or udp packets. (firewall/route?)
or there is no namesever at that address.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum