LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-28-2005, 11:26 AM   #1
ikk
LQ Newbie
 
Registered: Aug 2005
Distribution: xebian, cygwin
Posts: 10

Rep: Reputation: 0
DNS, Linux doesnt resolve domain names for me


Hello.

I instaled linux on my second computer in my home, it works in LAN but when im trying simply acces internet it cant resolve domain names. Ssh and things like FTP works.

I have internet via ADSL modem, i have external router installed and oter computers are connected via network cards with RJ45 cables. Router ip is 10.0.0.2 and this ip i typed as DNS server in Windows XP and everything works there, but i typed in linux /etc/resolv.conf line:

nameserver 10.0.0.2

and this does nothing (my nameserver ip is the same as DNS server).

Later, i cant ping 10.0.0.2, this is what i get:

xebian:/# ping 10.0.0.2
Do you want to ping broadcast? Then -b
xebian:/#
xebian:/# ping 10.0.0.2 -b
WARNING: pinging broadcast address
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.

- and now i can only press Ctrl+C, cos shell hangs

--- 10.0.0.2 ping statistics ---
238 packets transmitted, 0 received, 100% packet loss, time 237012ms

I didnt installed any firewals.

im really pissed cos in windows it simply works and on linux not

need help plz
 
Old 08-28-2005, 11:52 AM   #2
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
I dont think that your IP address is your DNS server.
It will be mostly the Public IP address (NOT among 10.0. and 172.x.x.x and 192.168.x.x, which is yours) which is your DNS Server.
Try this
http://whatismyip.com/ in windows and
then find out what public IP you get (if any)
that shud be your DNS Server ..(hopefully)

My friend and I had solved this problem when we were working in our Campus Newspaper office!
 
Old 08-28-2005, 01:55 PM   #3
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Re: DNS, Linux doesnt resolve domain names for me

Quote:
Originally posted by ikk

Later, i cant ping 10.0.0.2, this is what i get:

xebian:/# ping 10.0.0.2
Do you want to ping broadcast? Then -b
xebian:/#
xebian:/# ping 10.0.0.2 -b
WARNING: pinging broadcast address
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.

- and now i can only press Ctrl+C, cos shell hangs
Don't try pinging from a root shell. The program will assume you want to do a broadcast ping, which you really don't.
 
Old 08-28-2005, 02:51 PM   #4
ikk
LQ Newbie
 
Registered: Aug 2005
Distribution: xebian, cygwin
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by redhatrosh
I dont think that your IP address is your DNS server.
It will be mostly the Public IP address (NOT among 10.0. and 172.x.x.x and 192.168.x.x, which is yours) which is your DNS Server.
Try this
http://whatismyip.com/ in windows and
then find out what public IP you get (if any)
that shud be your DNS Server ..(hopefully)

I think i didnt explained my problem well.
My internet connection is provided via telephone line (ADSL), i have a public ip, this ip begins with 83.xx.xx.xx but changes randomly so its not static.
Im using router to "divide" internet trafic into several computers inside LAN. Router has its own LAN IP and every computer also has LAN IP. I guess my public IP cannot be used inside my LAN as DNS server, is that right ?
When i was installing network i set router to 10.0.0.2 and two computers have folowing ip's: 10.0.0.4, 10.0.0.11. As i said, this configuration works with Windowses, but when i installed 3rd one with linux, linux doesnt see outside router, that is, LAN is accesible but DNS doesnt work
 
Old 08-28-2005, 03:32 PM   #5
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Try adding

gateway 10.0.0.2

to your /etc/resolv.conf.
 
Old 08-28-2005, 03:33 PM   #6
ikk
LQ Newbie
 
Registered: Aug 2005
Distribution: xebian, cygwin
Posts: 10

Original Poster
Rep: Reputation: 0
thanx for your interest, ive solved this problem with help from btmiller.
i had to change broadcast inside ifconfig and add default gateway to route table.

my network settings are now:

xebian:/# iconfig eth0 10.0.0.8 netmask 255.255.255.0 broadcast 10.0.0.255

xebian:/# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0D:3A: 51C : 1F
inet addr:10.0.0.8 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2291 errors:0 dropped:0 overruns:0 frame:0
TX packets:2880 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:235237 (229.7 KiB) TX bytes:395914 (386.6 KiB)
Interrupt:4 Base address:0x3000

xebian:/# route add default gw 10.0.0.2

xebian:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
default 10.0.0.2 0.0.0.0 UG 0 0 0 eth0
xebian:/#

Last edited by ikk; 08-28-2005 at 03:59 PM.
 
Old 08-28-2005, 03:35 PM   #7
ikk
LQ Newbie
 
Registered: Aug 2005
Distribution: xebian, cygwin
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by eddiebaby1023
Try adding

gateway 10.0.0.2

to your /etc/resolv.conf.
thanx, ive already solved this one , this would olso work i think
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to resolve domain names natekris2331 Slackware 9 02-12-2011 12:27 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Newbie 6 08-28-2005 03:29 PM
DNS will not resolve non-domain qualified names arobinson74 Linux - Networking 2 10-25-2004 04:13 PM
Unable to resolve domain names holdem Linux - Networking 4 02-01-2004 10:50 PM
unable to resolve domain names.. shazbot Slackware 5 02-05-2003 07:09 AM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration