LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2005, 04:06 PM   #16
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33

i'm sorry, debian uses a different layout than slackware, so i don't know where your config file is to add the gateway automatically. try looking around /etc/rc.d/netconfig or something like that. mine is in /etc/rc.d/rc.inet1.conf, as i said before.

as for DNS...two things come to mind. first, are you sure you didn't change any firewall settings? port 53 needs to be open to outbound traffic in order for name resolution to take place. that's worth verifying. second, my dns servers are listed in /etc/resolv.conf. i obtain them automatically from dhcp like you're supposed to. can you check that file and see what, if anything, is inside? if all else fails i believe you can edit the file manually to put them in.

if you've checked both those things and verified that port 53 is open and that resolv.conf has a couple good ip addresses for dns servers, then i don't know. perhaps have tcpdump running in a terminal while you attempt various pings and dns lookups to see if you can learn anything from watching the packet traffic.
 
Old 06-15-2005, 04:15 AM   #17
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
Quote:
Originally posted by TroelsSmit
the command: "sudo route add default gw 192.168.1.1" was tried - where should this be added so I don't have to run it after every boot ?
You don't have to add this. The reason for an DHCP server is, that this happens automatically.

Quote:
I can then move through the router - but DNS still doesnt work.
The DHCP server might not know the IP address of the DNS server. On the other hand, it did work under Knoppix. So, all necessary information should be available.

Quote:
Doesn't a tool to setup these things exist ? I mean, I have all the information Im just not sure where to put it ??
It usually runs out of the box. All information you were given is only necessary under special circumstances.

If all else fails, boot up the Knoppix CD and check the content of /etc/dhclient.conf there. As you mentioned earlier, DHCP runs fine under Knoppix. So, the contents of the config files should be somewhat usable...

Another file you might want to look at is /etc/resolv.conf. This file tells the system how names should be resolved (among others: which name server to use). AFAIK, dhclient will modify this file, when executed successfully.

Quote:
I then ran "sudo ifconfig eth0 down" and then up.
I'm not sure if ifconfig eth0 up/down is sufficient. You might want to try ifup eth0 and ifdown eth0. The difference: ifup/down execute additional scripts if such scripts have been defined in /etc/networks/interfaces.
 
Old 06-15-2005, 04:54 PM   #18
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
I have no file called /etc/resolv.conf

If I put 192.168.1.1 in it - nothing happens, even after running ifdown/up

Thanks for helping :-)
 
Old 06-15-2005, 05:07 PM   #19
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
bah, i'm sorry. everything is so simple in slackware, just edit those two files and you're done. hopefully someone who's familiar with debian can give you more help!

good luck!
 
Old 06-16-2005, 04:25 AM   #20
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
Quote:
Originally posted by TroelsSmit
I have no file called /etc/resolv.conf

If I put 192.168.1.1 in it - nothing happens, even after running ifdown/up
The correct entry for /etc/resolv.conf is:
Code:
nameserver 192.168.1.1
 
Old 06-16-2005, 05:39 AM   #21
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
Thank you very much, that was what I wrote though :-)

Watching the traffic using tcpdump shows arp requests involving 192.168.1.1 so I guess indeed it must be the nameserver.

Thank you very much for your interest in solving this matter with me :-)
 
Old 06-16-2005, 04:43 PM   #22
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
and you're sure your firewall isn't blocking outbound traffic on port 53?

also, find out what your ISP's namesever's are either through windows, or knoppix, or whatever, and put those in /etc/resolv.conf. try that too, cause your router might not be configured to act as a nameserver.

Last edited by mcd; 06-16-2005 at 04:44 PM.
 
Old 06-17-2005, 08:04 AM   #23
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
Thank you for the kind response :-)

How to I find my isp's nameserver (through knopix or windows) ?
 
Old 06-17-2005, 09:54 AM   #24
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If Knoppix, look in /etc/resolv.conf

If Window$, open a command prompt, and type in "ipconfig /all" without the quotes. Then look for the DNS servers in the output.

Of course, the DNS servers listed there will be what your router is giving out, which may be its own address. You would have to log into the router itself to hunt down the IP address of your ISP's DNS servers. If you're on high speed internet, you could also plug the cable modem/DSL directly into any computer, then check the files I listed above and you'll know the ISP DNS IP address.

Peace,
JimBass

Last edited by JimBass; 06-17-2005 at 09:57 AM.
 
Old 06-18-2005, 04:32 AM   #25
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
Cool

I found the DNS server addresses in windows with the ipconfig /all command.
Inserting these into /etc/resolv.conf did the trick.

Thank you very much everybody
 
  


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
DHCP lease unavailable bwilliam79 Linux - Networking 9 01-31-2008 06:37 AM
DHCP Lease Delete! kofi Linux - Networking 2 07-29-2004 08:00 PM
Renewing DHCP Lease JimKyle Linux - Networking 10 07-18-2004 07:54 PM
dhcp - get new IP when lease renewed chrisnewey Linux - Networking 0 03-30-2004 06:41 AM
CAN'T obtain a IP from DHCP neo_aj Linux - Networking 0 02-17-2004 05:05 PM


All times are GMT -5. The time now is 02:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration