LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2004, 02:09 AM   #1
Steerpike
LQ Newbie
 
Registered: Nov 2004
Location: Walnut Creek, CA
Posts: 29

Rep: Reputation: 15
how to display DNS, etc?


I'm trying to troubleshoot my wireless network configuration, having downloaded and installed the ndiswrapper for my Dell TrueMobile 1400 built-in wireless card. I'm posting this from the linux laptop wirelessly, so I've made good progress but it's not yet consistently working after a reboot.

Anyway, I'm still troubleshooting this, but it would be great if I knew how to query what my current DNS, default gateway, etc settings are for the wlan0 interface. I've already figured out ifconfig, iwconfig, etc but these only seem to show me the dhcp-assigned ip and netmask, not gateway, dns servers, etc. Googling around, there are thousands of posts telling me how to setup my linux box as a dns server, but I don't want that - just to know what my current remote servers are.

In windows, I simply typed 'ipconfig /all' and got the answer. I'm sure this is going to be an easy one, but I can't find it!

And if anyone happens to know, which of the seemingly many config files is being read when the wlan0 device starts up? I see several, and I've ended up putting entries (ESSID, encyrption, etc) in many of them while troubleshooting, so I"m not sure which ones 'matter'.

Thanks!
 
Old 11-22-2004, 02:32 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Here are tools

ALL ARE RH/RHEL/FC specific

more /etc/resolve.conf : To see/setup nameserver of ISP

ifconfig : To see all network interface info.

hostname : To get hostname

more /etc/sysconfig/network : To setup hostname and
networking can enabled or disabled.

dnsdomainname : List or setup domainname.

more /etc/hosts :Make sure at least localhost entry do exist.

route or netstat –rn : To print routing table

host www.yahoo.com : To see if dns works or not
or
nslookup


Hope this helps
 
Old 11-22-2004, 03:11 AM   #3
Steerpike
LQ Newbie
 
Registered: Nov 2004
Location: Walnut Creek, CA
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by nixcraft
[B]Here are tools

ALL ARE RH/RHEL/FC specific
I'm running suse 9.2, but let's see what we get ...

Quote:
more /etc/resolve.conf : To see/setup nameserver of ISP
tried that, but file does not exist - which surprises me.

Quote:
...
more /etc/sysconfig/network : To setup hostname and
networking can enabled or disabled.
on my system, /etc/sysconfig/network is a directory. listing as follows:
Code:
linux:~ # ls /etc/sysconfig/network
.       dhcp       ifcfg-eth-id-00:0d:56:de:de:02  ifcfg-wlan0~    providers   update-log.debug
..      if-down.d  ifcfg-lo                        ifcfg.template  scripts     wireless
config  if-up.d    ifcfg-wlan0                     ifroute-lo      update-log
Quote:
route or netstat –rn : To print routing table
This one gave me the gateway information, which was good!

Quote:
host www.yahoo.com : To see if dns works or not
or
nslookup
nslookup was somewhat helpful;
Code:
# nslookup
> yahoo.com
Server:         216.148.227.68
...
I recognize this 'server' address as my ISP's dns, so this is giving me what I need.

I presume there is a simpler way, though!

Quote:
Hope this helps
Thanks a lot!
 
Old 11-22-2004, 11:23 AM   #4
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Sorry buddy file is /etc/resolv.conf and not the /etc/resolve.conf (typo)

If /etc/resolv.conf does not exist create one as follows
vi /etc/resolv.conf
search mydomain.com
nameserver IP-ISP-NS1
nameserver IP-ISP-NS2


Most of the tools should work on Suse 9.x also
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Display and Flush DNS cache click Linux - Networking 7 11-10-2009 02:00 PM
Problem withChanging DISPLAY environment variable to display on someone else's screen wantsri Linux - Networking 1 10-25-2005 12:14 PM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 07:24 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 07:19 AM
RH9 Shrike /sbin/loader display problem with SIS 630 laptop - display is blank ! johnvoisey Red Hat 4 11-01-2003 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration