-
how to configure DNS for WLAN-card ath0
Hi,
how can I set a DNS server for my WLAN card (ath0) ?
I've successfully managed to set an IP-address with "ifconfig ath0 ...." and have added a default GW, too.
But how could I set a DNS for ath0 ?
With "netcardconfig" it seems I can only set DNS for eth0 - but not for my WLAN-adapter ?
(I have checked "iwconfig", but seems there is no option for setting a DNS there?)
thank you
Heinz
-
Senior Member
registered user
Edit the netcardconfig script:
Code:
sudo kwrite /usr/sbin/netcardconfig
Find this line:
Code:
NETDEVICES="$(cat /proc/net/dev | awk -F: '/eth.:|tr.:|wlan.:/{print $1}')"
Add ath.:| after the |
NETDEVICES="$(cat /proc/net/dev | awk -F: '/eth.:|
ath.:||tr.:|wlan.:/{print $1}')"
Save the changes and exit Kwrite.
Then run netcardconfig: Choose the ath0 device and use DHCP. It should be successful.
Then check to see if it grabbed an IP Address:
Similar Threads
-
By shantanuo in forum Networking
Replies: 0
Last Post: 09-20-2005, 05:52 AM
-
By knop in forum Networking
Replies: 1
Last Post: 01-30-2005, 03:11 AM
-
By phunkyvibez in forum Networking
Replies: 1
Last Post: 08-02-2004, 01:18 PM
-
By turbines in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 06-09-2004, 09:21 PM
-
By massai in forum Hardware & Booting
Replies: 1
Last Post: 01-26-2004, 03:19 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch
$46.99

TP-Link TL-SG1048 48-Port Gigabit Rackmount Switch New Factory Sealed
$199.99

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$49.99

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99

5 Port Gigabit Unmanaged Ethernet Switch, Home Network Hub, Office Ethernet S...
$9.64

TP-Link TL-SG2210P 10-Port Gigabit Smart Switch w/ 8-Port PoE+ NO AC SKU 25597
$36.98

Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts
$69.00

Linksys LGS328MPC 24-Port Managed Gigabit PoE+ Switch with 4 10G SFP+ Uplinks
$224.95

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99