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]$ |
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 |
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? :confused: 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. |
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 |
All times are GMT -5. The time now is 12:45 AM. |