View previous topic :: View next topic |
Author |
Message |
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 03, 2005 8:35 am Post subject: Can´t resolve hostname |
|
|
Hi,
i have a big problem... i can ping only IP adresses, but no domain names since i´ve upgraded my baselayout.
my DNS servers are 192.168.10.10 and 192.168.1.1 and gateway to internet is 192.168.100.252 (Ovislink)
my /etc/resolv.conf contain this:
----------------------
nameserver 192.168.10.10
nameserver 192.168.1.1
domain kn.vutbr.cz
-------------------------------------
my /etc/conf.d/net contain this:
----------------------
iface_eth0="192.168.100.251 broadcast 192.168.100.255 netmask 255.255.255.0"
gateway="eth0/192.168.100.252"
-------------------------------------
my /etc/conf.d/domainname :
---------------------------
OVERRIDE = 1
DNSDOMAIN="kn.vutbr.cz"
#NISDOMAIN=""
-----------------------------------
my /etc/hosts :
------------------------------------
127.0.0.1 a03-0726a a03-0726a.kn.vutbr.cz localhost.localdomain localhost
+ some IPv6 config
------------------------------------
my /etc/host.conf :
-----------------------------------
order hosts, bind
mdns off
multi off
-----------------------------------
Can anybody help me in my problem, pls? _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Aug 03, 2005 8:52 am Post subject: |
|
|
and run
Code: | dig <some-public-domain> |
then scrutinise the output for any clues. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 03, 2005 8:56 am Post subject: |
|
|
there is a little problem. I can't resolve gentoo.inode.at to connect to their FTP and emerge bind-tools. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Aug 03, 2005 8:57 am Post subject: |
|
|
Boot livecd, chroot and do it there _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 03, 2005 9:13 am Post subject: |
|
|
There is an output from DIG:
<<>> DiG 9.2.5 <<>> www.seznam.cz
;;global option: printcmd
;;connection timed out; no servers could be reached
I have no idea what is wrong.. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Aug 03, 2005 2:27 pm Post subject: |
|
|
Well, for one thing, your system does not have reachable nameservers - it says so.
This may mean that the contents of resolv.conf are simply wrong, or it may indicate a deeper network-related problem. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Fri Aug 05, 2005 8:15 am Post subject: |
|
|
I have 2 PC one with WinXP and one with Gentoo ), on both PC are the same nameservers. WinXP works fine, but gentoo (after upgrade baselayout) not. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Aug 05, 2005 9:09 am Post subject: |
|
|
Then you'll have to edit resolv.conf on the Gentoo box manually - if it works then it is a problem with the /etc/conf.d settings... _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Fri Aug 05, 2005 9:17 am Post subject: |
|
|
resolv.conf is corretly set. No firewalls are running. GRRRrr _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
andrewwalker27 l33t
Joined: 27 Jun 2005 Posts: 660
|
Posted: Sun Aug 07, 2005 9:32 pm Post subject: |
|
|
I'm having exactly the same problem, I upgraded the baselayout package and I have now lost my internet gateway.
I checked my config and it appears correct. Everything was fine until I did emerge baselayout, I suspect it's a bug but don't know how to prove it, never mind fix it! |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Mon Aug 08, 2005 10:09 am Post subject: |
|
|
Yes, it's a serious problem. I've checked some init scripts but with no success. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Mon Aug 08, 2005 10:20 am Post subject: |
|
|
I think, that downgrading to previous version of baselayout may help with this problem, but i haven't tried it yet. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
andrewwalker27 l33t
Joined: 27 Jun 2005 Posts: 660
|
Posted: Mon Aug 08, 2005 10:29 am Post subject: |
|
|
Trouble is, how do I now downgrade without an internet connection? If I get the necessary package from another machine what do I do to emerge it and stop it trying to re-emerge the broken one? |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Mon Aug 08, 2005 10:54 am Post subject: |
|
|
Boot from LiveCD -> chroot -> test if your internet connection workes -> emerge =baselayout-<previous version>
or
Get the previous baselayout package from another machine -> copy it into the DISTFILES dir (i think /usr/portage/distfiles) -> emerge =baselayout-<previous version>
but be careful it may change many conf files, before do this I recommend you to make a backup copy. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Mon Aug 08, 2005 10:58 am Post subject: |
|
|
_dA_CyANIDe,
Files are never deleted from /usr/portage/distfiles unless you do it _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Mon Aug 08, 2005 11:00 am Post subject: |
|
|
I'm sorry, that's my bad. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 24, 2005 2:17 pm Post subject: problem with dns resolving |
|
|
For about month I can't resolve hostname from ISP's DNS on Gentoo box. If i use >(i don't want to say this word)< Windows, everything is ok. Settings on Gentoo are good. resolv.conf, hostname, domainname, hosts are well configured. I checked many scrips which are dependent on eth0 (resolving ), but with no success. I think, that it is deep networking problem or maybe compatibility problem. I've tried Code: | emerge -e system && emerge -e world | for recompilation, but it still no work.
Can anybody help me? .. MANY THANX
mod edit: @@ HELL PROBLEM WITH DNS RESOLVING @@ grrr => problem with dns resolving (subject) --Earthwings _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Wed Aug 24, 2005 2:34 pm Post subject: |
|
|
Merged last post to this older thread about the problem. _________________ KDE |
|
Back to top |
|
|
m_sqrd Guru
Joined: 18 Jul 2005 Posts: 367
|
Posted: Wed Aug 24, 2005 4:18 pm Post subject: |
|
|
_dA_CyANIDe,
first check that there has not been a syntax change in your /etc/conf.d/net (some times happens with baselayout upgrades) see the /etc/conf.d/net.example
next Show the output of
ifconfig -a
arp -a
cat /etc/nsswitch.conf
cat /etc/conf.d/hostname
also just try this.
dig @147.229.191.135 www.seznam.cz |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 24, 2005 4:40 pm Post subject: |
|
|
Hi m_sqrd,
here are outputs:
eth0 Zapouzdøení(Encapsulation):Ethernet HWadr 00:08:54:04:5D:88
inet adr:192.168.100.251 Broadcast:192.168.100.255 Mask:255.255.255.0
AKTIVOVÁNO VESMÌROVÉ_VYSÍLÁNÍ BÌÍ MULTICAST MTU:1500 Metrika:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
kolizí:0 délka odchozí fronty:1000
RX bytes:22568 (22.0 Kb) TX bytes:19446 (18.9 Kb)
Pøeruení:19 Vstupnì/Výstupní port:0xc000
lo Zapouzdøení:Loopback
inet adr:127.0.0.1 Maska:255.0.0.0
AKTIVOVÁNO SMYÈKA BÌÍ MTU:16436 Metrika:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
kolizí:0 délka odchozí fronty:0
RX bytes:700 (700.0 b) TX bytes:700 (700.0 b)
teql0 Zapouzdøení:NEZNÁM HWadr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NEARP MTU:1500 Metrika:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
kolizí:0 délka odchozí fronty:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
arp -a :
? (192.168.100.252) na 00:4F:62:00:61:3E [ether] on eth0
cat /etc/nsswitch.conf :
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nsswitch.conf,v 1.1 2005/05/17 00:52:41 vapier Exp $
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
cat /etc/conf.d/hostname :
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/hostname,v 1.2.4.1 2005/02/19 02:13:53 vapier Exp $
# Set to the hostname of this machine
HOSTNAME="a03-0726a"
dig to www.gentoo.org ... no server could be reached _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity!
Last edited by _dA_CyANIDe on Wed Aug 24, 2005 4:56 pm; edited 1 time in total |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 24, 2005 4:55 pm Post subject: |
|
|
Here is /etc/conf.d/net :
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
config_eth0=( "192.168.100.251 netmask 255.255.255.0 broadcast 192.168.100.255" )
routes_eth0=( "default gw 192.168.100.252" ) _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
m_sqrd Guru
Joined: 18 Jul 2005 Posts: 367
|
Posted: Wed Aug 24, 2005 5:05 pm Post subject: |
|
|
ok did you dig @147.229.191.135 www.gentoo.org or just dig www.gentoo.org ?
the 147.229.191.135 is a ns at your ISP 'paja.kn.vutbr.cz'
also whats your netstat -rn look like? |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 24, 2005 5:14 pm Post subject: |
|
|
Adresát Gate Mask Pøízn MSS Wind irtt Rozhraní
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.100.252 0.0.0.0 UG 0 0 0 eth0
I´ve tried
dig www.gentoo.org
if i've used dig @ www.gentoo.org, but i got this output :
couldn't get address for "": not found
The kn.vutbr.cz is my school domain. Now i'm @ home and i'm behind the router (192.168.100.252), so we haven't domain name or maybe localdomain. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
m_sqrd Guru
Joined: 18 Jul 2005 Posts: 367
|
Posted: Wed Aug 24, 2005 5:23 pm Post subject: |
|
|
ok but use dig @147.229.191.135 www.gentoo.org
dig @ tells dig to use "server_name or ipaddress" as the source for the lookup.
and I check that server from here a few min.. ago and it was up, so what I'm look for is to see if there is something block udp port 53 from that box.
dig @147.229.191.135 www.gentoo.org
; <<>> DiG 9.2.5 <<>> @147.229.191.135 www.gentoo.org
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13061
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;www.gentoo.org. IN A
;; ANSWER SECTION:
www.gentoo.org. 86400 IN A 204.225.92.144
www.gentoo.org. 600 IN A 66.219.59.46
www.gentoo.org. 600 IN A 65.19.163.231
;; AUTHORITY SECTION:
gentoo.org. 12743 IN NS udns2.ultradns.net.
gentoo.org. 12743 IN NS udns1.ultradns.net.
;; ADDITIONAL SECTION:
udns2.ultradns.net. 62448 IN A 204.74.101.1
udns1.ultradns.net. 62448 IN A 204.69.234.1
;; Query time: 188 msec
;; SERVER: 147.229.191.135#53(147.229.191.135)
;; WHEN: Wed Aug 24 12:22:18 2005
;; MSG SIZE rcvd: 178 |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Wed Aug 24, 2005 5:29 pm Post subject: |
|
|
Output from : dig @ 147.229.191.135 www.gentoo.org
connection timed out; no servers could be reached.
I have no firewall running. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
|