Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-04-2011, 10:43 PM   #1
LQ Newbie
Registered: Jun 2011
Posts: 10

Rep: Reputation: Disabled
Question Tcp/ip

ok everyone, this is all new to me. I trying to do a few things with TCP-IP protocol

How do I find my dns domain name my computer

And what the hell is "dig"

any good websites would really be great!
Old 07-04-2011, 11:03 PM   #2
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Posts: 1,363

Rep: Reputation: 135Reputation: 135
What OS do you use ?

dig is DNS lookup utility in which you can query a dns server.

man dig
Use Google and Wikipedia for details about Domain Name System.
Old 07-05-2011, 07:39 AM   #3
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
first few things to look at:
cat /etc/resolv.conf
this will tell you the IP address of your dns server (can be static, or come from your dhcp server, or be set in NetworkManager.

will tell you your dns domain name

will do a dns lokkup, and tell you the IP of

cat /etc/nsswitch.conf
Will tell you if /etc/hosts takes precedence over dns service, etc ...

Last one: dnsmasq is an easy to use dns server, it's as easy to setup as editing /etc/hosts. Use apt-get or yum to install it
Old 07-05-2011, 05:50 PM   #4
Registered: Mar 2008
Posts: 16,889

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
I assume you are not on a domain but talking about using linux on the internet you buy month to month. That should be a dns ip address entry.

dig or nslookup are similar tools if you suspect some issue with a properly assigned network. It won't help if you haven't put in all the correct entries.

I use my local routers IP address as the dns and put a secondary from the ones my ISP post on it's web pages or get it from windows's tools.

Last edited by jefro; 07-05-2011 at 05:52 PM.


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
Select YeAH-TCP like default TCP congestion control algorithm simonbcn Linux - Networking 0 01-20-2011 10:34 AM
slow tcp on 100mbps wan, strange tcp window behaviour on ubuntu 9.10 cputoaster Linux - Networking 2 03-10-2010 12:43 AM
slow tcp wan, strange tcp window behaviour on ubuntu 9.10 cputoaster Linux - Networking 0 03-09-2010 04:39 AM
Linux change TCP kernel Parameter for TCP DELAY ACK TICKS linux_mando Linux - Networking 5 08-22-2006 08:20 AM
Woody 3.0 Open Ports 1470/tcp/uaiact 1518/tcp/vpvd What for?How can I remove them? alexxxis Debian 5 07-05-2004 05:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 AM.

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