LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-10-2008, 11:07 AM   #1
prasanta.82
Member
 
Registered: Aug 2006
Posts: 31

Rep: Reputation: 15
DNS client problem


Dear all

I can't connect my linux client to my linux dns server.In the client machine /etc/resolv.conf file is look like this:-
search localdomain
nameserver 127.0.0.1
nameserver 172.168.1.200 (my dns server ip)

prasanta
 
Old 03-10-2008, 11:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what troubleshooting have you tried before posting here? can you ping it? is your network working at all outside of dns? is the IP right? it shouldn't be, 172.168.1.200 is a public ip address, but looks like it's been uased as a local one, do you mean 192.168.1.200 or 172.16.1.200? both of those are legit private LAN ip addresses
 
Old 03-10-2008, 11:26 AM   #3
prasanta.82
Member
 
Registered: Aug 2006
Posts: 31

Original Poster
Rep: Reputation: 15
In my lab i have a linux dns server which ip is 172.168.1.200 and 2 linux clients. I can't connect my linux client to my linux dns server. My pcs are connect through local LAN.I use private ip.I am able to ping my dns server but can not resolv its name.

In the client machine /etc/resolv.conf file is look like this:-
search localdomain
nameserver 127.0.0.1
nameserver 172.168.1.200 (my dns server ip)

Prasanta
 
Old 03-10-2008, 11:32 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, can you explicitly use it? "host google.com 172.168.1.200"
 
Old 03-10-2008, 11:38 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Or try running a dig query against the nameserver. And if you can't resolve it's name, does it have a name for resolution? Is this nameserver public as well? Do you actually have a name associated with this DNS servers hostname or domain you want?
 
Old 03-13-2008, 09:02 AM   #6
prasanta.82
Member
 
Registered: Aug 2006
Posts: 31

Original Poster
Rep: Reputation: 15
Dear trickykid

The nameserver is not public.It is on Local LAN.I try it for testing purpose.

prasanta
 
Old 03-13-2008, 09:21 AM   #7
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
prasanta.82

What they are telling you is.

If you can ping your dns server then OK now try a lookup against it.
Code:
dig yahoo.com 192.168.1.2
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5554
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 7, ADDITIONAL: 7

;; QUESTION SECTION:
;yahoo.com.                     IN      A

;; ANSWER SECTION:
yahoo.com.              173     IN      A       66.94.234.13
yahoo.com.              173     IN      A       216.109.112.135

;; AUTHORITY SECTION:
yahoo.com.              101581  IN      NS      ns4.yahoo.com.
yahoo.com.              101581  IN      NS      ns5.yahoo.com.
yahoo.com.              101581  IN      NS      ns6.yahoo.com.
yahoo.com.              101581  IN      NS      ns8.yahoo.com.
yahoo.com.              101581  IN      NS      ns1.yahoo.com.
yahoo.com.              101581  IN      NS      ns2.yahoo.com.
yahoo.com.              101581  IN      NS      ns3.yahoo.com.

;; ADDITIONAL SECTION:
ns1.yahoo.com.          18117   IN      A       66.218.71.63
ns2.yahoo.com.          90372   IN      A       68.142.255.16
ns3.yahoo.com.          49353   IN      A       217.12.4.104
ns4.yahoo.com.          31549   IN      A       68.142.196.63
ns5.yahoo.com.          38728   IN      A       216.109.116.17
ns6.yahoo.com.          24524   IN      A       202.43.223.170
ns8.yahoo.com.          108139  IN      A       202.165.104.22

;; Query time: 14 msec
;; SERVER: 192.168.1.2#53(192.168.1.2)
;; WHEN: Thu Mar 13 09:37:44 2008
;; MSG SIZE  rcvd: 297


; <<>> DiG 9.3.4 <<>> yahoo.com 192.168.1.2
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13122
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;192.168.1.2.                   IN      A

;; AUTHORITY SECTION:
.                       6762    IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2008031201 1800 900 604800 86400

;; Query time: 12 msec
;; SERVER: 192.168.1.2#53(192.168.1.2)
;; WHEN: Thu Mar 13 09:37:44 2008
;; MSG SIZE  rcvd: 104
Now if you get a response, great if not then you most likely do not have your nameserver set to resolve or allow queries outside the scope of localhost.

On your client I would make the resolv.conf
Code:
 nameserver 172.168.1.200
only for right now. And I agree, that ip looks wrong to me to be an internal private lan ip.

hth
 
Old 03-13-2008, 12:19 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I think what the OP is trying to explain is that they can't connect to their nameserver by it's hostname given. What they need to do is add actual DNS entries for this host so they can resolve by name. Even the DNS server needs an entry if you want to reach it by name and not just IP.
 
  


Reply



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 client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 03:30 PM
Newbie DNS problem (client can't query server) s_rasmussen Linux - Server 5 11-26-2007 09:46 AM
Client to Client without dns zig158 Linux - Networking 1 03-24-2007 06:29 AM
linux router/dns client config problem chucktilbury Linux - Networking 3 09-21-2006 12:26 AM
DNS Client metallica1973 Fedora 1 08-02-2006 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:58 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