Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-04-2009, 02:15 AM   #1
LQ Newbie
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
DNS issue

How to prove that demonstrate that forward and reverse DNS is working?
Old 06-04-2009, 07:12 AM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Originally Posted by nesta1982 View Post
How to prove that demonstrate that forward and reverse DNS is working?
One way is to use the dig command.

Example for forward lookup:
Example for reverse lookup:
dig -x
See man dig for more advanced options you can throw at it.
Old 06-04-2009, 01:23 PM   #3
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
dig is a superior tool, but if you're looking for simple output you can try 'host'

host -t A
host -t PTR
just giving some options...
Old 06-04-2009, 01:44 PM   #4
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I like dig for testing purposes as well.. it tells you WHICH DNS server returned the query, and a host of other information about your query. dig also allows you to query a specific DNS server that may not be in your /etc/resolv.conf so you can test a DNS server you haven't made live.. or compare what multiple DNS servers return for a specific query.

definitely the best tool for testing / troubleshooting DNS imho


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
Dns issue aderemi Linux - Server 1 03-12-2009 10:53 AM
DNS issue Mesigua Linux - Server 7 08-01-2008 07:35 AM
DNS issue - DNS works perfect on server but not on any other computer jtneal Linux - Networking 3 03-15-2008 03:30 PM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 12:28 AM
Dns Issue!!! treedstang Linux - Networking 0 06-04-2004 03:44 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:48 PM.

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
Open Source Consulting | Domain Registration