Re: [Cooker] DHCP Client in Mandrake 9.1 RC1
On Wednesday 26 February 2003 00:03, Phil Green wrote: Is there something that I'm missing or is this I bug I need to report? I have a Cisco 675 DSL modem that does NAT and DHCP. I set up the pool to hand out IP, DNS Servers and Default Gateway. In the Windows world, everything works fine but in Linux, I get the IP address and Default Route but no DNS servers. When I do a nslookup it connects to 127.0.0.1. Help! This is the new ZeroConf stuff 1) Removed tmdns 2) Install dhcpcd 3) Removed dhcp-client 4) Reboot -- John Allen, Email: mailto:[EMAIL PROTECTED] MandrakeClub Silver Member.
Re: [Cooker] DHCP Client in Mandrake 9.1 RC1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Allen wrote: On Wednesday 26 February 2003 00:03, Phil Green wrote: Is there something that I'm missing or is this I bug I need to report? I have a Cisco 675 DSL modem that does NAT and DHCP. I set up the pool to hand out IP, DNS Servers and Default Gateway. In the Windows world, everything works fine but in Linux, I get the IP address and Default Route but no DNS servers. When I do a nslookup it connects to 127.0.0.1. Help! This is the new ZeroConf stuff 1) Removed tmdns 2) Install dhcpcd 3) Removed dhcp-client 4) Reboot This is not the right way to go about fixing [EMAIL PROTECTED] Rather try and get it *all* to work *out-the-box* rather than working around new features which you do not understand! I did some experiments last night, and I do not think this is necessary (but could be wrong ...). AFAICS, the only issue is that the zeroconf setup lists 127.0.0.1 as the first nameserver, whereas it should be the last. BTW, zeroconf, when done right, solves the problem of not being able to resolve the local hostname. Here is some detail from my machine when I booted it up not plugged in (ifplugd cable detection did not work, so this is equivalent to having it connected to a network without dhcp/bootp). [EMAIL PROTECTED] bgmilne]# rpm -qa 'dhcp*' dhcp-client-3.0-2pl2.3mdk dhcp-common-3.0-2pl2.3mdk [EMAIL PROTECTED] bgmilne]$ host `hostname` bgmilne-thinkpad.local has address 169.254.231.85 [EMAIL PROTECTED] bgmilne]$ nslookup `hostname` Note: nslookup is deprecated and may be removed from future releases. Consider using the `dig' or `host' programs instead. Run nslookup with the `-sil[ent]' option to prevent this message from appearing. Server: 127.0.0.1 Address:127.0.0.1#53 Non-authoritative answer: Name: bgmilne-thinkpad.local Address: 169.254.231.85 [EMAIL PROTECTED] bgmilne]$ grep hostname /etc/tmdns.conf # param hostname # usually configured in '/etc/hostname'. You can use this parameter to change # Note that only the part up to the first dot (if any) is used as hostname. #hostname = bgmilne [EMAIL PROTECTED] bgmilne]$ /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:10:4B:7B:CD:2A UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:36 errors:0 dropped:0 overruns:0 carrier:36 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:4410 (4.3 Kb) Interrupt:3 Base address:0x300 eth0:9Link encap:Ethernet HWaddr 00:10:4B:7B:CD:2A inet addr:169.254.231.85 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:3 Base address:0x300 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:683 errors:0 dropped:0 overruns:0 frame:0 TX packets:683 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:48366 (47.2 Kb) TX bytes:48366 (47.2 Kb) [EMAIL PROTECTED] bgmilne]$ cat /etc/resolv.conf search cae.co.za local nameserver 146.232.174.17 nameserver 146.232.128.1 nameserver 127.0.0.1 [EMAIL PROTECTED] bgmilne]$ cat /etc/hosts 127.0.0.1 localhost [EMAIL PROTECTED] bgmilne]$ /sbin/route Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 169.254.0.0 * 255.255.0.0 U 0 00 eth0 127.0.0.0 * 255.0.0.0 U 0 00 lo So, please note that the changes I have made from the configuration made by drakconnect/initscripts is as follows: 1)Do not specify hostname in /etc/tmdns.conf, since then tmdns will use `hostname`. In 99% of the cases, this is what we want, since then GNOME will always be happy. 2)Set HOSTNAME to be a real name in /etc/sysconfig/network, and use the same value as DHCP_HOSTNAME in /etc/sysconfig/network-scripts/ifcfg-eth0 [EMAIL PROTECTED] bgmilne]# grep HOSTNAME /etc/sysconfig/network HOSTNAME=bgmilne-thinkpad [EMAIL PROTECTED] bgmilne]# grep HOSTNAME /etc/sysconfig/network-scripts/ifcfg-eth0 NEEDHOSTNAME=yes DHCP_HOSTNAME=bgmilne-thinkpad 3)Ensure 127.0.0.1 is the last nameserver listed in /etc/resolv.conf. According to /usr/share/doc/tmdns-0.1/README, 127.0.0.1 can be listed first, but then, now that I am connected to a real network (with dns and dhcp), I get: [EMAIL PROTECTED] bgmilne]# cat /etc/resolv.conf search cae.co.za local nameserver 127.0.0.1 nameserver 146.232.174.17 nameserver 146.232.128.1 [EMAIL PROTECTED] bgmilne]# nslookup `hostname` -sil Server: 127.0.0.1 Address:127.0.0.1#53 ** server can't find bgmilne-thinkpad.cae.co.za: SERVFAIL Then, putting 127.0.0.1 last: [EMAIL PROTECTED] bgmilne]# cat /etc/resolv.conf search cae.co.za local nameserver 146.232.174.17 nameserver
Re: [Cooker] DHCP Client in Mandrake 9.1 RC1
On Wednesday 26 February 2003 09:33, Buchan Milne wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Allen wrote: On Wednesday 26 February 2003 00:03, Phil Green wrote: Is there something that I'm missing or is this I bug I need to report? I have a Cisco 675 DSL modem that does NAT and DHCP. I set up the pool to hand out IP, DNS Servers and Default Gateway. In the Windows world, everything works fine but in Linux, I get the IP address and Default Route but no DNS servers. When I do a nslookup it connects to 127.0.0.1. Help! This is the new ZeroConf stuff 1) Removed tmdns 2) Install dhcpcd 3) Removed dhcp-client 4) Reboot This is not the right way to go about fixing [EMAIL PROTECTED] Rather try and get it *all* to work *out-the-box* rather than working around new features which you do not understand! I did some experiments last night, and I do not think this is necessary (but could be wrong ...). AFAICS, the only issue is that the zeroconf setup lists 127.0.0.1 as the first nameserver, whereas it should be the last. Actually 127.0.0.1 should be first. tmdns is a multi-cast caching DNS server. So it requires a multi-cast DNS server it can contact to resolve hostnames. With my tests it would work for the first request, then fail permanently after that. Also dhclient is a load of c*ap, dhcpcd is mucho better. dhclient requires significantly complex dhclient-INTERFACE.conf files to achieve the same as dhcpcd does with a couple of simple command line switches. -- John Allen, Email: mailto:[EMAIL PROTECTED] MandrakeClub Silver Member.
Re: [Cooker] DHCP Client in Mandrake 9.1 RC1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Allen wrote: On Wednesday 26 February 2003 09:33, Buchan Milne wrote: I did some experiments last night, and I do not think this is necessary (but could be wrong ...). AFAICS, the only issue is that the zeroconf setup lists 127.0.0.1 as the first nameserver, whereas it should be the last. Actually 127.0.0.1 should be first. tmdns is a multi-cast caching DNS server. So it requires a multi-cast DNS server it can contact to resolve hostnames. In theory ... note that tmdns was first written in January this year ... Anyway, just test it yourself. Take a look here: [EMAIL PROTECTED] bgmilne]$ cat /etc/resolv.conf search cae.co.za local nameserver 127.0.0.1 nameserver 146.232.174.17 nameserver 146.232.128.1 [EMAIL PROTECTED] bgmilne]$ nslookup `hostname -s ` -sil Server: 127.0.0.1 Address:127.0.0.1#53 ** server can't find bgmilne-thinkpad: SERVFAIL [EMAIL PROTECTED] bgmilne]$ cat /etc/resolv.conf search cae.co.za local nameserver 146.232.174.17 nameserver 146.232.128.1 nameserver 127.0.0.1 [EMAIL PROTECTED] bgmilne]$ nslookup `hostname -s ` -sil Server: 146.232.174.17 Address:146.232.174.17#53 Name: bgmilne-thinkpad.cae.co.za Address: 146.232.174.230 If I then restart the network without a cable attached, it still works, tmdns then answers for bgmilne-thinkpad (as bgmilne-thinkpad.local). So, either tmdns is broken, or nslookup is, or 127.0.0.1 should be listed last. BTW, another issue is that it seems restarting a network interface does not change the hostname of the machine (in my case from bgmilne-thinkpad.cae.co.za to just bgmilne-thinkpad), which causes problems (and the typical GNOME issue ...). The name returned by DHCP should be dropped, but that might cause problems with X :-(. With my tests it would work for the first request, then fail permanently after that. Also dhclient is a load of c*ap, dhcpcd is mucho better. dhclient requires significantly complex dhclient-INTERFACE.conf files to achieve the same as dhcpcd does with a couple of simple command line switches. Would not know. dhclient works for me. Only additional feature I am looking for in a dhcp client is the ability to set the WINS IP for samba when the dhcp server returns one ... Regards, Buchan - -- |--Another happy Mandrake Club member--| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+XJ/ZrJK6UGDSBKcRAl+9AJ9rnc001kGz4TJEbLU5lYTRbhve+wCgjkLz 1hj4hus0vTy7G1v+liNEX8M= =tDAL -END PGP SIGNATURE-
[Cooker] DHCP Client in Mandrake 9.1 RC1
Is there something that I'm missing or is this I bug I need to report? I have a Cisco 675 DSL modem that does NAT and DHCP. I set up the pool to hand out IP, DNS Servers and Default Gateway. In the Windows world, everything works fine but in Linux, I get the IP address and Default Route but no DNS servers. When I do a nslookup it connects to 127.0.0.1. Help!