LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 01-08-2004, 04:51 AM   #1
BasK
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Rep: Reputation: 0
Question stubborn zeroconf


I installed Mandrake 9.2. Everything went well, exept for one problem. The Linux box is multi boot with Win2K as alternative. It is part of a local network. All the computers (3) are connected to a router/switch. This router works as a DHCP server.
When in windows i can ping my other computers both on computer name and on IP adress.
In linux this does not work. I can ping using the ip adress, but not on computer name. Since i want to do some administrative tasks from the linux machine using tightvnc, i need to use the computer name.
What is most annoying, is that on the other computers on the network, i can ping my linux machine both on name and on IP.
Somehow in Linux i don't suxxeed in using the DHCP server as DNS.
In The config tool the DNS sticks to 127.0.0.1

Who can help me?
 
Old 01-12-2004, 12:46 PM   #2
jeffzw
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
BasK,

How did you configure your interface ? Usually DHCP is configuring your DNS setup fine.
Beware, zeroconf is something totally different from DHCP. Zeroconf is using specific protocol and multicast addresses to negociate IP addresses on the subnet and DNS is contacting using multicast addresses as well.
 
Old 01-13-2004, 01:57 PM   #3
BasK
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
jeffzw,

Thxs for replying. The problem is I don't seem to be able to set my eth0 the way I think I would. In the Mandrake Configuration Centre I can change settings on two places: Configuring hostname and configuring Local Area Network (I use a dutch version so the translations can be slightly wrong).
In both options I can't tell my system I want to use my DHCP server also for DNS.
How can I configure my network connections without zeroconf?
I'm afraid I'm stuck.
 
Old 01-13-2004, 04:39 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,331

Rep: Reputation: 141Reputation: 141
If you can ping the ip but not the name, it sounds like you just need to edit your /etc/hosts file to let your linux box know what ip adress is associated with a given name. Check your /etc/hosts file. If all you see in there is:

Code:
127.0.0.1		localhost
then nothing has been setup for your windows boxes. Add a line for each windows box listing the ip adress then a space then the name you want to use for that ip adress.
 
Old 01-13-2004, 05:12 PM   #5
BasK
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Since I use DHCP, the IP adress is not the same everytime. This changes. That is why I cannot use this.
 
Old 01-13-2004, 05:21 PM   #6
jeffzw
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
is dhclient running on your linux box ? is there any dhclient.conf file in /etc ?
 
Old 01-13-2004, 05:37 PM   #7
jeffzw
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
sorry, it should be /etc/dhclient-eth0.conf ...
 
Old 01-14-2004, 03:48 AM   #8
BasK
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
yes there is. It says:
send host-name "192.168.2.100"; # temporary ifup addition
 
Old 01-14-2004, 07:10 AM   #9
jeffzw
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
hmmmm I dont like the "temporary" ifup addition ... Are you sure that this is the actual name of the file ? I can't remember on top off my head but the ifup script do write temporary files ....

But have you tried to change the resolv.conf yourself to point to your DHCP server ? And if yes, is it overwritten after a DHCP request ? If it is not updated, then you may have something in dhclient-script or another option that force to ignore the dns information provided by the DHCP server.

could you tell me what you have in /etc/sysconfig/network-scripts/ifcfg-eth0 ?

also, you could force dhclient to request for dns information by specifying it like this :
interface "eth0" {
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
}
in the dhclient-eth0.conf file

Using "require" specify your dhcp client to ignore DHCP offers that do not contain the option specified. At least you would be able to determine if the DHCP offer is complete.
 
Old 01-14-2004, 10:17 AM   #10
BasK
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I tried what you suggested. I rebooted, and opened this file again. The line
send host-name "192.168.2.100"; # temporary ifup addition was back, and below the text I added.

This is in my ifcfg-eth0 file:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
MII_NOT_SUPPORTED=yes
DHCP_HOSTNAME=192.168.2.100
NEEDHOSTNAME=yes

Still hope you can help me!
 
Old 01-14-2004, 10:23 AM   #11
Dream100110
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
Question Getting Started in Programming

Okay, I know I'm new here but I have to ask.... I'm thinking of taking up computer programming ..... I know more then the average person, I have a degree in Computer Networking and am A+ certified (very small I know) but all this before the age of 22. I would like to know...

What should I do to prepare myself?

Do I have to be a genius at math?

How will I know if I'm good enough or if I'm ready to go for a programming position?

Is there something else in regards to computers that I should know about before starting this?

What is the main thing for me to do in order to get STARTED!


Please I appreciate bluntness and don't get offended, any advise you can give wont go unheard. I'm really serious about this, I'm 21 and always up for a challenge.

Thanks in advance!!!!!!!
 
Old 01-14-2004, 11:37 AM   #12
jeffzw
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
could you describe exactly your situation BasK ?
have you modified the dhclient-eth0.conf file ?
try this :
1. dhclient -r
2. edit your /etc/resolv.conf and put the correct nameserver ip address
3. dhclient -d -1 -pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0

make sure you obtain an IP address for eth0 and check /etc/resolv.conf to see if it has changed
 
Old 01-14-2004, 12:54 PM   #13
BasK
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
In /etc/resolv.conf I see something weird. I have as internet provider home.nl.
In the mentioned file the first line says:
search assen1.dr.home.nl local
This sounds very strange to me.
Next lines are three nameservers. First is127.0.0.1, second and third one are 213.51.129.169 and 213.51.144.169.
I have the impression that as soon as he finds a network connection he asks an IP adress from the DHCP server (my router) and continues to search the web.
In my router I can see the released IP adresses and corresponding computernames. The IP adress for the linux box is there, but no name.
dhclient -r gives an error:
cat: /var/run/dhclient.pid: no such file or directory

The resolv.conf is a strange file!
After editing this file and restarting the network all theold values are back in this file!

How could I describe my situation exactly?
I have a cable internet connection, connected to a router/switch. This router is set up as a DHCP server. Connected to the switch are 4 computers:
- Win 98 machine with my printer which has a static IP adress
- A w2k machine for the children with a dynamic IP adress
- my laptop from work with a dynamic IP adress
- the multiboot Linux/W2K computer

The last one gives only problems in Linux mode

I
 
Old 01-14-2004, 05:13 PM   #14
jeffzw
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
Ok, now i'm sure that your DHCP is working fine.

The send-hostname line in the dhclient-eth0.conf means you probably entered something wrong in the setup phase so I propose you to do the following to correct it:
i only have a text version of drakconf so i hope you will find the same menu as i have.
1. go to the "internet & network" menu and select expert mode & automatic discovery, then click on "next" or "continue",
2. you'll be prompted with various connexion types but the last one is the LAN and it should tell you it has discovered your card. click on "continue"
3. it warns you you are going to configure your ethernet interface, click on "continue"
4. it asks you various information such as if you want DHCP/Bootp/zeroconf or not.
5. Select DHCP, do not enter anything for ip and subnet
6. Click on "Advanced"
7. Enter the DHCP hostname you want (not an IP address as you probably did)
8. Deselect the option that propose to use the Ip address to build the hostname (sorry my menu is in french,dont know what it looks like in your build)
9. click on continue until it asks you if you want to save, confirm
it should stop and start the network configuration;
 
Old 01-14-2004, 05:26 PM   #15
jeffzw
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
by the way, your resolv.conf file is setup by your provider through the DHCP server.
look at http://yo-linux.com/cgi-bin/man2html...nd=resolv.conf to look for the definitions.
for example, if you enter "ping www" without a domain name, the search directive will tell your computer to first search a machine www.assen1.dr.home.nl and if it does not exist search a machine called www.local (local is a particular domain that has been created for local dns domains).
Then the nameserver directives defines 3 nameservers that will be used by your computer to resolves dns names into ip addresses. I dont understand why 127.0.0.1 is defined.
could you confirm me you manage your dhcp configuration on the router ? you may have an issue in the configuration. because the search and the 2 last name servers are information certainly provided by your ISP, your dhcp server is probably merging what you configured with what the isp is sending to your router when it uses dhcp to get its ip on the isp network ...
 
  


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
Crond is stubborn... Worstje Slackware 20 07-10-2005 09:10 AM
gdesklets are stubborn!! Askholia Linux - Software 2 05-02-2005 11:15 AM
stubborn chown jeroend Linux - Newbie 1 05-02-2004 03:52 PM
Zeroconf?? need help pleaaase! thandorias Linux - Networking 3 06-13-2003 12:07 PM
Mozilla being stubborn Dodgy Linux - Software 3 04-27-2003 05:01 PM


All times are GMT -5. The time now is 02:19 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