LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-24-2002, 06:24 AM   #1
Aleks
LQ Newbie
 
Registered: Jan 2002
Location: Canberra, Australia
Distribution: Red Hat
Posts: 2

Rep: Reputation: 0
Unhappy DNS problems (again!)


Hi Guys and girls,

I am new to Linux and am determined to make it work, however, this has me stumped. I am sure that it is an easy fix but I don't know which little command to issue.

My installation of Red Hat 7.2 will dial up and connect to my ISP through Kppp easily enough, I can view web pages IF I use the IP address. If I type the host name in, I get DNS type errors (no such host etc.) I have a standard desktop type system with an external modem.

Initially I assumed that it was resolv.conf, so I checked it about 20 times, the DNS servers are correct. I tried nslookup -d2 (to see what was going on) and basically the output said "bad packet". Today it found an address and found the same errors.
:smash:
I have posted the nslookup below.

I don't like to say it, but the addresses that I am using work just fine for Windows. If you have any idea what is going on here I would appreciate the help.

thanks heaps.

Aleks.

----------------------------------------------------------------------------------


[Aleks@localhost Aleks]$ nslookup -d2 www.csc.com.au
main parsing www.csc.com.au
addlookup()
make_empty_lookup()
get_reverse(www.csc.com.au)
looking up www.csc.com.au
Note: nslookup is deprecated and may be removed from future r
eleases.
Consider using the `dig' or `host' programs instead. Run nslo
okup with
the `-sil[ent]' option to prevent this message from appearing.
setup_system()
adding search localdomain
got a nameserver line
make_server(x.x.x.x)
got a nameserver line
make_server(y.y.y.y)
lock_lookup dighost.c:2629
success
start_lookup()
setup_lookup(0x8069a98)
resetting lookup counter.
cloning server list
clone_server_list()
make_server(x.x.x.x)
make_server(y.y.y.y)
using root origin
recursive query
add_question()
starting to render the message
done rendering
create query 0x403d7010 linked to lookup 0x8069a98
create query 0x403d7110 linked to lookup 0x8069a98
do_lookup()
send_udp(403d7010)
bringup_timer()
have local timeout of 1
working on lookup 0x8069a98, query 0x403d7010
get_address()
sockcount=1
recving with lookup=0x8069a98, query=0x403d7010, sock=0x403d80
08
recvcount=1
sending a request
unlock_lookup dighost.c:2631
lock_lookup dighost.c:1516
success
send_done()
sendcount=0
check_if_done()
list empty
unlock_lookup dighost.c:1525
connect_timeout()
lock_lookup dighost.c:1756
success
trying next server...
send_udp(403d7110)
bringup_timer()
have local timeout of 5
working on lookup 0x8069a98, query 0x403d7110
get_address()
sockcount=2
recving with lookup=0x8069a98, query=0x403d7110, sock=0x403d80
e8
recvcount=2
sending a request
unlock_lookup dighost.c:1771
lock_lookup dighost.c:1516
success
send_done()
sendcount=0
check_if_done()
list empty
unlock_lookup dighost.c:1525
recv_done()
lock_lookup dighost.c:2235
success
recvcount=1
lookup=0x8069a98, query=0x403d7110
before parse starts
;; Got bad packet: unexpected end of input
167 bytes
4b e1 85 80 00 01 00 01 00 04 00 04 03 77 77 77
03 63 73 63 03 63 6f 6d 02 61 75 00 00 01 00 01
c0 0c 00 01 00 01 00 00 02 58 00 04 cb 3f 35 6f
c0 10 00 02 00 01 00 00 02 58 00 05 02 6e 73 c0
10 c0 10 00 02 00 01 00 00 02 58 00 06 03 6e 73
31 c0 10 c0 10 00 02 00 01 00 00 02 58 00 12 07
77 61 72 72 61 6e 65 07 63 6f 6e 6e 65 63 74 c0
14 c0 10 00 02 00 01 00 00 02 58 00 0a 07 79 61
72 72 69 6e 61 c0 67 c0 3c 00 01 00 01 00 00 02
58 00 04 cb 3f a4 03 c0 4d 00 01 00 01 00 00 02
58 00 04 cb 3f a4 08
clear_query(0x403d7110)
sockcount=1
cancel_lookup()
check_if_done()
list empty
check_next_lookup(0x8069a98)
still have a worker
unlock_lookup dighost.c:2308
recv_done()
lock_lookup dighost.c:2235
success
recvcount=0
lookup=0x8069a98, query=0x403d7010
no longer pending. Got operation canceled
clear_query(0x403d7010)
sockcount=0
check_next_lookup(0x8069a98)
try_clear_lookup(0x8069a98)
cleared
freeing server 0x403d5010 belonging to 0x8069a98
freeing server 0x403d5420 belonging to 0x8069a98
start_lookup()
check_if_done()
list empty
shutting down
dighost_shutdown()

done, and starting to shut down
cancel_all()
lock_lookup dighost.c:2645
unlock_lookup dighost.c:2259
success
unlock_lookup dighost.c:2675
destroy_libs()
freeing task
freeing taskmgr
lock_lookup dighost.c:2701
success
freeing global server 0x403d0420
freeing global server 0x403d0830
freeing search 0x403d0010
freeing commctx
freeing socketmgr
freeing timermgr
destroy DST lib
detach from entropy
unlock_lookup dighost.c:2760
[Aleks@localhost Aleks]$ nslookup -d2 www.csc.com.au
main parsing www.csc.com.au
addlookup()
make_empty_lookup()
get_reverse(www.csc.com.au)
looking up www.csc.com.au
Note: nslookup is deprecated and may be removed from future r
eleases.
Consider using the `dig' or `host' programs instead. Run nslo
okup with
the `-sil[ent]' option to prevent this message from appearing.
setup_system()
adding search localdomain
got a nameserver line
make_server(x.x.x.x)
got a nameserver line
make_server(y.y.y.y)
lock_lookup dighost.c:2629
success
start_lookup()
setup_lookup(0x8069a98)
resetting lookup counter.
cloning server list
clone_server_list()
make_server(x.x.x.x)
make_server(y.y.y.y)
using root origin
recursive query
add_question()
starting to render the message
done rendering
create query 0x403d7010 linked to lookup 0x8069a98
create query 0x403d7110 linked to lookup 0x8069a98
do_lookup()
send_udp(403d7010)
bringup_timer()
have local timeout of 1
working on lookup 0x8069a98, query 0x403d7010
get_address()
sockcount=1
recving with lookup=0x8069a98, query=0x403d7010, sock=0x403d80
08
recvcount=1
sending a request
unlock_lookup dighost.c:2631
lock_lookup dighost.c:1516
success
send_done()
sendcount=0
check_if_done()
list empty
unlock_lookup dighost.c:1525
connect_timeout()
lock_lookup dighost.c:1756
success
trying next server...
send_udp(403d7110)
bringup_timer()
have local timeout of 5
working on lookup 0x8069a98, query 0x403d7110
get_address()
sockcount=2
recving with lookup=0x8069a98, query=0x403d7110, sock=0x403d80
e8
recvcount=2
sending a request
unlock_lookup dighost.c:1771
lock_lookup dighost.c:1516
success
send_done()
sendcount=0
check_if_done()
list empty
unlock_lookup dighost.c:1525
recv_done()
lock_lookup dighost.c:2235
success
recvcount=1
lookup=0x8069a98, query=0x403d7110
before parse starts
after parse
printmessage()
continuing on with rcode != 0
Server: y.y.y.y
Address: y.y.y.y#53

Non-authoritative answer:
printsection()
Name: www.csc.com.au
Address: 203.63.53.111
still pending.
cancel_lookup()
check_if_done()
list empty
check_if_done()
list empty
clear_query(0x403d7110)
sockcount=1
check_next_lookup(0x8069a98)
still have a worker
unlock_lookup dighost.c:2512
recv_done()
lock_lookup dighost.c:2235
success
recvcount=0
lookup=0x8069a98, query=0x403d7010
no longer pending. Got operation canceled
clear_query(0x403d7010)
sockcount=0
check_next_lookup(0x8069a98)
try_clear_lookup(0x8069a98)
cleared
freeing server 0x403d5010 belonging to 0x8069a98
freeing server 0x403d5420 belonging to 0x8069a98
start_lookup()
check_if_done()
list empty
shutting down
dighost_shutdown()

done, and starting to shut down
cancel_all()
lock_lookup dighost.c:2645
unlock_lookup dighost.c:2259
success
unlock_lookup dighost.c:2675
destroy_libs()
freeing task
freeing taskmgr
lock_lookup dighost.c:2701
success
freeing global server 0x403d0420
freeing global server 0x403d0830
freeing search 0x403d0010
freeing commctx
freeing socketmgr
freeing timermgr
destroy DST lib
detach from entropy
unlock_lookup dighost.c:2760
[Aleks@localhost Aleks]$ ping -d2 203.63.53.111
ping: invalid option -- 2
Usage: ping [-LRUbdfnqrvV] [-c count] [-i interval] [-w wait]
[-p pattern] [-s packetsize] [-t ttl] [-I interface ad
dress]
[ -T timestamp option ] [ -Q tos ] host
[Aleks@localhost Aleks]$ ping -d 203.63.53.111
PING 203.63.53.111 (203.63.53.111) from 216.252.211.182 : 56(8
4) bytes of data.
64 bytes from 203.63.53.111: icmp_seq=0 ttl=240 time=1.127 sec
64 bytes from 203.63.53.111: icmp_seq=1 ttl=240 time=1.419 sec
64 bytes from 203.63.53.111: icmp_seq=2 ttl=240 time=1.479 sec
64 bytes from 203.63.53.111: icmp_seq=3 ttl=240 time=1.359 sec
64 bytes from 203.63.53.111: icmp_seq=4 ttl=240 time=1.599 sec
64 bytes from 203.63.53.111: icmp_seq=5 ttl=240 time=1.379 sec
64 bytes from 203.63.53.111: icmp_seq=6 ttl=240 time=1.659 sec
64 bytes from 203.63.53.111: icmp_seq=7 ttl=240 time=1.569 sec
64 bytes from 203.63.53.111: icmp_seq=8 ttl=240 time=1.309 sec
64 bytes from 203.63.53.111: icmp_seq=9 ttl=240 time=1.229 sec
64 bytes from 203.63.53.111: icmp_seq=10 ttl=240 time=1.069 se
c
64 bytes from 203.63.53.111: icmp_seq=11 ttl=240 time=1.109 se
c
64 bytes from 203.63.53.111: icmp_seq=12 ttl=240 time=1.149 se
c
64 bytes from 203.63.53.111: icmp_seq=13 ttl=240 time=1.329 se
c

--- 203.63.53.111 ping statistics ---
15 packets transmitted, 14 packets received, 6% packet loss
round-trip min/avg/max/mdev = 1069.919/1342.622/1659.921/183.3
84 ms
[Aleks@localhost Aleks]$ ping www.csc.com.au
ping: unknown host www.csc.com.au
[Aleks@localhost Aleks]$
 
Old 01-24-2002, 10:21 AM   #2
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
hi

hi ,

check out the files /etc/nsswitch.conf file and /etc/host.conf.

this files control if dns records are seaarched first or the file /etc/hosts.

i hope i got ur question right.

regards,
xanthium
 
Old 01-26-2002, 09:55 PM   #3
Aleks
LQ Newbie
 
Registered: Jan 2002
Location: Canberra, Australia
Distribution: Red Hat
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the response.

I checked out the two files. The parts that look like they are relevant to my problem are:

nsswitch.conf:

>>hosts: files nisplus dns


host.conf:

>>order hosts,bind


Do these entries look right? Am I even looking in the right place?



I am just trying to get my Linux box on the net through a dial up link at this stage. Will try more tricky stuff later. baby steps.....

Thanks,

Aleks.
 
Old 01-26-2002, 10:58 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try dig if you have it.


dig www.addressthat don't work.com


also look into setting the mtu on ppp0

ifconfig ppp0 mtu somenumber


try something around the 500 to 1000 range
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with DNS aqoliveira Linux - Networking 12 10-29-2003 11:01 AM
DNS problems Wimpie22 Linux - Networking 4 05-25-2003 03:30 AM
Dns Problems. SpookMonkey Linux - Networking 0 05-09-2002 11:11 AM
need help: DNS problems kcwoo Linux - General 0 03-12-2002 10:53 PM
DNS Problems goochable Linux - Networking 3 05-06-2001 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration