-
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

Dell PERC H755 3KDWX 8GB 12Gb SAS RAID Controller With Battery & Cables
$949.99

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004
$649.99

EMC KTN-SL3 15-Bay Disk Array Enclosure w/2x 303-108-000E Cards, Dual PSU,No HDD
$239.99

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD
$265.00

G-Technology G-RAID 24TB Dual-Drive External HDD TB3 USB 3.1 7200RPM Silver
$299.99

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00
$1619.19

AMS VENUS T5C Mini DS-2250C 5-Bay 2.5” SATA RAID USB 3.0 eSATA
$129.99

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller
$64.99

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs
$87.99

Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board
$300.00