Results 1 to 2 of 2

Thread: how to configure DNS for WLAN-card ath0

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    3

    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

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    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:
    Code:
    netcardconfig
    Choose the ath0 device and use DHCP. It should be successful.
    Then check to see if it grabbed an IP Address:
    Code:
    ifconfig

Similar Threads

  1. configure network card
    By shantanuo in forum Networking
    Replies: 0
    Last Post: 09-20-2005, 05:52 AM
  2. Replies: 1
    Last Post: 01-30-2005, 03:11 AM
  3. how to configure WLAN networkcard on Knopix
    By phunkyvibez in forum Networking
    Replies: 1
    Last Post: 08-02-2004, 01:18 PM
  4. Can't Configure TV Card
    By turbines in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 06-09-2004, 09:21 PM
  5. Configure TV card
    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
  •