LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-01-2013, 02:57 PM   #1
sanazb
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
Performing DNS lookup on someone's behalf


I'm wondering how can I perform DNS lookup on other's behalf and still receive the result? What should I change in the packet I'm sending?
The reason is that I want to indicate the query is for person x, but return the result to me. so there should be 2 address location in the packet but as I saw dns packet format I did not see that, there is just source address
The reason is that I want to send the request to a CDN and see which replica is returned for somebody else in network?

Thanaks in advance.
 
Old 01-02-2013, 01:30 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
"I'm wondering how can I perform DNS lookup on other's behalf and still receive the result?"

here is the usage
nslookup "domain" "any_public_or_pvt_dns"
# nslookup test.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: test.com
Address: 50.23.225.49

otherwise please post here how u did and what you get
 
Old 01-02-2013, 12:30 PM   #3
sanazb
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Can you explain the command, I guess test.com is the server you want to get its IP, what is 8.8.8.8?
 
Old 01-03-2013, 11:09 PM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
8.8.8.8 is the google public dns server, you can use any dns server which is allowed you to do query
example your own local lan dns server

there are several public dns server available in the net
look at this list


http://pcsupport.about.com/od/tipstr...ns-servers.htm

cheers
 
  


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
Forward DNS lookup to different DNS Servers ghight Linux - Networking 2 09-28-2006 05:54 AM
DNS Lookup machan Linux - Networking 4 07-12-2006 07:47 AM
Performing a Reverse DNS on emails? DragonM15 Linux - Networking 2 01-08-2006 07:57 PM
DNS lookup Cabous Linux - Networking 11 07-18-2005 12:36 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration