LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2009, 10:39 PM   #1
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
Thumbs up Command to diplay Nameservers


Hi All,

Can anybody tell me commands to display primary and secondary nameservers And also the Workgroup in which my computer is there?

Thanks and Regards,
Ravi Chobey
 
Old 01-22-2009, 03:46 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you want to see what nameservers your box is using you can:
Code:
cat /etc/resolv.conf
If you want to find the primary and secondary dns of a domain:
Code:
dig ns domain.com
Regarding samba, iirc to find out the workgroup you can use:
Code:
smbclient -L localhost
Regards

Last edited by bathory; 01-22-2009 at 03:54 AM.
 
Old 01-22-2009, 05:39 AM   #3
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Smile

Dear Bathory Sir,

Thanks for your reply.I am able to display my Nameservers usin the commands you have mentioned.When when i am trying for workgroup,i am getting these outputs:

1> I have tried the command which you have provide:

smbclient -L localhost
added interface ip=192.168.1.4 bcast=192.168.1.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (Connection refused)
Error connecting to 127.0.0.1 (Connection refused)
Connection to localhost failed

And i just made a try

2>

smbclient -L localhost.localdomain
added interface ip=192.168.1.4 bcast=192.168.1.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (Connection refused)
Error connecting to 127.0.0.1 (Connection refused)
Connection to localhost.localdomain failed

Thanks for support.

Regards,
Ravi Chobey
 
Old 01-22-2009, 08:09 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
This is because you're not running samba in your box.
You can use instead of localhost the name or the ip of another box that is master for your domain/workgroup
 
Old 01-22-2009, 11:34 PM   #5
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Cool

Dear Bathory Sir,

Thanks for your support in sorting my problems.

Regards,
Ravi Chobey
 
  


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
lvdisplay -v doesn't diplay detail LV info osiosi Linux - Newbie 6 06-28-2006 12:03 PM
Getting best diplay out of Emachine T3302 DJOtaku Linux - Hardware 2 05-20-2006 09:40 PM
setting diplay sli issue pinelands Linux - Newbie 3 01-02-2006 10:54 AM
Can't get Kmail to diplay HTML emails Stevetgn Linux - Software 1 06-10-2005 06:40 PM
Mosixview diplay errors jbkerr Linux - General 0 01-28-2002 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:22 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
Open Source Consulting | Domain Registration