View previous topic :: View next topic |
Author |
Message |
fharni n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/606928960430355609958d.gif)
Joined: 12 Oct 2002 Posts: 28
|
Posted: Wed Aug 17, 2005 10:16 am Post subject: host name lookup failure |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
R!tman Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1908578499403a17853e807.gif)
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Wed Aug 17, 2005 10:21 am Post subject: |
|
|
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 ...
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 |
|
![](templates/gentoo/images/spacer.gif) |
fharni n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/606928960430355609958d.gif)
Joined: 12 Oct 2002 Posts: 28
|
Posted: Wed Aug 17, 2005 10:32 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mpagano Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/13423521685391bb49d0fc8.jpg)
Joined: 27 Apr 2004 Posts: 197 Location: USA
|
Posted: Wed Aug 17, 2005 12:05 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fharni n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/606928960430355609958d.gif)
Joined: 12 Oct 2002 Posts: 28
|
Posted: Wed Aug 17, 2005 12:28 pm Post subject: |
|
|
I modified the resolv.conf so that only the nameserver of my ISP is in it but it won't work. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
m_sqrd Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 18 Jul 2005 Posts: 367
|
Posted: Wed Aug 17, 2005 12:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fharni n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/606928960430355609958d.gif)
Joined: 12 Oct 2002 Posts: 28
|
Posted: Wed Aug 17, 2005 1:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fharni n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/606928960430355609958d.gif)
Joined: 12 Oct 2002 Posts: 28
|
Posted: Wed Aug 17, 2005 1:11 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
m_sqrd Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 18 Jul 2005 Posts: 367
|
Posted: Wed Aug 17, 2005 2:03 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fharni n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/606928960430355609958d.gif)
Joined: 12 Oct 2002 Posts: 28
|
Posted: Wed Aug 17, 2005 2:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
(l)user Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11546738914484345373004.gif)
Joined: 31 Jan 2004 Posts: 334 Location: Poland
|
Posted: Wed Aug 17, 2005 2:40 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fharni n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/606928960430355609958d.gif)
Joined: 12 Oct 2002 Posts: 28
|
Posted: Wed Aug 17, 2005 2:43 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
m_sqrd Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 18 Jul 2005 Posts: 367
|
Posted: Wed Aug 17, 2005 4:10 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|