PDA

View Full Version : DNS from DHCP not working with WLAN/WPA


dpward
2005-12-19, 01:03 PM CST
I was just able to get my laptop working on my home wireless network, which uses WPA-PSK. In the configuration for my wlan0 connection which is set through "System Settings > Network", it is set to obtain an IP address through DHCP, and also to obtain DNS information from the DHCP server. It is obtaining an IP address fine when it makes a connection; however DNS will not work. I can manually add the DNS server for my home wireless network to the configuration and then use it...but that sort of defeats the point...I need to be able to use DNS from DHCP instead, particularly since any other wireless network I go to will most likely have different DNS servers. All of the other wireless devices on my network, like the other laptop running Windows XP that I am writing this message from, are receiving DNS information from DHCP just fine.

Possibly relevant information:

Dell Inspiron 7000
Linksys WPC54Gv3 PCMCIA card
Microsoft Wireless Base Station MN-700

kernel-module-ndiswrapper-2.6.14-1.1653_FC4-1.7-0.lvn.1.4
ndiswrapper-1.7-0.lvn.1.4
(using Livia RPMs for Fedora Core 4)

wpa_supplicant-0.4.7-9.rhfc4.at
(using ATrpms for Fedora Core 4)

wireless-tools-28-0.pre10.4

Thanks so much!

Iron_Mike
2005-12-19, 02:15 PM CST
Since you are using WPA, wpa_supplicant has to connect to the base station before any ip info is sent down to the card. Are you starting the wpa_supplicant 1st before trying to connect to the base station?

dpward
2005-12-19, 02:21 PM CST
Right... what I basically did to make that happen was to add a line into my /etc/sysconfig/network-scripts/ifup-wireless file that calls wpa_supplicant:

/usr/sbin/wpa_supplicant -wB -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf

Then I created a ifdown-wireless file that has the line:

killall wpa_supplicant

and made that file executable. (If there's a prettier way to do either of those without changing these ifup or ifdown scripts tell me... I tried using the WPAOPTS stuff in the network profile but it didn't seem to work.)

So WPA authenticates and makes the connection fine. Then I get an IP address from DHCP. But no DNS...

Iron_Mike
2005-12-19, 05:21 PM CST
One thing to check, go to Applications -->System Tools -->Network Device Control, hightlight your card select configure. Once the configure screen comes up highlight your card again and select the the edit option, check to make sure there are check marks in the boxes "Obtain IP" and Obtain DNS" info from your ISP.