-----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:9 Link 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
lo Link 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 Ref Use
Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 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 146.232.128.1
nameserver 127.0.0.1
[EMAIL PROTECTED] bgmilne]# nslookup `hostname` -sil
Server: 146.232.174.17
Address: 146.232.174.17#53
Name: bgmilne-thinkpad.cae.co.za
Address: 146.232.174.230
146.232.174.17 and 146.232.128.1 are the DNS servers supplied by the
DHCP server. Ideally, they should be removed from /etc/resolv.conf when
the interface is taken down ...
Buchan
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical 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+XInvrJK6UGDSBKcRAs8zAJ0dD14I2JWcfVkIP6XA7STbVd2VswCgw4Yc
wke4xBxrVrUbUyeLEGNB54Q=
=Amn7
-----END PGP SIGNATURE-----